=== Scanpoof – Accessibility Monitoring & Fixes ===
Contributors: scanpoof
Tags: accessibility, wcag, ada, a11y, monitoring
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.10.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Daily WCAG 2.1 and 2.2 AA monitoring in your dashboard, plus free basic accessibility fixes that need no account.

== Description ==

Scanpoof does two things on your WordPress site: it can add a few common accessibility fixes to every page, and it can show your daily scan results from scanpoof.com in the dashboard.

= Free basic fixes (no account needed) =

Switch them on from the Scanpoof screen and the plugin adds a few common accessibility fixes to every page as WordPress sends it:

* The page language on the `<html>` tag, when your theme leaves it out
* Pinch-zoom unlocked on phones (removes `maximum-scale` below 5 and `user-scalable=no`)
* The main content area marked for screen readers when the theme has no `<main>` landmark
* A skip-to-content link for keyboard users, hidden until it has keyboard focus
* Text spacing that visitors' own settings can override (`!important` is dropped from inline letter, word and line spacing; the values are kept)

These fixes run entirely in this plugin and work with or without a Scanpoof account. Developers can switch individual ones off with the filters `scanpoof_fix_zoom`, `scanpoof_fix_main`, `scanpoof_fix_skip_link` and `scanpoof_fix_inline_spacing`.

= Monitoring with a Scanpoof account =

Connect your site to your account at [scanpoof.com](https://scanpoof.com) and the Scanpoof screen shows your results right inside WordPress: your accessibility score (WCAG 2.1 and 2.2, Level AA), the issues that matter most, what changed since the last scan, performance, SEO, AI readiness, security headers, uptime and SSL, plus links to your reports. The scans themselves run on Scanpoof's servers.

AI-written fixes (image descriptions, link and button names, form labels, colour fixes) are part of Scanpoof's AI Fix service on scanpoof.com, where you review each one and copy its code for your theme or developer. They are not part of this plugin.

**Your content is never changed.** Nothing is written into your posts, pages, media library or theme files. Switch basic fixes off, or deactivate the plugin, and every page is served exactly as your theme sends it.

**Honest about what automated tools can do.** Automated testing finds many accessibility problems, but not all of them, and no plugin can guarantee that a site is accessible or legally compliant.

== External services ==

This plugin connects to the Scanpoof service (https://scanpoof.com), run by Scanpoof, for its monitoring features. Basic fixes do not use the service.

No connection is made on installation or activation. Contact starts only after an administrator enters an API key, ticks the consent checkbox and clicks "Save key and enable Scanpoof". Deactivating the plugin turns the connection off; uninstalling deletes the key and all plugin settings.

All requests go over HTTPS to https://scanpoof.com and carry the API key, the site address and the plugin version. The plugin never sends passwords, email addresses or anything about your visitors.

* `/api/v1/me`: when an administrator clicks Test connection. Receives the account status.
* `/api/v1/activate`, `/api/v1/deactivate`: when an administrator activates or releases this site. Sends the site's domain; receives whether the key is bound to it.
* `/api/v1/overview`: when an administrator opens the Scanpoof screen, or an administrator's connected AI agent asks for the summary (WordPress 6.9 and later). Receives scores, issues, scan history and report links for this site.
* `/api/v1/scan-status`: while the Scanpoof screen shows a scan in progress. Receives its progress.
* `/api/v1/events`: when an administrator acts in the plugin (activate, release, change key, switch basic fixes on or off). Sends the action, its time, and the administrator's WordPress username, display name and role, so the account owner sees it on scanpoof.com.
* `/api/v1/rescan`: only when an administrator's connected AI agent asks for a new scan (WordPress 6.9 and later). Requests a scan of the site's public pages.
* Key check: during a scan it started, Scanpoof requests your homepage with a one-time code; the plugin answers with an HMAC proof made from the stored key. The key itself is never sent this way.

Terms of Service: https://scanpoof.com/terms
Privacy Policy: https://scanpoof.com/privacy

== Installation ==

1. Install and activate the plugin (Plugins → Add New → search "Scanpoof").
2. Open **Scanpoof** in the admin menu and click **Turn on basic fixes** if you want them. No account is needed for this.
3. To add monitoring: in your account at scanpoof.com, go to Settings → API keys and create a key.
4. On the Scanpoof screen, paste the key, read the service notice, tick the consent box and click **Save key and enable Scanpoof**.
5. Click **Activate this site**. Your results appear on the Scanpoof screen; sites are re-scanned every day by Scanpoof.

== Frequently Asked Questions ==

= Do the basic fixes need a Scanpoof account? =

No. They run in the plugin and work on any site, connected or not. Turn them on or off at any time on the Scanpoof screen.

= Does Scanpoof change my content? =

No. Nothing is written into your posts, pages, media library or theme files. Basic fixes are added to each page as WordPress sends it.

= What happens if I deactivate or remove the plugin? =

The basic fixes stop and your pages are served exactly as your theme sends them. Uninstalling deletes the plugin's settings and API key.

= What does a Scanpoof account add? =

Daily scans run on Scanpoof's servers, and their results in your dashboard: the accessibility score and issues, performance, SEO, security and uptime, and reports. AI-written fixes are part of the AI Fix service on scanpoof.com.

= Will it change how my site looks? =

No. The skip link only appears while it has keyboard focus, and the other basic fixes don't change what a mouse user sees.

= Does this make my site ADA or WCAG compliant? =

No tool can promise that. Automated testing catches many issues but not all, and some fixes need a developer or a content change. Scanpoof shows you which ones.

= Is this an accessibility overlay? =

No. It doesn't add a toolbar or change the page with JavaScript in the visitor's browser. The basic fixes are part of the page WordPress sends.

= Can an AI agent use Scanpoof on my site? =

After you connect the service, on WordPress 6.9 and later, Scanpoof registers two abilities with WordPress's Abilities API: read the accessibility summary, and ask for a new scan. Both need a logged-in administrator, and neither changes your site. To turn them off, add `add_filter( 'scanpoof_register_abilities', '__return_false' );` to your site.

= Where do I get help? =

Plugin questions: the support forum here on WordPress.org. Account and billing questions: support@scanpoof.com.

== Screenshots ==

1. The Overview tab, with your accessibility score, issue counts by severity, and the recent scan trend.
2. The Accessibility tab, listing the top issues by severity, with plain-English explanations.
3. Basic fixes you can turn on without a Scanpoof account: page language, pinch-zoom, a main landmark, a skip-to-content link and overridable text spacing.

== Changelog ==

= 1.10.1 =
* Basic fixes now use WordPress's template enhancement output buffer instead of opening their own output buffer. Requires WordPress 6.9 or later.

= 1.10.0 =
* Basic fixes (page language, pinch-zoom, main landmark, skip-to-content link, overridable text spacing) are now free and need no account: one switch on the Scanpoof screen turns them on or off.
* AI-written fixes now live entirely in Scanpoof's AI Fix service on scanpoof.com; the plugin no longer contains or applies them, and no longer checks a subscription for anything it does.
* The plugin no longer schedules background syncs; it contacts Scanpoof only when an administrator uses it.
* The Scanpoof menu item now sits after the core WordPress menu items.
* The cache-purge hook is now prefixed: `scanpoof_purge_caches`.

= 1.9.1 =
* First WordPress.org submission.

== Upgrade Notice ==

= 1.10.0 =
Basic fixes are free and need no account. AI-written fixes have moved to Scanpoof's AI Fix service on scanpoof.com.
