84% sa11y

Code Review | Sa11y, the accessibility quality assurance assistant | Accessibility Checker

WordPress plugin Sa11y, the accessibility quality assurance assistant | Accessibility Checker scored84%from 54 tests.

About plugin

  • Plugin page: sa11y
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 13, 2022
  • Latest release: Jul 7, 2023
  • Number of updates: 19
  • Update frequency: every 23.7 days
  • Top authors: adamchaboryk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,662 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼14.65ms] Passed 4 tests

A check of server-side resources used by Sa11y, the accessibility quality assurance assistant | Accessibility Checker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0546.02 ▲4.01
Dashboard /wp-admin3.35 ▲0.0050.47 ▼18.07
Posts /wp-admin/edit.php3.40 ▲0.0447.68 ▼7.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.32 ▼29.84
Media Library /wp-admin/upload.php3.27 ▲0.0435.61 ▼3.12
Sa11y /wp-admin/options-general.php?page=sa11y3.2937.43

Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Sa11y, the accessibility quality assurance assistant | Accessibility Checker: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,140 ▲37913.34 ▼1.2819.05 ▲17.4746.84 ▲0.34
Dashboard /wp-admin2,199 ▲195.62 ▼0.0387.63 ▼5.9439.77 ▼2.58
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0536.78 ▼3.9336.51 ▲0.83
Add New Post /wp-admin/post-new.php1,539 ▲1118.36 ▼4.69587.57 ▼83.8966.16 ▲8.35
Media Library /wp-admin/upload.php1,404 ▲44.22 ▼0.01102.29 ▼4.9442.38 ▼2.21
Sa11y /wp-admin/options-general.php?page=sa11y1,3872.0224.8447.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/sa11y/partials/intro.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/sa11y/partials/sidebar.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: wcag, accessibility checker, audit, accessibility, accessibility automated testing

sa11y/sa11y-wp.php 85% from 13 tests

This is the main PHP file of "Sa11y, the accessibility quality assurance assistant | Accessibility Checker" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sa11y.php" instead of "sa11y-wp.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,188 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript272094474,927
PHP92513462,073
CSS2286130
Markdown120058

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions79
▷ Named functions79100.00%
▷ Anonymous functions00.00%
Constants17
▷ Global constants1588.24%
▷ Class constants211.76%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin