=== SumeetSarna – Update Guardian ===
Contributors: sumeetsarna
Tags: staging, testing, updates, woocommerce, monitoring
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Catch regressions before your customers do. Update Guardian re-checks your key pages after every update and flags broken pages and missing features.

== Description ==

Every plugin, theme, or WordPress core update is a gamble. Most of the time it's fine. Sometimes it quietly breaks your checkout, blanks a page, or removes a feature — and you find out from a lost sale, not a warning.

Update Guardian watches for exactly that. You pick the pages that matter (home, shop, cart, checkout, a landing page). It captures a baseline while your site is healthy, then re-checks those pages and tells you what changed:

* **Broken pages** — HTTP errors, unreachable pages, and PHP fatal errors.
* **Visual regressions** — layout shifts and pages that collapse or grow unexpectedly, with a tolerance so normal variation doesn't cry wolf.
* **Silent feature loss** — an element that was there at baseline (a product grid, a cart form, an "Add to cart" button) that has disappeared, even when the page still loads with a 200 status. This is the failure a plain "is the site up?" check misses entirely.

The markers it watches are derived automatically per page, so it works on any WordPress site — WooCommerce, a blog, a brochure site — with no configuration.

= Plugin features and service plans =

Every feature of this plugin is free and fully functional for everyone: manual
checks from the settings screen, and automatic checks after every plugin, theme,
or core update.

Plans only affect the external service that performs the page analysis:

* **Free tier** — no account or key required; the service analyzes up to 3
  monitored pages per check.
* **Paid plans** — the service analyzes an unlimited number of monitored pages
  per check.

= How it works =

The page analysis (loading each page in a real browser, capturing screenshots, comparing them, and detecting missing features) runs on the Update Guardian service, not on your server. Your site sends the service the addresses of the pages you chose to monitor; the service loads them, compares them to your baseline, and returns a report. This keeps the heavy work off your hosting.

== External services ==

This plugin relies on the Update Guardian service to analyze your pages. It is required for the plugin's checks to function.

**What is sent and when:** When you capture a baseline or run a check (manually, or automatically after an update), the plugin sends the service the public URLs of the pages you have chosen to monitor — plus your license identifier, if you have one (the free tier needs no account or key). The service then loads those URLs in a headless browser to capture screenshots and detect changes. No page content, credentials, or personal data from your site is transmitted beyond the page URLs themselves.

* Service endpoint: https://ug-api.sumeetsarna.com
* Terms of Service: https://ug-api.sumeetsarna.com/terms
* Privacy Policy: https://ug-api.sumeetsarna.com/privacy

Licensing, payments, and updates are handled by Freemius. See the Freemius Terms (https://freemius.com/terms/) and Privacy Policy (https://freemius.com/privacy/).

== Installation ==

1. Upload the plugin to the `/wp-content/plugins/update-guardian` directory, or install it through the Plugins screen in WordPress.
2. Activate the plugin through the Plugins screen.
3. Go to Tools → Update Guardian.
4. Choose the pages you want to monitor (one path per line, e.g. `/`, `/shop/`, `/cart/`, `/checkout/`).
5. Click "Capture baseline now" while your site is healthy.
6. Run a check any time — and checks also run automatically after every plugin, theme, or core update.

== Frequently Asked Questions ==

= Does this slow down my site? =

No. The page analysis runs on the Update Guardian service, not on your server, so there is no performance impact on your visitors.

= What kinds of problems can it catch? =

Broken pages (HTTP and PHP errors), unexpected layout or size changes, and features that silently disappear after an update while the page still loads.

= Does it work with WooCommerce? =

Yes. It works especially well for stores, where a broken cart or checkout after an update directly costs sales. It also works on any other WordPress site.

= Do I need to configure what to look for? =

No. Update Guardian derives the important markers for each page automatically when it captures your baseline.

= What happens when I capture a new baseline? =

The new baseline replaces the old one and becomes the healthy reference that future checks compare against. Capture a fresh baseline whenever you have made intentional changes to a page.

== Screenshots ==

1. The Update Guardian settings screen: choose the pages to monitor and capture a baseline.
2. A regression report after an update, showing which pages changed and what broke.
3. Checks run automatically after every plugin, theme, or core update.

== Changelog ==

= 0.1.0 =
* Initial release.

== Upgrade Notice ==

= 0.1.0 =
Initial release.
