=== AgoraScan: website check and fixes ===
Contributors: griddesignagency
Tags: website audit, conversion, accessibility, seo, usability
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

See what's putting visitors off your website, then let AgoraScan fix it. You choose the fixes and can undo any change.

== Description ==

AgoraScan checks your website the way a customer sees it, on a computer and a phone, and tells you in plain English what's costing you enquiries and sales.

With this free plugin you can:

* **Check your website free.** Get a score out of 100 and the 3 things to fix first, in about 2 minutes.
* **Let AgoraScan fix it.** Choose the fixes and approve the connection on your own site. Then either preview the changes before they go live, or let AgoraScan publish them for you.
* **See and undo every change.** Every change AgoraScan makes is listed on the AgoraScan screen, in plain words, with an Undo button.
* **Disconnect in one click.** Removes AgoraScan's access straight away.

= How the connection works =

Press **Connect to AgoraScan** on the AgoraScan screen (administrators only) and confirm on AgoraScan. The plugin then creates a separate, limited AgoraScan account on your site. That account can only read your pages and posts and change the title and wording of existing ones: it can't create or delete anything, upload files, or change settings, plugins, themes or users, and it can't sign in to your dashboard. The plugin enforces this on every request, whatever the account's role. WordPress still filters what it saves in the usual way, so it can't add scripts to your pages. The plugin makes a private key for that account and sends it straight to AgoraScan, server to server, so it never appears in a web address or your browser. Only a scrambled copy is kept on your site, and the key only works through the WordPress REST API. It doesn't need WordPress application passwords, so you can leave your security plugin's settings as they are. We never see your own password.

You choose how changes go live, in your AgoraScan account: **Let me preview every change** (the default) drafts the fixes so you can check them on your site, and nothing goes live until you press Publish; **Fix things straight away** publishes the fixes you've paid for as soon as they're made and emails you what changed. Either way, every published change is listed on the AgoraScan screen with an Undo button. **Disconnect AgoraScan** removes its access straight away, and switching the plugin off stops it too.

= External service =

This plugin relies on AgoraScan (https://agorascan.ai), a service run by Grid Design Agency Limited in the UK. Nothing is sent to AgoraScan until you use it:

* **Free check links** open AgoraScan with your website's address in the link, so AgoraScan can check your public pages.
* **Connecting** sends your website's address, the limited account's username and its private key to https://agorascan.ai/api/sites/connect, once, when you confirm the connection.
* **Fixing**: once connected, AgoraScan reads the pages and posts you've asked it to fix and changes their wording, through the WordPress REST API, using that limited account. It can also change the wording in your Elementor and ACF text fields, and this plugin's own site-wide settings (such as a "Skip to content" link or a picture for when your page is shared). It also reads the AgoraScan plugin's status (plugin version and which page builder you use).

AgoraScan's terms of service: https://agorascan.ai/terms
AgoraScan's privacy notice: https://agorascan.ai/privacy

== Installation ==

1. In WordPress, go to Plugins, Add New, search for "AgoraScan" and press Install Now, then Activate. Or upload the plugin zip from https://agorascan.ai/wordpress.
2. Open **AgoraScan** in your WordPress menu.
3. Press **Check my website free** to see your score and the 3 things to fix first.
4. To let AgoraScan fix things for you, press **Connect to AgoraScan** and confirm.

== Frequently Asked Questions ==

= Is the plugin free? =

Yes, and so is the website check. Everything in the plugin works without paying: the check, the change list, Undo and Disconnect. If you'd like AgoraScan to make the fixes for you, that's paid for on AgoraScan, and you see the price and exactly what we can fix before you pay.

= Can AgoraScan change my site without me knowing? =

No. It only changes the pages and wording you chose fixes for. With "Let me preview every change" (the default) nothing goes live until you press Publish; with "Fix things straight away" you get an email listing every change. Every published change is listed with an Undo button, and you can disconnect at any time.

= If it won't connect =

Usually a firewall or your host is blocking AgoraScan's requests to your site's REST API. Check that the REST API is switched on and isn't blocked for outside requests, then press Connect again. Step-by-step help: https://agorascan.ai/wordpress#trouble

= Does it work with page builders? =

Yes. AgoraScan works with the WordPress block editor, Elementor and Advanced Custom Fields (ACF), where it changes the text in headings, text, buttons and boxes and leaves your layout alone. For other page builders, AgoraScan tells you which fixes need doing by hand.

== Screenshots ==

1. The AgoraScan screen: check your website free, connect AgoraScan, and see who connected it and when.
2. Every change AgoraScan makes, in plain words, with an Undo button.

== Changelog ==

= 0.7.0 =
* AgoraScan's connection can now only read pages and posts and change the title and wording of existing ones. Everything else is refused, whatever its account's role allows.
* Each time you connect, AgoraScan's account is reset to its limited role, given a new random password, and any other passwords on it are removed.
* WordPress filters AgoraScan's changes like any other editor's. Pages with maps, forms or video embeds are left for you to change by hand.
* Clearer description of the two ways changes go live: preview first, or straight away.

= 0.6.2 =
* Pages keep their maps, forms and video embeds when AgoraScan saves a change.
* AgoraScan only ever uses the limited account it created itself, never an existing user with the same name, and removing the plugin only removes that account.

= 0.6.1 =
* After you connect, you go straight back to AgoraScan to see your fixes, and the AgoraScan screen has a clear button to get back there.

= 0.6.0 =
* Advanced Custom Fields: AgoraScan can now change the words in ACF text, text area and rich text fields, including flexible content sections, repeaters and groups, and in your ACF options page (often the header and footer). Links, images and every other kind of field are never touched. Every change can be undone.

= 0.5.0 =
* Connecting works on sites that hide WordPress's user addresses (a common security setting).
* Connects with its own private key instead of WordPress application passwords, so it works even when a security plugin (such as Wordfence) has those switched off. Nothing to change in your security settings.

= 0.4.0 =
* Site-wide fixes: names for links that are only an icon, descriptions for images that have none, a "Skip to content" link for keyboard users, a better Google headline and summary for audited pages, and a picture for when your page is shared. Nothing is written into your pages: each fix is a setting you can undo from the AgoraScan screen.

= 0.3.0 =
* Clears common caching plugins (WP Rocket, W3 Total Cache, WP Super Cache, LiteSpeed, SiteGround) when AgoraScan changes or undoes a page, so visitors see it straight away.
* The AgoraScan screen now shows who connected it, when, and when it last changed something.
* Clearer help when a security plugin or firewall blocks the connection.

= 0.2.0 =
* Elementor pages: AgoraScan can now change the wording in Elementor headings, text, buttons and boxes, and undo it.

= 0.1.0 =
* First version: free check, connection status, change list with undo, and one-click disconnect.
