=== Accessibility Guard ===
Contributors: aman359
Tags: accessibility, wcag, a11y, ada, section 508
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Free WCAG 2.2 accessibility scanner for WordPress. Detect Level A & AA issues, auto-fix common problems, and generate accessibility statements.

== Description ==

**Accessibility Guard** is a free WordPress plugin that scans your pages for **WCAG 2.2 accessibility issues** and helps you fix them. Unlike overlay widgets that mask problems without fixing them, this plugin identifies issues at the source code level.

Whether you need to comply with **ADA**, **Section 508**, **EAA (European Accessibility Act)**, or simply want to make your website accessible to everyone, Accessibility Guard gives you a clear picture of what needs to be fixed.

= Free Features =

**20+ WCAG 2.2 Checks Including:**

* Missing image alt text (WCAG 1.1.1)
* Empty links and buttons (WCAG 2.4.4)
* Color contrast ratio (WCAG 1.4.3)
* Heading hierarchy (WCAG 1.3.1)
* Missing form labels (WCAG 1.3.1)
* Missing document language (WCAG 3.1.1)
* Removed focus indicators (WCAG 2.4.7)
* Missing ARIA landmarks (WCAG 1.3.1)
* Empty table headers (WCAG 1.3.1)
* Missing skip navigation (WCAG 2.4.1)
* Duplicate element IDs (WCAG 4.1.1)
* Auto-playing media (WCAG 1.4.2)
* Restrictive viewport meta (WCAG 1.4.4)
* And more...

**Auto-Fix Features:**

* Inject skip navigation link
* Ensure HTML lang attribute
* Remove empty headings
* Add missing form labels (screen-reader friendly)

**Accessibility Statement Generator:**

Generate a complete accessibility statement page with your organization details, WCAG conformance target, and known limitations.

**Dashboard:**

* Summary cards showing total issues, pages scanned, and compliance percentage
* Per-page issue details with severity, WCAG reference, and element snippets
* A11y status column in Posts/Pages list tables
* Bulk scan all pages with progress indicator

**Works With Any Theme & Page Builder:**

Accessibility Guard scans the rendered HTML output, so it works with Elementor, Divi, Beaver Builder, WPBakery, Gutenberg, and any other page builder or theme.

= Pro Features =

Upgrade to **Accessibility Guard Pro** for advanced tools to manage accessibility at scale:

**Bulk Auto-Fix** - Fix multiple accessibility issues across all your pages with one click. Automatically adds missing alt text placeholders, fixes empty links, adds form labels, and corrects heading hierarchy.

**Audit History** - Track your accessibility progress over time with visual charts. See how your issue count changes after each scan and prove compliance improvements to stakeholders.

**Color Contrast Checker** - Test any color combination against WCAG AA and AAA contrast requirements. Enter foreground and background colors to instantly see pass/fail results with exact contrast ratios.

**Scheduled Scans** - Set up automatic daily, weekly, or monthly scans. Receive email notifications when new accessibility issues are detected so you can fix them before they become a problem.

**Export Reports (CSV & PDF)** - Generate professional accessibility reports for clients, auditors, or internal teams. Export detailed issue lists as CSV for spreadsheets or formatted PDF reports.

**PDF Accessibility Scanner** - Scan uploaded PDF files for accessibility issues including missing tags, document title, language, bookmarks, and text content. Ensure your downloadable documents are accessible too.

**Custom Rules** - Create your own accessibility checks with custom rules. Define patterns to detect (like "click here" links or empty table headers) with custom severity levels and WCAG references.

== Installation ==

1. Upload the `accessibility-guard` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **A11y Guard** in the admin sidebar
4. Click **Scan All Pages** to run your first scan
5. Configure auto-fixes in **A11y Guard > Settings**

== Frequently Asked Questions ==

= Is this an overlay widget? =

No. Accessibility Guard is a scanner that identifies issues in your actual page HTML. It does not inject a toolbar or overlay widget. Auto-fixes modify the source output, not a JavaScript layer.

= Can this guarantee WCAG compliance? =

No automated tool can guarantee full WCAG compliance. Approximately 40% of WCAG criteria can be tested automatically. Accessibility Guard helps you identify and fix the issues that can be detected programmatically. Manual testing is still recommended for full compliance.

= Does it work with page builders? =

Yes. The scanner works with any page builder (Elementor, Divi, Beaver Builder, WPBakery, Gutenberg, etc.) because it scans the rendered HTML output, not the builder's internal data.

= Will it slow down my site? =

No. Scanning happens only in the WordPress admin via AJAX. The only front-end impact is from auto-fixes (skip link, lang attribute), which add minimal overhead.

= Does it help with ADA and Section 508 compliance? =

Yes. ADA and Section 508 both reference WCAG as the technical standard. By scanning for WCAG 2.2 Level A and AA issues, Accessibility Guard helps you identify and fix the same issues required for ADA and Section 508 compliance.

= What is the difference between free and Pro? =

The free version includes all 20+ WCAG checks, 4 auto-fixes, the dashboard, and the accessibility statement generator. Pro adds bulk auto-fix, audit history with charts, color contrast checker, scheduled scans with email alerts, CSV/PDF report exports, PDF accessibility scanning, and custom rules.

= Does it support multisite? =

The plugin can be activated on individual sites within a multisite network. Each site manages its own scans and settings independently.

= How often should I scan my site? =

We recommend scanning after any content update or theme/plugin change. Pro users can set up automatic daily, weekly, or monthly scans to catch issues early.

== Changelog ==

= 1.0.0 =
* Initial release
* 20+ WCAG 2.2 accessibility checks
* AJAX-based per-page and bulk scanning
* Auto-fix: skip links, lang attribute, empty headings, form labels
* Accessibility statement page generator
* Admin dashboard with summary cards and issues table
* A11y status column in post/page list tables
* Scan results caching via transients

== Screenshots ==

1. Dashboard with summary cards showing total issues, pages scanned, and compliance percentage.
2. Per-page issue details with severity levels, WCAG references, and element snippets.
3. Settings page to configure auto-fix features and scan post types.
4. Accessibility statement generator with live preview.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Scan your WordPress site for WCAG 2.2 accessibility issues and auto-fix common problems.
