84% wa11y

Code Review | wA11y - The Web Accessibility Toolbox

WordPress plugin wA11y - The Web Accessibility Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: wa11y
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Aug 13, 2016
  • Latest release: Sep 9, 2020
  • Number of updates: 21
  • Update frequency: every 70.9 days
  • Top authors: bamadesigner (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /10,240 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.58ms] Passed 4 tests

This is a short check of server-side resources used by wA11y - The Web Accessibility Toolbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0445.05 ▲1.46
Dashboard /wp-admin3.47 ▲0.1248.96 ▼2.91
Posts /wp-admin/edit.php3.58 ▲0.1947.03 ▼3.23
Add New Post /wp-admin/post-new.php6.05 ▲0.1287.03 ▼11.57
Media Library /wp-admin/upload.php3.39 ▲0.1237.39 ▼0.59
wA11y /wp-admin/options-general.php?page=wa11y3.3740.05

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

wA11y - The Web Accessibility Toolbox: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.23 ▼0.321.90 ▲0.3844.28 ▲4.18
Dashboard /wp-admin2,199 ▲225.52 ▼0.1583.11 ▼6.6241.40 ▼2.97
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0635.98 ▼0.7036.62 ▼1.05
Add New Post /wp-admin/post-new.php1,540 ▲918.21 ▼4.98622.15 ▼7.8476.18 ▲24.50
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0797.17 ▼4.7640.66 ▼8.03
wA11y /wp-admin/options-general.php?page=wa11y1,3642.0124.6673.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wa11y/includes/admin.php:67

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: tota11y, accessibility, tools, wa11y, evaluation...

wa11y/wa11y.php Passed 13 tests

The main PHP file in "wA11y - The Web Accessibility Toolbox" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
87 characters long description:
A toolbox of resources to help you improve the accessibility of your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected590 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP3228385460
SVG20250
Markdown131047
JSON10028
JavaScript10493
CSS2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity41.00
▷ Minimum class complexity36.00
▷ Maximum class complexity46.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2076.92%
▷ Protected methods27.69%
▷ Private methods415.38%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/webaim-head.png5.71KB2.68KB▼ 53.08%
assets/images/wave-logo.png11.56KB4.76KB▼ 58.79%
assets/images/tota11y-circle-glasses.png10.15KB4.31KB▼ 57.51%