=== Digisreda ===
Contributors: ivanstarykh
Tags: accessibility, wcag, a11y, audit, monitoring
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automated WCAG 2.1/2.2 accessibility scanning, regression monitoring, and an accessibility widget for your visitors.

== Description ==

Official Digisreda (ДиджиСреда, digisreda.ru) plugin for WordPress:

* Connect with your organization's API key.
* Automatic install of the accessibility widget for your visitors - no manual template editing.
* Configure the widget (position, color, automatic fixes) directly from wp-admin.
* Trigger an accessibility scan and review scan history.
* Quick link to your Digisreda dashboard.

Using the plugin requires a digisreda.ru account and an organization API key (Settings → API Keys in the dashboard).

== Installation ==

1. Upload and activate the plugin.
2. Open the "Digisreda" section in the admin menu.
3. Enter your organization's API key.
4. Connect this site (choose an existing one or add it as new).
5. The accessibility widget is installed automatically.

== Screenshots ==

1. Connecting with your organization's API key.
2. Connected site: widget settings (position, color, automatic fixes) and starting a scan, right from wp-admin.

== External services ==

This plugin connects to the API of the "Digisreda" service (digisreda.ru) - a platform for automated website accessibility scanning against WCAG. Without this connection the plugin doesn't function: it's a client to your own digisreda.ru account, not a standalone tool.

The connection is only made after you manually enter your organization's API key in the plugin's settings (the "Digisreda" section in wp-admin) - before that, the plugin never contacts digisreda.ru.

Once connected, the plugin sends to digisreda.ru:

* Your site's name and address (URL) - when adding the site to the dashboard.
* Accessibility widget settings (button position, color, automatic fixes enabled) - when you change them.
* A scan request - when you click "Run scan".

The plugin never sends your visitors' personal data, passwords, or WordPress license keys. Your organization's API key is stored in the WordPress database (as an option with `autoload=false`) and is only ever sent in the `Authorization` header when calling the digisreda.ru API.

Terms of use and privacy policy: [digisreda.ru/oferta](https://digisreda.ru/oferta) and [digisreda.ru/privacy](https://digisreda.ru/privacy).

Separately, for your site's visitors: the embedded accessibility widget loads a script from `https://digisreda.ru/static/widget.js` and calls a public, unauthenticated digisreda.ru API for its configuration - standard behavior for the embeddable widget, documented separately by the service.

== Changelog ==

= 1.0.2 =
* Fixed: the Plugin Name header now contains Latin characters, as WordPress.org requires for slug generation.
* Fixed: the widget's embed script is now registered/enqueued via `wp_enqueue_script()` instead of being echoed as a raw `<script>` tag.
* readme.txt translated to English, as required for the WordPress.org directory.
* Verified against the official Plugin Check tool: no errors or warnings in any category (General, Plugin Repo, Security, Performance, Accessibility).

= 1.0.1 =
* Fixed: the "Add as new site" button silently failed for an organization with zero existing sites - the most common case for a brand-new install.
* Fixed: API errors (e.g. plan limit exceeded) showed as a generic "code 400" instead of the real error message.
* Listing graphics and screenshots prepared for the WordPress.org directory.

= 1.0.0 =
* First release: API key, automatic widget install, widget settings, scan trigger, dashboard link.
