73% accessibility-light

Code Review | Accessibility Lite - SEO Friendly Super Lightweight WordPress Plugin

WordPress plugin Accessibility Lite - SEO Friendly Super Lightweight WordPress Plugin scored73%from 54 tests.

About plugin

  • Plugin page: accessibility-light
  • Plugin version: 3.7.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 16, 2019
  • Latest release: Nov 11, 2023
  • Number of updates: 108
  • Update frequency: every 14.6 days
  • Top authors: tom_jjp (68.52%)minisub (18.52%)ashish112 (14.81%)

Code review

54 tests

User reviews

34 reviews

Install metrics

4,000+ active /29,222 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▼4.57ms] Passed 4 tests

A check of server-side resources used by Accessibility Lite - SEO Friendly Super Lightweight WordPress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2840.73 ▲1.82
Dashboard /wp-admin3.60 ▲0.2648.62 ▼13.01
Posts /wp-admin/edit.php3.72 ▲0.3648.47 ▲3.55
Add New Post /wp-admin/post-new.php6.18 ▲0.2984.66 ▼10.62
Media Library /wp-admin/upload.php3.53 ▲0.3041.44 ▲9.22

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accessibility Lite - SEO Friendly Super Lightweight WordPress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,285 ▲52313.61 ▼0.7822.52 ▲20.8647.17 ▲3.02
Dashboard /wp-admin2,302 ▲1315.53 ▼0.0391.32 ▼11.6270.37 ▲27.62
Posts /wp-admin/edit.php2,226 ▲1262.12 ▲0.1740.03 ▲3.0737.58 ▲4.16
Add New Post /wp-admin/post-new.php1,795 ▲26922.49 ▼0.36774.53 ▲106.4664.34 ▲8.23
Media Library /wp-admin/upload.php1,513 ▲1134.19 ▼0.02106.40 ▲2.2174.84 ▲31.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/accessibility-light/accessibility-light.php+381
    Undefined variable: user_id
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 4× PHP files trigger server errors when accessed directly:
    • > 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/trunk/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
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/accessibility-light/trunk/includes/functions.php:99

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires php: Invalid version format
  • Screenshots: Screenshot #1 (General back end panel) image missing
  • Requires at least: Invalid version format
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

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

The main file in "Accessibility Lite - SEO Friendly Super Lightweight WordPress Plugin" v. 3.7.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)

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
Success! There were no dangerous files found in this plugin12,326 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS34741714,388
JavaScript68464054,133
SVG1032,370
PHP73923191,163
PO File1116120272

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity63.67
▷ Minimum class complexity46.00
▷ Maximum class complexity75.00
Average method complexity5.18
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes233.33%
Methods90
▷ Static methods22.22%
▷ Public methods8493.33%
▷ Protected methods00.00%
▷ Private methods66.67%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/assets/img/wheelchair.png1.33KB1.34KB0.00%
trunk/assets/img/accessibility-light-logolight80.png1.86KB1.89KB0.00%
assets/admin/img/wheelchair.png3.03KB0.55KB▼ 81.84%
assets/admin/img/accessibility-light-logo.png4.60KB2.70KB▼ 41.19%
assets/img/wheelchair.png1.33KB1.34KB0.00%