=== Boorsuc Performance Doctor ===
Contributors: soundrob, boorsuc
Donate link: https://boorsuc.com/
Tags: performance, pagespeed, core web vitals, speed, optimization
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.5.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Analyze why your WordPress site is slow. Local checks plus optional PageSpeed lab metrics, AI diagnosis, and guided fixes.

== Description ==

Boorsuc Performance Doctor helps you understand performance problems and what to fix next.

Every **Analyze** run refreshes local WordPress checks (environment, HTML, resources, and a catalog of technical issues). Optional Google PageSpeed Insights lab metrics (score, FCP, LCP, CLS) can be included via the Boorsuc proxy or your own API key. Lab samples may be briefly cached for fair-use shared quota.

**What you get (free)**

* Hybrid analysis (mobile / desktop)
* Issue list with technical causes
* AI diagnosis on included free models, or your own OpenRouter key (BYOK)
* One-click fixes for selected issue types (for example unsized images, LCP lazy-loading)
* Latest analysis snapshot in history

**Boorsuc Performance Doctor Pro** is a **separate paid add-on** sold on [boorsuc.com](https://boorsuc.com/) (not a locked license inside this free plugin). It unlocks full analysis history, trends, and CSV export. Install the Pro plugin from boorsuc.com/downloads/, then activate your Stripe license key under Settings.

Scores and AI output are advisory and can change between runs. Lab metrics are not the same as real-user experience. See [Disclaimer & limitations](https://boorsuc.com/disclaimer-limitations/).

== External services ==

This plugin can connect to third-party services when you use optional features. No data is sent until you enable PageSpeed or AI (or, for the optional Pro add-on, activate a license).

**Google PageSpeed Insights** (optional lab metrics)

* When: You enable PageSpeed analysis (via the Boorsuc proxy or your own Google API key).
* Data sent: The public URL you choose to analyze, and device strategy (mobile/desktop).
* Terms: https://policies.google.com/terms
* Privacy: https://policies.google.com/privacy
* PageSpeed Insights: https://developers.google.com/speed/docs/insights/v5/about

**OpenRouter** (optional BYOK AI)

* When: You enable AI and provide your own OpenRouter API key (or set one in wp-config).
* Data sent: Aggregated performance evidence and issue codes needed for diagnosis. Passwords, payment data, and full site dumps are not sent.
* Terms: https://openrouter.ai/terms
* Privacy: https://openrouter.ai/privacy

**Boorsuc AI proxy** (optional included AI / PageSpeed proxy)

* When: PageSpeed or AI is enabled and you are not using your own Google / OpenRouter key. Requests go to `boorsuc-ai-proxy.boorsuc.com`.
* Data sent: Public analyze URL and/or short performance evidence for free-model suggestions.
* Disclaimer / limitations: https://boorsuc.com/disclaimer-limitations/
* Site: https://boorsuc.com/

**License server** (optional Pro add-on only)

* Used only by the separate **Boorsuc Performance Doctor Pro** add-on when you activate or revalidate a license.
* Data sent: license key and site URL to `license-server.boorsuc.com`.
* The free plugin on WordPress.org does not contact the license server.

== Installation ==

1. Upload the `boorsuc-performance-doctor` folder to `/wp-content/plugins/`, or install via **Plugins → Add New → Upload Plugin**.
2. Activate **Boorsuc Performance Doctor**.
3. Open **Boorsuc Perf** and click **Analyze Performance**.
4. Optional: configure PageSpeed / AI under **Settings**. For Pro features, buy on boorsuc.com, install **Boorsuc Performance Doctor Pro**, then activate your license.

== Frequently Asked Questions ==

= Will this make my site as fast as a CDN or hosting upgrade? =

No. The plugin diagnoses WordPress and page issues and can apply specific fixes. Hosting, CDN, and theme choices still matter.

= Why do scores change between analyses? =

Local checks refresh each run. Content, plugins, and caching change. Lab metrics may be reused briefly for fair-use quota. Different numbers between runs are expected.

= Do I need my own PageSpeed API key? =

Not required for basic use when the Boorsuc proxy is available. You can add your own key in Settings if you prefer.

= How do I get Pro? =

Buy the subscription on boorsuc.com (Stripe). Download and install the **Boorsuc Performance Doctor Pro** add-on, then activate the license key emailed after checkout.

= Where is the disclaimer? =

https://boorsuc.com/disclaimer-limitations/

== Screenshots ==

1. Performance analysis dashboard with score and issues
2. AI diagnosis panel
3. Settings and Free vs Pro overview

== Changelog ==

= 0.5.1 =
* Guideline 5 (Yoast-style): free plugin no longer gates local Pro UI behind a license; Pro add-on owns full history and CSV export
* Free history shows latest snapshot cards plus Pro teasers; BYOK OpenRouter unlocked locally
* Contributors: soundrob (primary); External services section with OpenRouter, PageSpeed/Google, and Boorsuc AI proxy terms/privacy links

= 0.5.0 =
* Pro license moved to separate Boorsuc Performance Doctor Pro add-on (filter boorsuc_perf_is_pro)
* Free plugin no longer contains license activation UI — install and activate the Pro add-on for Pro features
* Bump version to 0.5.0

= 0.4.6 =
* Previous release for WordPress.org packaging
* Hybrid analysis, AI diagnosis, Pro license, and disclaimer links

== Upgrade Notice ==

= 0.5.1 =
History and CSV export move to the Pro add-on (Yoast-style). Your own OpenRouter key works in free. Install Boorsuc Performance Doctor Pro from boorsuc.com for full history.

= 0.5.0 =
License activation is now in the separate Boorsuc Performance Doctor Pro add-on. Install the Pro zip from boorsuc.com and activate your license key there.
