=== Vital Cart - Order & Sales Monitor for WooCommerce ===
Contributors: marvbb
Tags: woocommerce, monitoring, orders, alerts, checkout
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce order and payment monitor. Emails you the moment sales go silent or payments start failing, based on your store's own normal rhythm.

== Description ==

Most store monitors just ping your homepage, see a "200 OK", and call your store healthy while checkout is quietly broken and no orders are coming in. Vital Cart watches the thing that actually matters: whether money is still flowing.

It learns your store's own normal order rhythm and normal payment-failure rate, then alerts you the moment either goes abnormal, so you find out in minutes instead of days.

If you have ever asked "why has my WooCommerce store stopped getting orders?" or only discovered a broken checkout or a failing payment gateway after losing a day of sales, Vital Cart is the safety net that emails you before the damage adds up.

**What it watches**

* **Order silence.** Learns your normal quiet stretch between orders and alerts you when orders stop for abnormally long, the classic sign of a broken checkout or a site problem.
* **Payment failure spikes.** Learns your normal failed-order rate and alerts you when failures suddenly spike, the classic sign of a broken or misconfigured payment gateway that still lets customers try to pay.

Both learn from *your* store's history, so there are no fixed thresholds to guess at, and a low-volume store and a high-volume store each get their own baseline.

**Built to not cry wolf**

* One alert per incident and one "resolved" notice when things recover. No alert spam.
* Stays quiet until it has enough order history to have a trustworthy baseline.
* Adjustable sensitivity for each monitor, and each can be turned off independently.

**See everything at a glance**

* A Vital Cart admin page with a live health panel: your learned baselines, last order, recent failure rate, and current status.
* A compact widget on your WordPress dashboard for an at-a-glance health check.

**No external service required**

Vital Cart runs entirely inside your WordPress site and alerts you by email. Nothing to sign up for.

== Installation ==

1. Upload the `vital-cart` folder to `/wp-content/plugins/`, or install through the Plugins screen in WordPress.
2. Activate the plugin through the "Plugins" screen.
3. Open **Vital Cart** in the admin menu to set your alert email and adjust sensitivity. The alert email defaults to your site admin email.

That's it. Vital Cart begins learning your store's rhythm immediately and starts watching once it has enough order history.

== Frequently Asked Questions ==

= Does it need any external service or account? =

No. Vital Cart runs entirely inside your WordPress site and sends alerts by email.

= How does it know what "abnormal" is for my store? =

It looks at your last 30 days of orders and learns your normal quiet stretch between orders and your normal failed-order rate. It then flags stretches of silence, or spikes in failures, that are abnormal for *your* store, rather than using a one-size-fits-all rule.

= My store is brand new or very low volume. Will it work? =

It waits until it has enough recent order history to build a trustworthy baseline before it starts alerting, so it will not fire false alarms on a store with little history. The health panel will show a "Learning" status until then.

= Will it flood me with emails? =

No. It sends a single alert when an incident starts and a single notice when it resolves.

= How often does it check? =

Every 15 minutes, using WordPress cron.

= Can I request a feature or report a problem? =

Yes, and it genuinely shapes what gets built next. The plugin's settings page has a "Send feedback or request a feature" link, and when you deactivate the plugin you will see an optional one-question prompt. Both open a Google Form in a new tab. Nothing is sent anywhere unless you choose to fill it in; the plugin itself does not transmit any data to us or to any third party.

== Screenshots ==

1. The Vital Cart health panel: at-a-glance status for order flow and payments, your store's learned baselines, and the settings.

== Changelog ==

= 1.0.1 =
* Added an optional "Send feedback or request a feature" link on the settings page.
* Added an optional one-question prompt when the plugin is deactivated. It never blocks deactivation and sends nothing unless you fill in the form.
* Documentation and description improvements.

= 1.0.0 =
* Order-silence detection: learns your normal order cadence and alerts on abnormal silence.
* Payment-failure spike detection: learns your normal failed-order rate and alerts on spikes.
* Debounced alerts: one alert per incident, one resolved notice, per monitor.
* Vital Cart admin page with a live health panel and a WordPress dashboard widget.
* Configurable alert email, per-monitor on/off toggles, and per-monitor sensitivity.
