10% accessibility-spring

Code Review | Accessibility spring

WordPress plugin Accessibility spring scored 10% from 54 tests.

About plugin

  • Plugin page: accessibility-spring
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 5.8.1
  • First release: Dec 16, 2016
  • Latest release: Dec 27, 2020
  • Number of updates: 22
  • Update frequency: every 66.6 days
  • Top authors: lysyiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 3,299 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/accessibility-spring/views/main.php+227
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▼0.00MB] [CPU: ▼146.22ms] Passed 4 tests

A check of server-side resources used by Accessibility spring
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0022.11 ▲1.27
Dashboard /wp-admin3.06 ▼0.0031.00 ▼5.38
Posts /wp-admin/edit.php3.11 ▲0.0028.54 ▼0.59
Add New Post /wp-admin/post-new.php5.42 ▼0.0269.24 ▼580.16
Media Library /wp-admin/upload.php3.00 ▲0.0025.62 ▲2.02

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Accessibility spring
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.97 ▲0.395.02 ▼0.9776.17 ▼0.07
Dashboard /wp-admin2,930 ▲315.99 ▼0.18118.25 ▼8.95167.37 ▼3.64
Posts /wp-admin/edit.php2,737 ▼03.24 ▲0.0163.60 ▼0.33135.69 ▼9.50
Add New Post /wp-admin/post-new.php3,743 ▼7219.23 ▼0.15442.26 ▲13.63159.80 ▼21.31
Media Library /wp-admin/upload.php1,752 ▲35.46 ▼0.10135.29 ▼6.93184.90 ▲0.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/accessibility-spring/helper.php
    • > /wp-content/plugins/accessibility-spring/assets.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/accessibility-spring/accessibility-spring.php:11
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/accessibility-spring/views/main.php on line 227

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: handicap, wai-wcag, accessibility, sidebar

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

The main PHP script in "Accessibility spring" version 1.3.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 200 characters long)

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
Everything looks great! No dangerous files found in this plugin622 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.61
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-3_inverse.png4.71KB1.44KB▼ 69.44%
images/icon-2.png3.01KB1.63KB▼ 45.84%
images/main-icon.png1.17KB0.80KB▼ 31.28%