Mirrora RTL Audit

Description

Building for Arabic, Persian or Urdu? Most RTL bugs come from CSS that assumes left-to-right: margin-left, float: left, text-align: left, arrows that point the wrong way. Mirrora RTL Audit finds them for you.

CSS scan (Tools Mirrora RTL Audit)

  • Scans the CSS files in your active theme (and parent theme) and active plugins. Very large sites are capped at 600 files, and the report says when results are partial.
  • Flags physical properties (left, margin-right, border-left, float, text-align, asymmetric shorthands, corner radii, gradients, position keywords).
  • Shows the file, line and selector, plus a copy-ready fix with CSS logical properties (margin-inline-start, text-align: start, inset-inline-end, and so on).
  • Knows when WordPress already loads an RTL stylesheet (rtl.css, style-rtl.css) for a file, and marks those findings as covered.
  • Ignores rules already scoped to [dir="rtl"], .rtl or :dir(), symmetric pairs like margin-left: auto; margin-right: auto, and the left: 50%; transform: translateX(-50%) centering trick.
  • Filter by severity, theme/plugin or text, and export to CSV.

Page audit (admin bar Mirrora RTL Audit)

Highlights problems on the live page, visible only to you:

  • Arabic text aligned with text-align: left
  • letter-spacing on Arabic text, which breaks the joins between letters
  • Latin text, numbers and phone numbers whose punctuation lands on the wrong side
  • Email, URL, phone, number and password fields that are missing dir="ltr"
  • Arrow and chevron icons that are not mirrored
  • Arabic text falling back to a system font because the font stack is Latin-only
  • Western and Arabic-Indic digits mixed in the same text
  • Arabic and Latin text mixed next to punctuation, where the order can scramble

RTL preview

Running an English site? Turn on “Preview site in RTL” in the admin bar to switch the front end to right-to-left for your account only. Visitors see nothing different.

Mirrora RTL Audit makes no external requests, sends no data anywhere and never changes your files. The last scan report and your toggle settings are stored in your own database and removed when you uninstall the plugin.

Screenshots

Installation

  1. Install from Plugins Add New, or upload the mirrora-rtl-audit folder to /wp-content/plugins/.
  2. Activate the plugin.
  3. Go to Tools Mirrora RTL Audit and click “Scan theme and plugins”.
  4. On the front end, use the admin bar menu “Mirrora RTL Audit Audit this page”.

FAQ

Does it change my CSS?

No. Mirrora RTL Audit only reads files. You apply the fixes yourself, in your theme or child theme.

Why are some findings marked “Covered”?

WordPress swaps in a matching RTL stylesheet (for example style-rtl.css) on RTL sites, so physical properties in the LTR file are expected there. They are hidden by default.

Who can see the page audit?

Only logged-in users with the manage_options capability. Developers can change this with the rtld_capability filter.

Can I scan other folders?

Yes, with the rtld_scan_sources filter. Add items with type, name and dir keys.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Mirrora RTL Audit” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Mirrora RTL Audit” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.1.1

  • Renamed plugin; removed bundled translations.

0.1.0

  • First release: CSS scanner, page audit and RTL preview.
  • Arabic translation included.