=== NaveenCodes Site Diagnostics ===
Contributors: shinu1503
Tags: debug, performance, diagnostics, logs, tools
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

All-in-one WordPress diagnostics plugin with conflict detection, Safe Mode, log analysis, performance, security, and local error guidance.

== Description ==

💛 This plugin is dedicated to my mother. Every update carries her blessings.

NaveenCodes Site Diagnostics is a developer-focused diagnostics plugin for WordPress administrators.

It helps you isolate plugin conflicts, inspect debug.log, estimate plugin load impact, review dependency problems, monitor cron events, create environment snapshots, and troubleshoot errors with a local rules engine.

= Core features =

* Plugin conflict detection from debug.log parsing
* Hook conflict discovery based on registered callback signatures
* Admin-only Safe Mode that does not change the public frontend
* Error log analyzer for fatal errors, warnings, notices, and deprecated messages
* Compatibility checker for PHP, WordPress, and installed plugin updates
* Performance scanner with estimated plugin load time in milliseconds
* Plugin size analyzer
* Debug snapshot export in JSON and CSV
* Dependency checker for required plugins
* Memory usage analyzer with per-plugin estimates
* Smart warning system
* Scheduled health report emails (weekly or monthly) with score, conflicts, log size, and cron status
* Local AI Debug Helper with rule-based cause and fix suggestions
* Debug timeline for plugin actions and captured fatal errors
* File change detector with SHA-256 baselines
* Cron job monitor
* Website health score
* Database Health Checker with table overhead, autoloaded options bloat, and transient/postmeta cleanup candidates

= Security =

* Nonce verification on all AJAX actions
* Capability checks with `manage_options`
* Sanitization with WordPress helper functions
* Escaped output in admin views
* No external APIs
* No third-party libraries

= Notes =

* Scans run on demand and cache their reports with transients
* Safe Mode only applies to wp-admin and admin-ajax requests that carry the Safe Mode cookie
* The plugin never disables itself inside Safe Mode

== Installation ==

1. Upload the `naveencodes-site-diagnostics` folder to `/wp-content/plugins/`.
2. Activate the plugin through the WordPress Plugins screen.
3. Open `NaveenCodes Site Diagnostics` from the admin menu.

== Frequently Asked Questions ==

= Does Safe Mode affect visitors? =

No. The Safe Mode loader only filters active plugins for admin requests tied to your Safe Mode cookie. Public visitors keep the normal plugin stack.

= Does this plugin call any external API? =

No. All analysis is performed locally with native WordPress and PHP functions.

= Can it permanently deactivate a plugin? =

Yes. The Conflict Detector includes a button that uses WordPress core `deactivate_plugins()` after confirmation.

= How does the AI Debug Helper work? =

It is a local rules engine. It matches common WordPress and PHP error text with pattern checks and returns a probable cause and suggested fix.

== Screenshots ==

1. Dashboard overview with warning summary, system information, and quick actions
2. Conflict Detector screen for plugin-attributed scan results and compatibility checks
3. Safe Mode controls for isolating plugin issues inside wp-admin
4. Performance scanner showing plugin load footprint and complexity estimates
5. Logs screen for debug mode controls and recent error analysis
6. AI Debug Helper for local troubleshooting suggestions based on pasted errors

== Changelog ==

= 2.3.0 =
* Added: Database Health Checker — a new Database tab reporting table overhead from `SHOW TABLE STATUS` (size, row count, and reclaimable MyISAM overhead), autoloaded options bloat with the top 15 largest offenders, and counts of expired transients and orphaned postmeta rows. Report-only by default, with an optional "Clean Now" action gated behind confirmation to remove expired transients and orphaned postmeta.

= 2.2.1 =
* Added: Review request notice — shown after 7 days of active use, with options to review on WordPress.org, mark as already reviewed, or snooze for 14 days. Only one NaveenCodes notice appears per day across all plugins.

= 2.2.0 =
* Added: Conflict Bisect Wizard — automatically narrows down plugin conflicts using a binary-search approach. Start the wizard, deactivate half your plugins, answer "Yes/No" based on whether the problem persists, and repeat until the culprit plugin is pinpointed — no manual toggle-each-plugin needed. All plugins are automatically restored when the wizard ends.

= 2.1.1 =
* Fixed: Plugin URI updated to the WordPress.org plugin page (was pointing to dev site).

= 2.1.0 =

* Added: Scheduled health report emails — get a weekly or monthly site summary (health score, conflicts, debug log size, cron events, PHP/WP versions) delivered straight to your inbox. Configure frequency and recipient email from the Settings tab. Includes a Send Test Report button.

= 2.0.5 =

* Added: A small tribute in memory of Maa ❤️

= 2.0.4 =

* Removed remaining legacy naming references from the plugin package
* Finalized the diagnostics-based naming for submission consistency

= 2.0.3 =

* Renamed the plugin to NaveenCodes Site Diagnostics to avoid name similarity in the directory
* Updated the submission slug and text domain references to `naveencodes-site-diagnostics`

= 2.0.2 =

* Refined the admin design system for better spacing, card hierarchy, and button alignment
* Fixed oversized icon rendering on the About screen
* Improved dashboard and snapshot metric card typography
* Improved snapshot table handling for long file paths
* Added asset cache busting so admin CSS and JS updates load immediately

= 2.0.0 =

* Rebuilt the plugin as a modular OOP diagnostics suite
* Added admin-only Safe Mode with per-plugin toggles
* Added conflict detection, compatibility reports, and hook conflict discovery
* Added performance, memory, dependency, cron, and file integrity modules
* Added snapshot export, health scoring, and timeline tracking
* Added local AI Debug Helper with rule-based fixes

== Upgrade Notice ==

= 2.1.1 =
* Fixed: Plugin URI updated to the WordPress.org plugin page (was pointing to dev site).

= 2.1.0 =

Adds scheduled health report emails — enable in Settings to get weekly or monthly site summaries in your inbox.

= 2.0.5 =

Adds a small tribute in memory of Maa ❤️

= 2.0.4 =

Final naming cleanup for the Site Diagnostics submission.

= 2.0.3 =

Directory submission update with the new plugin name and slug.

= 2.0.2 =

Maintenance release with UI fixes, icon sizing fixes, and readme/version sync.

Major release with the full diagnostics suite.
