=== PhoenixForge Fleet Reporter ===
Contributors: ryanpurvisphoenixforge
Tags: multisite management, fleet manager, site monitoring, agency, WordPress management
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Single-pane-of-glass fleet manager for WordPress agencies. Install on every client site to stream health data to your PhoenixOS Fleet dashboard.

== Description ==

**Fleet Reporter** is a thin WordPress plugin that connects any WordPress site to your PhoenixOS Fleet workspace. Install it on every client site — Fleet aggregates data from your existing PhoenixForge site-ops plugins into one dashboard.

**What it collects (if the plugins are active):**

* **WP Auditor** — audit scores, findings, severity counts
* **WP Backup Manager** — last backup timestamp, size, status
* **WP Security Monitor** — login failures, file changes, blocked IPs
* **WP Performance Monitor** — Core Web Vitals, page load metrics
* **WP Uptime Monitor** — uptime percentage, response time
* **WP Compliance Checker** — GDPR, WCAG, CRA scores
* **WP Maintenance Reports** — monthly work log entry counts
* **WP Copilot** — AI diagnostic score, credit balance

**Zero data is stored in WordPress.** All metrics live in your PhoenixOS workspace.

**Tiers:**

* **Free** (up to 5 sites) — 15-minute heartbeat, view metrics and alerts
* **Agency** ($49/mo, up to 25 sites) — 5-minute heartbeat, remote backup/audit/cache-clear/maintenance
* **Scale** ($149/mo, up to 100 sites) — 1-minute heartbeat, bulk and scheduled actions
* **Enterprise** ($399/mo) — unlimited sites, custom SLA, audited remote access

== Installation ==

1. Upload the plugin to `/wp-content/plugins/phoenixforge-fleet-reporter/`
2. Activate via **Plugins → Installed Plugins**
3. Go to **Fleet Reporter → Connect to Fleet** and click **Connect to PhoenixOS Fleet**
4. Enter the pairing code in your PhoenixOS workspace under Fleet → Add Site

== Frequently Asked Questions ==

= Does this plugin store any site data? =

No. The plugin collects data from other PhoenixForge plugins and immediately sends it to your PhoenixOS workspace. Nothing is stored in WordPress.

= Does Fleet Reporter work without other PhoenixForge plugins? =

Yes — it installs and pairs on any WordPress site. Sites without other PhoenixForge plugins will send basic health metrics (WP version, PHP version, active plugins). Adding other PhoenixForge plugins unlocks richer metrics automatically.

= What happens if PhoenixOS is unreachable? =

Heartbeats fail silently. No data is lost from WordPress (there's nothing to lose — WP is a broker). The next successful heartbeat will include current state. The last error is shown in the admin panel.

= Can I revoke access? =

Yes — click **Disconnect Site** in the Connect page, or remove the site from your PhoenixOS Fleet workspace. Both actions stop heartbeats immediately.

== Changelog ==

= 1.0.0 =
* Initial release.
* Device-code pairing flow (PhoenixOS workspace connection).
* 5/15-minute heartbeat via WP-Cron (tier-aware cadence).
* Data collectors for 8 PhoenixForge site-ops plugins.
* Remote-action REST endpoint (backup, audit, cache clear, maintenance mode).
* Admin status UI showing pairing state and last heartbeat.
