84% accessibility-plus

Code Review | AccessibilityPlus: Boost Accessibility & SEO Score for Lighthouse

WordPress plugin AccessibilityPlus: Boost Accessibility & SEO Score for Lighthouse scored84%from 54 tests.

About plugin

  • Plugin page: accessibility-plus
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2023
  • Latest release: Nov 24, 2023
  • Number of updates: 21
  • Update frequency: every 14.9 days
  • Top authors: easywpstuff (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,167 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.36MB] [CPU: ▼2.24ms] Passed 4 tests

Analyzing server-side resources used by AccessibilityPlus: Boost Accessibility & SEO Score for Lighthouse
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4042.60 ▲1.85
Dashboard /wp-admin3.70 ▲0.3945.94 ▼3.32
Posts /wp-admin/edit.php3.75 ▲0.3947.16 ▼3.07
Add New Post /wp-admin/post-new.php6.22 ▲0.3384.87 ▼4.40
Media Library /wp-admin/upload.php3.56 ▲0.3336.61 ▲3.40
Accessibility Plus /wp-admin/options-general.php?page=accessibilityplus3.5332.32

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for AccessibilityPlus: Boost Accessibility & SEO Score for Lighthouse
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲714.25 ▼0.101.77 ▼0.1842.79 ▼1.32
Dashboard /wp-admin2,196 ▲195.61 ▼0.0190.78 ▼8.7638.91 ▼8.16
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0338.86 ▼2.3235.75 ▼2.50
Add New Post /wp-admin/post-new.php1,529 ▲323.23 ▼0.21646.94 ▲47.1659.90 ▲9.79
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.0399.36 ▲1.9443.14 ▲2.91
Accessibility Plus /wp-admin/options-general.php?page=accessibilityplus9371.9825.8062.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accessibility-plus/inc/options.php:161

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)
There were no browser issues found

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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 ([Screenshot of plugin in action](assets/screenshot-1.png)) image missing
Please take inspiration from this readme.txt

accessibility-plus/accessibility.php 92% from 13 tests

Analyzing the main PHP file in "AccessibilityPlus: Boost Accessibility & SEO Score for Lighthouse" version 1.2.4
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("accessibility-plus.php" instead of "accessibility.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,433 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34453472,185
CSS140248

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity194.50
▷ Minimum class complexity139.00
▷ Maximum class complexity250.00
Average method complexity5.30
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods90
▷ Static methods11.11%
▷ Public methods7583.33%
▷ Protected methods1516.67%
▷ Private methods00.00%
Functions35
▷ Named functions2571.43%
▷ Anonymous functions1028.57%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin