93% accessibility-light

Code Review | Accessibility Lite - A super lightweight Wordpress plugin

WordPress plugin Accessibility Lite - A super lightweight Wordpress plugin scored 93% from 54 tests.

About plugin

  • Plugin page: accessibility-light
  • Plugin version: 3.6.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jul 16, 2019
  • Latest release: Dec 17, 2021
  • Number of updates: 74
  • Update frequency: every 12.0 days
  • Top authors: tom_jjp (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

1,000+ active / 8,454 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼289.38ms] Passed 4 tests

Analyzing server-side resources used by Accessibility Lite - A super lightweight Wordpress plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3260.31 ▲2.67
Dashboard /wp-admin3.69 ▲0.2836.86 ▲1.65
Posts /wp-admin/edit.php3.91 ▲0.2743.52 ▼0.35
Add New Post /wp-admin/post-new.php7.15 ▲0.18101.52 ▼1,161.50
Media Library /wp-admin/upload.php3.56 ▲0.2730.62 ▲3.68

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessibility Lite - A super lightweight Wordpress plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,187 ▲44516.79 ▲1.0123.68 ▲17.9725.55 ▲23.50
Dashboard /wp-admin2,933 ▲726.26 ▲0.10120.05 ▼14.78179.48 ▲17.69
Posts /wp-admin/edit.php2,741 ▲533.24 ▲0.0065.55 ▲0.56144.95 ▲3.91
Add New Post /wp-admin/post-new.php1,691 ▼2616.44 ▼5.35433.60 ▲3.63166.29 ▲10.01
Media Library /wp-admin/upload.php1,736 ▲385.69 ▲0.25141.66 ▲6.71253.47 ▲68.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accessibility-light/includes/admin/functions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accessibility-light/includes/functions.php:99

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 86% from 29 tests

readme.txt 75% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Requires php: Version not formatted correctly
  • Screenshots: Please add an image for screenshot #1 (General back end panel)
  • Requires at least: Version not formatted correctly
  • Donate link: Invalid URI ("")
The official readme.txt might help

accessibility-light/accessibility-light.php Passed 13 tests

The main file in "Accessibility Lite - A super lightweight Wordpress plugin" v. 3.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
119 characters long description:
Accessibility Light ♿ SEO FRIENDLY plugin helping you run an accessible WordPress site for people with disabilities.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin12,321 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS34691224,439
JavaScript68464014,137
SVG1032,370
PHP73773161,103
PO File1116120272

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity63.33
▷ Minimum class complexity46.00
▷ Maximum class complexity75.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods45
▷ Static methods12.22%
▷ Public methods4293.33%
▷ Protected methods00.00%
▷ Private methods36.67%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/admin/img/wheelchair.png3.03KB0.55KB▼ 81.84%
assets/img/accessibility-light-logolight80.png1.86KB1.89KB0.00%
assets/img/wheelchair.png1.33KB1.34KB0.00%
assets/admin/img/accessibility-light-logo.png4.60KB2.70KB▼ 41.19%