10% accessibility-assistant

Code Review | Accessibility Assistant

WordPress plugin Accessibility Assistant scored 10% from 54 tests.

About plugin

  • Plugin page: accessibility-ass...
  • Plugin version: 1.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7.2
  • WordPress version: 5.9.2
  • First release: Apr 10, 2020
  • Latest release: Jul 12, 2021
  • Number of updates: 8
  • Update frequency: every 57.4 days
  • Top authors: cartcoder (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 1,867 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/accessibility-assistant/accessibility_assistant.php+53
    Trying to access array offset on value of type null

Server metrics [RAM: ▲0.01MB] [CPU: ▼321.02ms] Passed 4 tests

Analyzing server-side resources used by Accessibility Assistant
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0360.56 ▲1.39
Dashboard /wp-admin3.45 ▲0.0535.35 ▲1.72
Posts /wp-admin/edit.php3.68 ▲0.0439.32 ▲3.70
Add New Post /wp-admin/post-new.php6.92 ▼0.0597.80 ▼1,290.88
Media Library /wp-admin/upload.php3.33 ▲0.0429.52 ▲6.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

Accessibility Assistant: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,835 ▲8115.84 ▲0.476.07 ▼0.762.84 ▲0.20
Dashboard /wp-admin2,932 ▲786.45 ▲0.33128.83 ▼51.42253.52 ▲87.97
Posts /wp-admin/edit.php2,726 ▲543.42 ▲0.0670.24 ▲3.66237.90 ▲11.58
Add New Post /wp-admin/post-new.php1,737 ▲8020.76 ▲3.32468.53 ▲15.51182.06 ▲6.59
Media Library /wp-admin/upload.php1,739 ▲415.68 ▲0.20155.84 ▼26.69210.44 ▲10.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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
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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/accessibility-assistant/admin/accessibility_dashboard.php

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: access, visually, desaturation, accessible, cursor...

accessibility-assistant/accessibility_assistant.php 77% from 13 tests

This is the main PHP file of "Accessibility Assistant" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("accessibility-assistant.php" instead of "accessibility_assistant.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin14,395 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
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 functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png66.96KB26.54KB▼ 60.37%
assets/header_logo.png7.02KB4.75KB▼ 32.35%
assets/screenshot-4.png75.63KB29.94KB▼ 60.42%
assets/screenshot-1.png99.33KB38.50KB▼ 61.24%
assets/screenshot-2.png28.91KB14.86KB▼ 48.62%