84% accessibility-toolbar

Code Review | The Accessibility Toolbar by Online ADA

WordPress plugin The Accessibility Toolbar by Online ADA scored 84% from 54 tests.

About plugin

  • Plugin page: accessibility-too...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.3
  • WordPress version: 5.9.2
  • First release: May 13, 2019
  • Latest release: Jan 7, 2022
  • Number of updates: 29
  • Update frequency: every 34.3 days
  • Top authors: onlineada (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 6,915 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼295.72ms] Passed 4 tests

An overview of server-side resources used by The Accessibility Toolbar by Online ADA
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1063.19 ▲11.63
Dashboard /wp-admin3.45 ▲0.0444.97 ▲1.58
Posts /wp-admin/edit.php3.67 ▲0.0341.25 ▲0.20
Add New Post /wp-admin/post-new.php6.92 ▼0.0598.53 ▼1,189.13
Media Library /wp-admin/upload.php3.32 ▲0.0330.57 ▲4.49
Element Controls /wp-admin/admin.php?page=accessibility-toolbar-element-controls3.2925.74
Pro Features /wp-admin/admin.php?page=accessibility-toolbar-pro3.2925.56
Community /wp-admin/admin.php?page=accessibility-toolbar-community3.2925.50
Settings /wp-admin/admin.php?page=accessibility-toolbar3.2927.23

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 100 new files
Database: no new tables, 7 new options
New WordPress options
ll_at_check_phone_email_links
ll_at_hide_on_touch
ll_at_check_image_alt
ll_at_enable
ll_at_hide_on_scroll
ll_at_accessibility_menu
ll_at_license_status

Browser metrics Passed 4 tests

A check of browser resources used by The Accessibility Toolbar by Online ADA
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,412 ▲66820.58 ▲4.6896.74 ▲90.346.55 ▲4.23
Dashboard /wp-admin3,003 ▲1197.11 ▲0.53137.37 ▲1.17173.09 ▲7.65
Posts /wp-admin/edit.php2,770 ▲763.62 ▲0.1964.11 ▲2.61157.24 ▲18.35
Add New Post /wp-admin/post-new.php1,768 ▲1621.43 ▼0.49420.09 ▼44.14175.32 ▲20.15
Media Library /wp-admin/upload.php1,780 ▲826.12 ▲0.39128.20 ▼10.41204.30 ▲21.62
Element Controls /wp-admin/admin.php?page=accessibility-toolbar-element-controls1,2123.3872.13138.88
Pro Features /wp-admin/admin.php?page=accessibility-toolbar-pro1,2554.1279.03212.56
Community /wp-admin/admin.php?page=accessibility-toolbar-community1,1003.5864.64152.50
Settings /wp-admin/admin.php?page=accessibility-toolbar1,1494.0967.59166.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • ll_at_license_status
    • ll_at_hide_on_touch
    • ll_at_check_image_alt
    • ll_at_check_phone_email_links
    • ll_at_accessibility_menu
    • ll_at_enable
    • ll_at_hide_on_scroll

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 39× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Ramsey\\Uuid\\Codec\\StringCodec' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Codec/OrderedTimeCodec.php:23
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\umberConverterInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Converter/Number/BigNumberConverter.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Codec\\CodecInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Codec/StringCodec.php:28
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Builder\\UuidBuilderInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Builder/DefaultUuidBuilder.php:25
    • > PHP Fatal error
      Trait 'ADAToolbar\\Traits\\Singleton' not found in wp-content/plugins/accessibility-toolbar/src/Plugin.php on line 9
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Generator\\RandomGeneratorInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Generator/OpenSslGenerator.php:31
    • > PHP Fatal error
      Trait 'ADAToolbar\\Traits\\Singleton' not found in wp-content/plugins/accessibility-toolbar/src/Admin/Notices.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Ramsey\\Uuid\\Uuid' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/DegradedUuid.php:27
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\\TimeConverterInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Converter/Time/BigNumberTimeConverter.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Provider\\TimeProviderInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Provider/Time/FixedTimeProvider.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === accessibility-toolbar === )
You can look at the official readme.txt

accessibility-toolbar/index.php 92% from 13 tests

"The Accessibility Toolbar by Online ADA" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("accessibility-toolbar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected9,677 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript83,5716,1185,950
PHP696562,6392,645
Markdown53960660
JSON400400
XML10019
Bourne Shell1203

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity3.91
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.76
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces17
Interfaces10
Traits1
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes12.13%
Methods262
▷ Static methods2911.07%
▷ Public methods23690.08%
▷ Protected methods207.63%
▷ Private methods62.29%
Functions26
▷ Named functions1869.23%
▷ Anonymous functions830.77%
Constants22
▷ Global constants627.27%
▷ Class constants1672.73%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
src/assets/images/onlineadalogo.png8.19KB3.69KB▼ 54.88%
src/assets/images/onlineada.png14.99KB5.40KB▼ 63.99%
src/assets/images/logo-vert-dark.png6.82KB2.90KB▼ 57.47%