=== CheckOO - Checkout Monitor & Uptime Tracker for WooCommerce ===
Contributors: openfixx
Tags: woocommerce, checkout, monitoring, uptime, testing
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automated checkout monitoring for WooCommerce. Runs scheduled ghost transactions to verify functionality with instant email alerts on failure.

== Description ==

CheckOO is an automated checkout monitoring and uptime tracking plugin for WooCommerce stores. It executes headless "ghost transactions" on a configurable schedule to verify that your store's entire checkout pipeline — from cart addition through payment processing — is fully functional.

**Core Features:**

* **Ghost Runner Engine** — Automatically creates a synthetic $0.00 test product, adds it to cart, and processes a full checkout cycle using an internal mock payment gateway.
* **Configurable Scheduling** — Choose from 9 automated test intervals (ranging from every 5 minutes up to 24 hours) powered by WordPress Cron.
* **Instant Email Alerts** — Receive a high-priority HTML email notification the moment a checkout failure is detected.
* **Last 30 Checks Timeline** — Visual status timeline showing your checkout health over the past 30 check cycles.
* **Auto-Cleanup Protocol** — All synthetic test data (products, orders, cart items) is permanently purged immediately after each test to protect your store analytics.
* **HPOS Compatible** — Fully compatible with WooCommerce High-Performance Order Storage.
* **Zero External Dependencies** — No CDN calls, no tracking scripts, no external API connections. Everything runs locally.

**How It Works:**

1. CheckOO creates a hidden, $0.00 virtual product on the fly.
2. It adds this product to an internal cart session.
3. It processes checkout through a hidden mock payment gateway that only responds to internal test requests.
4. It verifies the order was created successfully in the database.
5. It immediately purges all synthetic data — the test product, the order, and all associated metadata.
6. If any step fails, an alert email is dispatched to the store administrator.

**Who Is This For?**

* WooCommerce store owners who want automated confidence that their checkout works.
* Agencies managing multiple client stores who need proactive monitoring.
* Developers who want to catch checkout-breaking changes before customers do.

== Installation ==

1. Upload the `checkoo` folder to your `/wp-content/plugins/` directory.
2. Activate the plugin through the WordPress Plugins menu.
3. Ensure WooCommerce is installed and active.
4. Navigate to **WooCommerce > CheckOO** to configure your monitoring settings.

== Frequently Asked Questions ==

= Does this plugin create real orders or affect my sales data? =

No. CheckOO creates a temporary $0.00 virtual product and a synthetic order that are immediately and permanently deleted after each test cycle. Your sales reports, revenue analytics, and stock counts are never affected.

= Will customers see the test payment gateway? =

No. The internal mock gateway is programmatically filtered out of the public-facing checkout page. It is only activated during internal test cycles and is invisible to shoppers.

= Does this plugin make any external API calls? =

No. CheckOO operates entirely within your WordPress installation. It does not connect to any external services, CDNs, or APIs. All processing is done locally.

= What happens if a test fails? =

CheckOO immediately sends a high-priority HTML email to the configured alert address with the failure details, timestamp, and a direct link to the CheckOO dashboard.

= Is this compatible with WooCommerce HPOS? =

Yes. CheckOO declares full compatibility with WooCommerce High-Performance Order Storage (Custom Order Tables) and uses CRUD methods for all order operations.

= Can I run a test manually? =

Yes. The CheckOO dashboard includes a "Run Test Now" button that executes an immediate checkout test and displays the result.

== Screenshots ==

1. CheckOO dashboard overview with status cards and uptime timeline.
2. Recent checkout checks log with pass/fail details.
3. Detailed failure diagnostic modal with step-by-step trace and export tools.

== Changelog ==

= 1.0.0 =
* Initial release.
* Ghost Runner cron engine with configurable scheduling.
* Internal mock payment gateway.
* Auto-cleanup protocol for synthetic data.
* Email alert system for checkout failures.
* Last 30 checks timeline visualization.
* HPOS compatibility declaration.

== Upgrade Notice ==

= 1.0.0 =
Initial release of CheckOO — Checkout Monitor & Uptime Tracker for WooCommerce.

== Third-Party Services ==

This plugin does not connect to or rely on any third-party external services, APIs, or CDNs. All operations are performed entirely within your WordPress installation. No data is transmitted externally.
