=== PhoenixForge Copilot ===
Contributors: ryanpurvisphoenixforge
Tags: site health, ai diagnosis, monitoring, diagnostics, health check
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

AI-powered WordPress site health monitoring with 12 diagnostic checks, weighted scoring, and AI diagnosis.

== Description ==

PhoenixForge Copilot is your AI-powered site doctor. It runs 12 diagnostic checks across your WordPress installation, calculates a weighted health score, and uses AI to diagnose issues and recommend specific fixes.

**The problem:** WordPress Site Health gives you a pass/fail list with generic advice. When something is wrong, you still need to figure out what it means and how to fix it in the context of your specific site.

**The solution:** PhoenixForge Copilot goes beyond basic checks. It analyses your specific configuration, plugin interactions, and server environment, then uses AI to provide contextual diagnosis. Not just "your memory limit is low" but "your memory limit is 128M but you have 23 active plugins including WooCommerce — increase to 512M in wp-config.php."

= Free Features =

* 12 diagnostic checks (database, security, performance, configuration)
* Weighted site health score with history
* Detailed findings with severity levels
* Manual AI diagnosis using your own API key
* Check-by-check breakdown with explanations
* Health score trend tracking

= Pro Features =

* Scheduled automatic health checks
* AI-powered fix suggestions with one-click implementation
* Proactive issue detection before problems occur
* Email and Slack alerts on score changes
* Credit-based AI diagnosis (no API key needed)
* Priority support

= Bring Your Own AI Key =

PhoenixForge Copilot supports OpenAI and Anthropic API keys. Your site data stays between you and your AI provider — nothing passes through our servers. Pro users can alternatively use PhoenixForge AI credits.

= Part of the PhoenixForge Suite =

PhoenixForge Copilot pairs with PhoenixForge Auditor for comprehensive auditing, PhoenixForge Performance Monitor for speed tracking, and PhoenixForge Security Monitor for security-specific monitoring.

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/wp-copilot/`
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Navigate to PhoenixForge Copilot in the admin menu
4. Enter your OpenAI or Anthropic API key in settings
5. Run your first health check and get AI-powered diagnosis

== Frequently Asked Questions ==

= Which AI services are supported? =
PhoenixForge Copilot supports OpenAI (GPT-4, GPT-3.5) and Anthropic (Claude). You provide your own API key.

= How much does the AI diagnosis cost? =
Using your own API key, each diagnosis typically costs $0.01-0.05 depending on your AI provider. Pro users can use PhoenixForge credits instead.

= Is my site data sent to AI services? =
Only diagnostic results (plugin list, server config, health check data) are sent for diagnosis. No visitor data, content, or credentials are ever transmitted.

= Is there a Pro version? =
Yes, Pro adds scheduled checks, proactive detection, one-click fixes, and PhoenixForge AI credits. Visit phoenixforge.io for details.

= How is this different from WordPress Site Health? =
PhoenixForge Copilot runs deeper checks, provides weighted scoring, tracks history, and uses AI to give you specific, actionable diagnosis rather than generic recommendations.

== Screenshots ==

1. Site health dashboard with weighted score, diagnostic check results, and trend chart
2. AI-powered diagnosis output with contextual fix recommendations for your specific site
3. Check-by-check breakdown showing severity levels and detailed explanations
4. API key configuration settings for OpenAI and Anthropic providers
5. Health score history graph tracking improvements over time

== Third-Party Services ==

This plugin connects to external services under certain conditions:

= PhoenixForge License Server =
When you activate a Pro license key, the plugin validates it with the PhoenixForge license server.
* Service URL: https://phoenixforge-licenses.phoenixforge.workers.dev
* Privacy Policy: https://phoenixforge.io/privacy
* Terms of Service: https://phoenixforge.io/terms
* Data sent: License key, site URL
* When: On license activation, deactivation, and daily revalidation

= PhoenixForge Update Server =
The plugin checks for new versions from the PhoenixForge update server. This is disabled in WordPress.org distributed builds.
* Service URL: https://phoenixforge-updates.phoenixforge.workers.dev
* Privacy Policy: https://phoenixforge.io/privacy
* Terms of Service: https://phoenixforge.io/terms
* Data sent: Plugin slug and current version
* When: During WordPress update checks (approximately every 12 hours)

= AI Services (User-Configured) =
When using AI diagnosis features, the plugin sends site health data to the AI provider you configure.
* Supported providers: OpenAI (api.openai.com), Anthropic (api.anthropic.com)
* Data sent: Site health metrics, error logs (as configured)
* When: Only when you manually trigger an AI diagnosis
* Requires your own API key — no data is sent without explicit configuration

= Outbound Webhooks (Pro Feature) =
Pro users can optionally configure webhook URLs to send event data to services like Zapier, Make, or n8n.
* Only active when explicitly configured by the site administrator
* Data sent: Event type, site URL, and event-specific data
* Destination URL is entirely user-controlled

== Changelog ==

= 2.1.0 =
* WordPress.org compliance: prefix changed from wpc to wpcop (5 chars)
* All features now available without license gating
* Removed load_plugin_textdomain call
* Fixed text domains in shared library files

= 2.0.0 =
* Initial public release
* 12 diagnostic checks
* Weighted health scoring
* AI-powered diagnosis
* OpenAI and Anthropic support

== Upgrade Notice ==

= 2.1.0 =
WordPress.org compliance improvements. All features now available without license.

= 2.0.0 =
Initial release.
