Seviranta Accessibility Repairs: fixes without an overlay

Description

Free one-page test | Sample report

Some accessibility problems come back on every page of your site, because they sit in your theme or in content you made long ago: a search button that is only an icon, a menu link without a name, an image without alt text, a page that does not let you zoom in. Someone using a screen reader then hears “button” or “link” and has to guess what it does.

This plugin repairs ten of those problems for you. It does that on your server, in the HTML WordPress sends, through the regular hooks of WordPress and WooCommerce. Your visitor’s browser receives a page that is already right. There is no widget, no toolbar for visitors, and no script that rewrites the page after it has loaded.

You stay in charge:

  • Every repair is off until you switch it on under Settings, Seviranta.
  • Every repair says in plain words what it changes, which WCAG success criterion it belongs to, and which axe-core rule reports the problem, if one does.
  • Every repair says how long it lasts: as long as this plugin is active. It also says where to make the same change in your theme or your content, so that it stays without the plugin.
  • A repair only acts on a problem that has one right answer. Most fill in a name or an alt text that is missing. Two take away something that is in the way: a setting that blocks zooming, and a tabindex that changes the keyboard order. Any text a repair adds is text your site already has: a label you typed, an alt text you saved in the Media Library, a page title, a placeholder, or a label WordPress or WooCommerce print themselves. It never writes text for you.

The ten repairs

Search forms: name the field and the button. When your theme’s search form has a field without a label, or a button that shows only an icon, the plugin adds the missing name. It uses the words WordPress prints on its own search form (“Search for:” and “Search”, in the language of your site). This also covers the WooCommerce product search form. A field that has a placeholder is left as it is. WCAG 4.1.2 Name, Role, Value and 1.1.1 Non-text Content. axe-core rules: label, button-name, input-button-name, input-image-alt.

Menus: name links that show only an icon. When a menu link ends up without any name, the plugin adds the text your menu already holds: the Navigation Label you typed, the Title Attribute, or the title of the page, post or category the item points to. A custom link to another website that has only an icon and no Title Attribute is left as it is, because your site holds no text for it. WCAG 2.4.4 Link Purpose (In Context) and 4.1.2. axe-core rule: link-name.

Images in content: add the missing alt attribute. WordPress copies the alt text into a post once, when you insert the image. An image that was placed without one keeps missing it, even after you fill in the alt text in the Media Library. The plugin adds the Media Library alt text to an image in your content that has no alt attribute at all. An image with an empty alt attribute is left as it is by this repair. WCAG 1.1.1. axe-core rule: image-alt.

Images in content: fill an empty alt text from the Media Library. When you insert an image without typing an alt text, WordPress writes an empty one. An empty alt text is also the way to mark an image as decoration, and the plugin cannot tell the two apart. With this repair on, every image in your content that has an empty alt text gets the alt text you saved for it in the Media Library, when there is one. Leave it off if you give images an empty alt text on purpose while they do have an alt text in the Media Library. An image in a link or button that already has text is left as it is, and so is an image whose caption already says the same. WCAG 1.1.1. No axe-core rule reports an empty alt text, because it is valid HTML.

Linked images: give the link a name. When an image is the only thing inside a link and has no alt text, the link has no name. If you saved an alt text for that image in the Media Library, the plugin puts it on the image, which names the link. WCAG 2.4.4, 4.1.2 and 1.1.1. axe-core rule: link-name.

WooCommerce: name icon-only add-to-cart links. Some themes show the add-to-cart button in product lists as a cart icon without text. The plugin adds the name WooCommerce itself writes for that link, such as “Add to cart: Blue mug”. On a theme that uses the WooCommerce template unchanged this repair does nothing, because WooCommerce already names the link. WCAG 2.4.4 and 4.1.2. axe-core rules: link-name, button-name.

WooCommerce: name fields that have only a placeholder. Some themes remove the labels from the checkout and address fields and show the text as a placeholder inside the field. A placeholder disappears as soon as someone types. The plugin gives such a field the text of its own placeholder as its name. The field looks the same, so for sighted visitors the placeholder still disappears while they type: only a visible label solves that. This covers the fields WooCommerce prints itself (classic checkout, address forms, account details), not the checkout made with blocks. WCAG 4.1.2 and 1.3.1 Info and Relationships. No axe-core rule reports this, because axe-core accepts a placeholder as a name.

Comment form: name the fields. Some themes show the name, email, website and comment fields without a label. The plugin gives them a name with the words WordPress uses on its own comment form (“Name”, “Email”, “Website”, “Comment”, in the language of your site). A field that has a label is left as it is. WCAG 1.3.1, 3.3.2 Labels or Instructions and 4.1.2. axe-core rule: label.

Keyboard order: follow the page instead of a positive tabindex. An element with a positive tabindex, such as tabindex=”3″, comes first when someone moves through the page with the Tab key. The plugin sets it to 0 in your content, your menu links and your search forms. The element stays reachable with the Tab key, in the place where it stands on the page, and the old value is kept in a data-seviranta-tabindex attribute. WCAG 2.4.3 Focus Order. axe-core rule: tabindex.

Zoom: let visitors zoom in on phones and tablets. Some themes block zooming with “user-scalable=no” or a low “maximum-scale” in the viewport tag. The plugin takes those two settings out, so people who need larger text can zoom in. To reach that tag, this one repair holds back the output of wp_head() for a moment, never the rest of the page. A viewport tag written straight into header.php, outside wp_head(), stays as it is. WCAG 1.4.4 Resize Text. axe-core rule: meta-viewport.

What this plugin does not do

  • It is not an overlay. It adds no widget, toolbar or script for your visitors and changes nothing in their browser.
  • It does not check your site. It repairs ten specific problems where they occur. It does not look for other problems and does not tell you how accessible your site is.
  • It makes no promise about any law or standard. Automated repairs and automated checks cover only a part of WCAG. Much of it needs a person, for example to judge whether an alt text really describes the image.
  • It does not write alt texts, labels or any other text. Where your site holds no text to use, the problem stays and you will have to add the text yourself.
  • It does not change your content, your database or your theme files. That is why a repair ends when you deactivate the plugin.
  • It does not reach the cart and checkout built with WooCommerce blocks, or anything a theme or another plugin builds in the browser with JavaScript.
  • It does not contact any server. There is no account, no tracking and no file loaded from elsewhere.

Who makes it

Seviranta is a service that tests websites and webshops for accessibility problems. It is made in the Netherlands, in the EU, by 1Star BV in Zutphen.

This plugin works on its own. You do not need an account, and no part of the plugin is held back for paying customers. Two plain links lead to the free test of one page on seviranta.com: a button on the settings screen, and “Test this page on Seviranta” in the toolbar at the top of your site, which only administrators see. Whether you follow them is up to you. The plugin itself sends nothing.

Screenshots

Installation

  1. Install and activate the plugin.
  2. Go to Settings, Seviranta.
  3. Read what each repair does and switch on the ones you want.
  4. Save. If your site uses a page cache or a CDN, clear it so your visitors get the new HTML.

FAQ

Will this plugin make my site meet WCAG or the European Accessibility Act?

No, and no plugin can do that on its own. This plugin repairs ten specific problems that it can fix without writing text for you. Most of what WCAG asks needs a person to look at it: whether a text is clear, whether an alt text describes the image, whether everything works with a keyboard. Use the repairs as a start, and make the permanent changes the settings screen describes.

Is this an overlay or a widget?

No. The plugin adds no script, no stylesheet and no widget, and nothing runs in the browser of your visitor. It changes the HTML on your server, through the hooks of WordPress and WooCommerce, before the page is sent. Its tests check that a page with the repairs on has exactly the same elements and the same text as without them; only attributes change.

Will my visitors see a difference?

Mostly not. The repairs add names and alt texts that screen readers and other assistive technology read out, and the page looks the same. Two repairs change what a visitor can do: with the zoom repair on, they can zoom in on a phone or tablet, and with the keyboard order repair on, the Tab key follows the order of the page.

Is anything in this plugin paid?

No. Every repair is free, and no part of the plugin is held back for paying customers. Seviranta also sells a service that tests and keeps checking whole websites, but you do not need it for this plugin.

Does any data leave my site?

The plugin itself sends nothing and loads nothing from elsewhere. Only when you click “Test this page on Seviranta” in the toolbar does your browser open seviranta.com with the address of the page you were on, so that page can be tested. Parts of the address that WordPress does not need to find the page, such as the key in a link to an order, are left off. The toolbar link is only there for users who may manage options. You can switch it off with the checkbox under Settings, Seviranta, and a developer can remove it with the filter seviranta_show_admin_bar_link.

Does it slow down my site?

Your visitors download nothing extra, because the plugin adds no script, stylesheet or file. A repair that is off does no work at all. A repair that is on works on the small piece of HTML its hook hands over, such as one search form or one menu item, never on the whole page. With a page cache, that work happens once per cached page.

What happens when I deactivate or delete the plugin?

Your pages go back to how they were, because the plugin changes the HTML on its way out and never your content or your theme. Deactivating keeps your settings. Deleting the plugin removes its two settings from the database and leaves nothing behind.

How do I make a repair permanent?

Each repair on the settings screen says where the lasting change belongs: in a template of your theme (preferably in a child theme), in a menu item, or in the post where the image is used. Once you have made that change, the repair has nothing left to do and you can switch it off.

I switched a repair on and nothing changed. Why?

Either your site does not have that problem, or your site holds no text the plugin can use. For example, an image without alt text is only repaired when you saved an alt text for it in the Media Library. If you use a page cache, clear it first.

Does it work with a page cache or a CDN?

Yes. The repaired HTML is what gets cached. Clear the cache after you change a setting.

Does it work with block themes and the block editor?

The image repairs and the keyboard order repair work on content from the block editor and the classic editor. The menu repair works on classic menus (Appearance, Menus). The search form repair works on the search form of a classic theme. WordPress names the Search block itself, and gives block themes a viewport tag that allows zooming. The Navigation block of a block theme is not covered in this version.

Is the source code readable?

Yes. The plugin is plain PHP without a build step, and all of it is in the plugin folder.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Seviranta Accessibility Repairs: fixes without an overlay” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.2.0

  • Four new repairs, all off by default: zooming on phones and tablets, keyboard order with a positive tabindex, labels in the comment form, and WooCommerce fields that have only a placeholder.
  • New: “Test this page on Seviranta” in the toolbar, for administrators only, on the site and not in the dashboard. A checkbox on the settings screen switches it off, and a developer can remove it with the filter seviranta_show_admin_bar_link.
  • The settings screen and the toolbar link use one shared address for seviranta.com, in the language of the logged-in user.

0.1.0

  • First version. Six repairs, all off by default.