=== SpeedDoctor – Advanced Performance Analysis Tool ===
Contributors: onebutton
Tags: speed, performance, analysis, optimization, seo
Requires at least: 5.0
Tested up to: 6.8
Stable tag: 1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Analyze your WordPress site speed, find bottlenecks, and get actionable SEO optimization tips with SpeedDoctor.

== Description ==
SpeedDoctor is an all-in-one WordPress performance analysis and optimization plugin designed to help you achieve blazing-fast website speeds and top Core Web Vitals scores. With a single click, SpeedDoctor scans your site, identifies slow-loading elements, and delivers clear, actionable recommendations to boost your SEO, user experience, and conversion rates.

**Version 1.2 New Feature:** Added comprehensive PHP code analysis to detect performance issues, security vulnerabilities, and optimization opportunities in your PHP files.
**Version 1.1 Bug Fix:** This release focuses on pure analysis functionality and removes all CSS interference and security headers that could cause site styling issues.

**Key Features:**
* **Comprehensive Performance Audit:** Analyze your entire WordPress site or any specific URL for speed, bottlenecks, and optimization opportunities.
* **HTTP Response & Load Time:** Instantly see your page’s HTTP status code and total load time for real-world performance insights.
* **Image Optimization Analysis:** Detect large, unoptimized images, see their formats (JPG, PNG, WebP, SVG, GIF), and get suggestions for compression and next-gen formats.
* **Script & Plugin Load Times:** Identify slow scripts and plugins that impact your site’s speed, with detailed load time breakdowns.
* **Unused CSS Detection:** Find and quantify unused CSS selectors and wasted kilobytes to streamline your site’s stylesheets.
* **External Script Audit:** List all third-party scripts and their impact on your site’s performance.
* **REST API Endpoint Analysis:** Discover the slowest REST API endpoints and optimize your backend performance.
* **Actionable Suggestions:** Get prioritized, easy-to-understand recommendations for every detected issue.
* **One-Click Rescan:** Instantly re-analyze your site after making changes to see improvements.
* **Plugin Deactivation:** Deactivate heavy plugins directly from the report to quickly improve load times.
* **Modern, User-Friendly Interface:** Clean, table-based reports for easy reading and decision-making.
* **SEO & Core Web Vitals Focus:** All recommendations are designed to help you pass Google’s PageSpeed Insights and improve your search rankings.
* **Secure & Standards-Compliant:** Built with WordPress coding standards and security best practices.

**Why Choose SpeedDoctor?**
- Improve your website’s SEO and Core Web Vitals scores
- Reduce bounce rates and increase conversions
- Identify and fix performance bottlenecks in seconds
- No technical expertise required – perfect for site owners, agencies, and developers
- 100% free and open source

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/speeddoctor` directory.
2. Activate the plugin through the WordPress admin panel.
3. Go to the "SpeedDoctor" menu and start your first analysis.

== Frequently Asked Questions ==
= Is SpeedDoctor free? =
Yes, SpeedDoctor is completely free and open source.

= What PHP version is required? =
PHP 7.2 or higher is recommended for best compatibility.

= Does SpeedDoctor work with all themes and plugins? =
Yes, SpeedDoctor is designed to work with any WordPress theme or plugin.

= Will this plugin make changes to my site? =
No, SpeedDoctor only analyzes and reports. It does not modify your site unless you choose to deactivate plugins from the report.

== Changelog ==
= 1.2 =
* New Feature: Added comprehensive PHP code analysis
* Detects SQL injection vulnerabilities
* Identifies deprecated PHP functions
* Analyzes file sizes and code complexity
* Finds debug code and hardcoded values
* Detects security issues and performance bottlenecks
* Provides actionable suggestions for PHP optimization
* Added PHP analysis to performance scoring
* Enhanced reporting with PHP-specific recommendations

= 1.1 =
* Bug Fix Release: Removed all CSS interference and security headers to prevent site styling issues
* Removed Page Cache system to prevent HTML caching issues
* Removed Browser Cache headers to prevent CSS/JS interference
* Removed Object Cache functions to prevent database conflicts
* Removed Minify functionality to prevent HTML/CSS/JS corruption
* Removed Critical CSS injection to prevent styling conflicts
* Removed Lazy Load and Font Display optimizations
* Removed Content Security Policy (CSP) headers
* Removed Security Headers (XFO, HSTS, COOP) to prevent conflicts
* Removed CSS loading control that was disabling stylesheets
* Focused plugin on pure analysis functionality only
* Fixed CSS files disappearing issue
* Fixed site styling problems caused by aggressive optimizations

= 1.0 =
* Initial release: Basic analysis and reporting features.

== License ==
This plugin is licensed under GPLv2 or later. For more information, visit [https://www.gnu.org/licenses/gpl-2.0.html](https://www.gnu.org/licenses/gpl-2.0.html). 