84% accessibility-toolbar

Code Review | The Accessibility Toolbar by Online ADA

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

About plugin

  • Plugin page: accessibility-too...
  • Plugin version: 1.4.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.1
  • WordPress version: 6.3.1
  • First release: May 13, 2019
  • Latest release: Sep 12, 2023
  • Number of updates: 37
  • Update frequency: every 43.4 days
  • Top authors: onlineada (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /14,914 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼6.00ms] Passed 4 tests

A check of server-side resources used by The Accessibility Toolbar by Online ADA
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2844.75 ▲2.22
Dashboard /wp-admin3.56 ▲0.2252.98 ▼13.03
Posts /wp-admin/edit.php3.61 ▲0.2649.03 ▼1.44
Add New Post /wp-admin/post-new.php6.11 ▲0.2389.43 ▼11.75
Media Library /wp-admin/upload.php3.42 ▲0.1941.13 ▲7.64
Element Controls /wp-admin/admin.php?page=accessibility-toolbar-element-controls3.3941.01
Community /wp-admin/admin.php?page=accessibility-toolbar-community3.3933.78
Pro Features /wp-admin/admin.php?page=accessibility-toolbar-pro3.3933.41
Settings /wp-admin/admin.php?page=accessibility-toolbar3.3937.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 13 new options
New WordPress options
ll_at_hide_on_scroll
theysaidso_admin_options
widget_recent-posts
ll_at_license_status
ll_at_check_image_alt
ll_at_accessibility_menu
widget_theysaidso_widget
db_upgraded
ll_at_check_phone_email_links
ll_at_enable
...

Browser metrics Passed 4 tests

Checking browser requirements for The Accessibility Toolbar by Online ADA
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,457 ▲69617.15 ▲2.8080.62 ▲78.6633.93 ▼10.33
Dashboard /wp-admin2,261 ▲875.94 ▲0.17100.31 ▲6.2843.71 ▲3.84
Posts /wp-admin/edit.php2,169 ▲692.45 ▲0.4238.84 ▼3.7236.46 ▼5.64
Add New Post /wp-admin/post-new.php1,583 ▲5423.46 ▼0.02618.81 ▲10.8948.26 ▲0.05
Media Library /wp-admin/upload.php1,469 ▲694.59 ▲0.40101.91 ▲4.2145.89 ▲1.51
Element Controls /wp-admin/admin.php?page=accessibility-toolbar-element-controls9652.9150.9347.06
Community /wp-admin/admin.php?page=accessibility-toolbar-community8992.7344.3935.42
Pro Features /wp-admin/admin.php?page=accessibility-toolbar-pro1,0182.9440.7759.25
Settings /wp-admin/admin.php?page=accessibility-toolbar9242.7436.9041.81

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 13 options in the database
    • ll_at_check_image_alt
    • ll_at_hide_on_touch
    • can_compress_scripts
    • ll_at_accessibility_menu
    • theysaidso_admin_options
    • ll_at_enable
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • ll_at_hide_on_scroll
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Provider\odeProviderInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Provider/Node/SystemNodeProvider.php:23
    • > PHP Warning
      require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/accessibility-toolbar/vendor/paragonie/random_compat/psalm-autoload.php on line 3
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\\TimeConverterInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/Converter/Time/PhpTimeConverter.php:24
    • > PHP Fatal error
      Trait 'ADAToolbar\\Traits\\Singleton' not found in wp-content/plugins/accessibility-toolbar/src/Admin/Page.php on line 7
    • > 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
      Trait 'ADAToolbar\\Traits\\Singleton' not found in wp-content/plugins/accessibility-toolbar/src/Admin/Admin.php on line 9
    • > 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/RandomLibAdapter.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'Ramsey\\Uuid\\UuidFactoryInterface' not found in wp-content/plugins/accessibility-toolbar/vendor/ramsey/uuid/src/UuidFactory.php:25
    • > 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

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === accessibility-toolbar === )
You can look at the official readme.txt

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

The main PHP file in "The Accessibility Toolbar by Online ADA" ver. 1.4.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accessibility-toolbar.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin10,027 lines of code in 92 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript83,5716,1185,950
PHP737222,8762,944
Markdown54080690
JSON400421
XML10019
Bourne Shell1203

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.42
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity1.85
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces18
Interfaces10
Traits1
Classes48
▷ Abstract classes00.00%
▷ Concrete classes48100.00%
▷ Final classes12.08%
Methods278
▷ Static methods4415.83%
▷ Public methods25491.37%
▷ Protected methods207.19%
▷ Private methods41.44%
Functions37
▷ Named functions2978.38%
▷ Anonymous functions821.62%
Constants22
▷ Global constants627.27%
▷ Class constants1672.73%
▷ Public constants16100.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
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%