67% accessibility-checker

Code Review | Accessibility Checker by Equalize Digital

WordPress plugin Accessibility Checker by Equalize Digital scored 67% from 54 tests.

About plugin

  • Plugin page: accessibility-che...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9.1
  • WordPress version: 5.9.2
  • First release: Dec 7, 2020
  • Latest release: Mar 1, 2022
  • Number of updates: 34
  • Update frequency: every 13.7 days
  • Top authors: stevejonesdev (94.12%)equalizedigital (8.82%)

Code review

54 tests

User reviews

12 reviews

Install metrics

700+ active / 7,012 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲5.14MB] [CPU: ▼274.22ms] 75% from 4 tests

Server-side resources used by Accessibility Checker by Equalize Digital
The following require your attention
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.14MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.78 ▲5.2782.48 ▲30.00
Dashboard /wp-admin8.80 ▲5.3963.58 ▲30.00
Posts /wp-admin/edit.php8.80 ▲5.1666.28 ▲28.82
Add New Post /wp-admin/post-new.php11.71 ▲4.74119.73 ▼1,182.01
Media Library /wp-admin/upload.php8.80 ▲5.5051.58 ▲26.32
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.8049.13

Server storage [IO: ▲3.70MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 263 new files
Database: 1 new table, 9 new options
New tables
wp_accessibility_checker
New WordPress options
fs_active_plugins
edac_simplified_summary_position
edac_post_types
fs_accounts
edac_db_version
edac_activation_date
edac_review_notice
fs_gdpr
fs_debug_mode

Browser metrics Passed 4 tests

Accessibility Checker by Equalize Digital: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲6315.98 ▼0.085.89 ▲0.112.37 ▼0.36
Dashboard /wp-admin2,947 ▲866.19 ▲0.01120.79 ▼10.76171.45 ▲8.86
Posts /wp-admin/edit.php2,750 ▲593.23 ▼0.0074.24 ▲10.89151.45 ▲10.68
Add New Post /wp-admin/post-new.php2,212 ▲50117.51 ▼4.11472.20 ▼6.77258.42 ▲100.95
Media Library /wp-admin/upload.php1,753 ▲555.67 ▲0.20150.64 ▲0.51197.70 ▲9.21
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,4582.5454.54110.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_accessibility_checker
  • Zombie WordPress options detected upon uninstall: 8 options
    • edac_review_notice
    • fs_gdpr
    • edac_post_types
    • fs_debug_mode
    • fs_accounts
    • fs_active_plugins
    • edac_db_version
    • edac_simplified_summary_position

Smoke tests 50% 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 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/accessibility-checker/partials/custom-meta-box.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'simple_html_dom' not found in wp-content/plugins/accessibility-checker/includes/classes/class_edac_dom.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_filter() in wp-content/plugins/accessibility-checker/partials/settings-page.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accessibility-checker/partials/welcome-page.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accessibility-checker/partials/pro-callout.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed: Please take inspiration from this readme.txt

accessibility-checker/accessibility-checker.php 85% from 13 tests

This is the main PHP file of "Accessibility Checker by Equalize Digital" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 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 plugin43,688 lines of code in 198 files:
LanguageFilesBlank linesComment linesLines of code
PHP1758,91218,46142,009
CSS121313656
Markdown2840459
JavaScript5130110453
XML20059
JSON10027
SVG11025

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity85.47
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods1,335
▷ Static methods19714.76%
▷ Public methods97973.33%
▷ Protected methods302.25%
▷ Private methods32624.42%
Functions252
▷ Named functions24597.22%
▷ Anonymous functions72.78%
Constants155
▷ Global constants13083.87%
▷ Class constants2516.13%
▷ Public constants25100.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
22 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/warning icon navy.png12.24KB7.75KB▼ 36.71%
assets/images/error icon white.png15.62KB10.15KB▼ 35.04%
assets/images/warning icon yellow.png13.66KB7.08KB▼ 48.18%
assets/images/edac-logo.png4.65KB2.17KB▼ 53.18%
assets/images/checkmark icon green.png14.47KB9.78KB▼ 32.40%