=== WCAGpatch ===
Contributors: mlighthouse
Tags: accessibility, wcag, ada, a11y, audit
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Scan every page of your site for WCAG 2.1 accessibility violations. Score dashboard, per-page detail, scan history. No account, no overlay.

== Description ==

WCAGpatch scans the published pages and posts of your WordPress site for WCAG 2.1 accessibility violations and shows you what is broken, where, and how badly.

It is a scanner, not an overlay. It does not add a widget to your site, does not change your front end, and does not load anything for your visitors. Everything runs in your admin area, on your own server.

**What you get**

* A site-wide accessibility score with a letter grade, based on your latest scan of every page
* A page-by-page table: score, violations, critical issues, sortable and searchable
* A detail view per page, with each violation grouped by impact and the offending HTML shown
* Scan history per page, so you can see whether a change helped
* Scheduled scans (daily or weekly) or manual only
* A "Smart Scan" that checks your home page plus the twenty most recently edited pages in one click

**What it checks**

The built-in scanner reads the rendered HTML of each page and tests for common WCAG 2.1 A and AA failures: images without alt text, empty links and buttons, form fields without labels, skipped heading levels, missing page language, missing document title, iframes without a title, and more. Findings map to the WCAG success criterion they fail.

Automated checks find a portion of accessibility problems. No scanner, including this one, can tell you a site is fully accessible or compliant with the ADA or any other law. Use the results to find and fix what can be found automatically, then test with a keyboard and a screen reader.

**WCAGpatch Pro**

A separate paid add-on from wcagpatch.com adds axe-core deep scanning in the browser, AI-written alt text using your own OpenAI key, PDF certificates and remediation reports, and email alerts. This free plugin is complete on its own and does not need the add-on to scan.

== Installation ==

1. Install from the WordPress plugin directory, or upload the zip under Plugins > Add New > Upload Plugin.
2. Activate the plugin.
3. Open **Accessibility** in the admin menu.
4. Click **Scan All Pages** (or **Smart Scan** for a quick first look).

Upgrading from the older "WCAGpatch — WCAG Accessibility Scanner & AI Fixer" plugin: install and activate this one. Your scans and settings are carried over and the old plugin is deactivated automatically; you can delete it afterwards.

== Frequently Asked Questions ==

= Is it really free? =

Yes. Scanning, the dashboard, page detail and history have no limits and no account. The paid add-on is a separate plugin sold on wcagpatch.com and is not required.

= Does it slow down my site? =

No. Nothing is added to your front end. Scans run in the admin area, and scheduled scans run through WP-Cron with a configurable pause between pages.

= Does this plugin send data anywhere? =

No. The scanner fetches your own published pages from your own site and stores the findings in your own database. There is no external service, no account and no tracking.

= What standard does it check against? =

WCAG 2.1, Level A and AA. That is the standard referenced by most accessibility laws and by the U.S. Department of Justice's rule for state and local government websites.

= Will this make my site ADA compliant? =

No tool can promise that. Automated testing catches a share of the problems that matter; the rest need a person with a keyboard and a screen reader. WCAGpatch shows you what it can find and gives you a dated record that you checked.

= What PHP version do I need? =

PHP 8.0 or newer.

== Changelog ==

= 1.1.0 =
* The plugin is now free-only. The paid features (axe-core deep scan, AI fixes, PDF certificate and report, email alerts) moved to the separate WCAGpatch Pro add-on, so nothing in this plugin is locked.
* Renamed from "WCAGpatch — WCAG Accessibility Scanner & AI Fixer" to "WCAGpatch". Plugin folder, option, table and hook prefixes changed to `wcagpatch`; existing data is migrated on activation.
* Removed the License screen and all license checks.
* Removed the OpenAI and email alert settings (they live in the add-on).

= 1.0.6 =
* Certificate and report: real SVG shield, palette aligned with the site.

= 1.0.5 =
* Configurable OpenAI model. Dompdf loading no longer fatals next to another plugin bundling dompdf.

= 1.0.4 =
* Dashboard restyle: light score panel, accessible colours.

= 1.0.3 =
* License activation talks to the hosted API only; no code list ships with the plugin.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.0 =
Free-only release. Paid features moved to the WCAGpatch Pro add-on. Data is migrated automatically; the old plugin is deactivated and can be deleted.
