78% wp-accessibility-helper

Code Review | WP Accessibility Helper (WAH)

WordPress plugin WP Accessibility Helper (WAH) scored78%from 54 tests.

About plugin

  • Plugin page: wp-accessibility-...
  • Plugin version: 0.6.2.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Apr 6, 2016
  • Latest release: Aug 9, 2023
  • Number of updates: 425
  • Update frequency: every 6.3 days
  • Top authors: vol4ikman (100%)

Code review

54 tests

User reviews

57 reviews

Install metrics

20,000+ active /263,221 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.02MB] [CPU: ▼8.13ms] Passed 4 tests

This is a short check of server-side resources used by WP Accessibility Helper (WAH)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0950.67 ▲12.94
Dashboard /wp-admin3.33 ▼0.0143.28 ▼18.36
Posts /wp-admin/edit.php3.38 ▲0.0344.50 ▼7.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.78 ▼7.82
Media Library /wp-admin/upload.php3.25 ▲0.0233.00 ▲0.88
Accessibility /wp-admin/admin.php?page=wp_accessibility3.5245.18
Widgets Order /wp-admin/admin.php?page=wp_accessibility_sidebar_controls3.2846.02
Attachments Control /wp-admin/admin.php?page=wp_accessibility_image3.3031.52
Landmark & CSS /wp-admin/admin.php?page=wp_accessibility_landmark3.3135.37

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Accessibility Helper (WAH)
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,077 ▲31613.94 ▼0.4116.59 ▲14.9850.32 ▲5.80
Dashboard /wp-admin2,230 ▲505.61 ▼0.0785.03 ▼6.5746.27 ▲5.52
Posts /wp-admin/edit.php2,135 ▲382.02 ▲0.0133.95 ▼4.0237.00 ▲1.70
Add New Post /wp-admin/post-new.php1,554 ▲2623.04 ▼0.03630.78 ▼64.0854.27 ▲1.16
Media Library /wp-admin/upload.php1,435 ▲354.24 ▲0.1599.39 ▼17.5239.62 ▼8.58
Accessibility /wp-admin/admin.php?page=wp_accessibility2,4763.6453.92107.13
Widgets Order /wp-admin/admin.php?page=wp_accessibility_sidebar_controls1,4163.2846.49106.89
Attachments Control /wp-admin/admin.php?page=wp_accessibility_image1,3173.0538.6289.37
Landmark & CSS /wp-admin/admin.php?page=wp_accessibility_landmark1,4713.0240.6978.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-accessibility-helper/wp-accessibility-helper.php
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-accessibility-helper/admin/pages/wah-landmark.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-accessibility-helper/admin/ajax-functions.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-accessibility-helper/inc/wah-front-functions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-accessibility-helper/admin/pages/wah-attachments.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-accessibility-helper/inc/js-vars.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wah_analyzer_isset() in wp-content/plugins/wp-accessibility-helper/wp-accessibility-helper-view.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-accessibility-helper/inc/custom-font.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wah_get_admin_widgets_list() in wp-content/plugins/wp-accessibility-helper/admin/pages/wah-sidebar-controls.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-accessibility-helper/inc/author-credits.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-accessibility-helper/inc/custom-logo-position.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt might help

wp-accessibility-helper/wp-accessibility-helper.php Passed 13 tests

The primary PHP file in "WP Accessibility Helper (WAH)" version 0.6.2.5 is used by WordPress to initiate all plugin functionality
31 characters long description:
WP Accessibility Helper sidebar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,352 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP161743142,178
Sass27721,398
JavaScript616774771
CSS598623
PO File1157166374
SVG1008

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
11 PNG files occupy 0.24MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/pages/img/customlink.png11.92KB5.34KB▼ 55.22%
assets/images/accessibility-48.png1.77KB1.54KB▼ 12.61%
admin/pages/img/resetOrder.png1.46KB0.72KB▼ 50.50%
admin/pages/img/sepia_monochrome.png26.43KB5.63KB▼ 78.68%
assets/images/sprite.png1.86KB1.93KB0.00%