84% accessibility-spring

Code Review | Accessibility spring

WordPress plugin Accessibility spring scored 84% from 54 tests.

About plugin

  • Plugin page: accessibility-spring
  • Plugin version: 1.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9.3
  • WordPress version: 6.3.1
  • First release: Dec 16, 2016
  • Latest release: May 13, 2022
  • Number of updates: 23
  • Update frequency: every 85.5 days
  • Top authors: lysyiweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 5,993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.35MB] [CPU: ▼12.07ms] Passed 4 tests

A check of server-side resources used by Accessibility spring
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.02 ▼37.93
Dashboard /wp-admin3.32 ▲0.0244.32 ▼10.36
Posts /wp-admin/edit.php3.37 ▲0.0146.83 ▼1.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.08 ▲3.34
Media Library /wp-admin/upload.php3.24 ▲0.0135.54 ▲1.38

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Accessibility spring: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,000 ▲26514.05 ▼0.2413.37 ▲11.4844.99 ▼1.20
Dashboard /wp-admin2,217 ▲325.88 ▲0.9995.87 ▼20.9167.91 ▲23.28
Posts /wp-admin/edit.php2,103 ▲111.99 ▼0.0536.36 ▲1.1632.17 ▼1.50
Add New Post /wp-admin/post-new.php1,678 ▲15821.63 ▼1.63739.91 ▲56.2552.90 ▲9.57
Media Library /wp-admin/upload.php1,399 ▲84.12 ▼0.1299.58 ▼10.0279.14 ▲28.50

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just fix the following items
  • 2× 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-spring/assets.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/accessibility-spring/accessibility-spring.php:10

User-side errors Passed 1 test

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

Optimizations

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: sidebar, handicap, accessibility, wai-wcag

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

The entry point to "Accessibility spring" version 1.3.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (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
Success! There were no dangerous files found in this plugin801 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP415310349
PO File26888182
JavaScript11981140
CSS1410130

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.63
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
14 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png9.05KB5.10KB▼ 43.64%
assets/screenshot-1.png89.82KB33.11KB▼ 63.14%
assets/screenshot-2.png13.92KB5.71KB▼ 58.97%
images/close.png0.36KB0.50KB0.00%
images/icon-4.png1.14KB1.41KB0.00%