=== BugSleuth AI ===
Contributors: vivek28042000
Tags: code review, security, performance, developer
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Review plugins and themes, detect potential security and performance issues, and apply human-approved fixes with backups and rollback.

== Description ==

BugSleuth AI reviews installed plugins, installed themes, and individual PHP, JavaScript, CSS, and HTML files.

The built-in analyzer uses the PHP tokenizer. It does not execute the scanned code and does not require an AI API key. Optional AI review sends redacted excerpts to OpenAI only after you enable AI, store an API key, and consent to external processing.

Suggested code changes stay pending until you preview the diff, approve the suggestion, and confirm that it should be applied. A verified backup is written before a file is replaced. Rollback is refused when the file has changed again.

PHP_CodeSniffer, WordPress Coding Standards, and PHPCompatibility are not bundled. The plugin reports them as unavailable until you configure an executable. It does not pretend those tools ran.

== Installation ==

1. Upload the `bugsleuth-ai` folder to `/wp-content/plugins/`, or upload `bugsleuth-ai.zip` from Plugins → Add Plugin → Upload Plugin.
2. Activate BugSleuth AI.
3. Open BugSleuth AI → New Code Review and start a static review.
4. Open Settings if you want to configure OpenAI. Static analysis works without a key.

No Composer, Node.js, SSH, or shell access is required on the hosting server.

== Frequently Asked Questions ==

= Does a review change my plugin or theme? =

No. Reviews are read-only. A file changes only after you approve a suggestion and confirm Apply.

= What happens if WP-Cron is disabled? =

Open the review and click Continue processing. Each click runs one bounded batch. The REST start endpoint does the same for the admin interface.

= Are findings confirmed vulnerabilities? =

No. Findings are potential risks with a severity and a confidence level. Review the evidence before changing code.

== Screenshots ==

1. The dashboard shows open findings, stored reviews, and the latest review. Files change only after a fix is approved.

== Changelog ==

= 1.0.0 =
* Initial release.
* Tested with WordPress 7.1.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
