83% accessibility-assistant

Code Review | Accessibility Assistant

WordPress plugin Accessibility Assistant scored83%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: 6.3.1
  • 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

300+ active /2,797 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.67ms] 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.48 ▲0.0239.34 ▲0.67
Dashboard /wp-admin3.34 ▲0.0346.39 ▲0.45
Posts /wp-admin/edit.php3.39 ▲0.0342.98 ▼3.39
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.66 ▼14.38
Media Library /wp-admin/upload.php3.26 ▲0.0336.50 ▼1.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-comments
accessibility_install
can_compress_scripts
accessibility_tokken
accessibility_shopid
accessibility_url
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Accessibility Assistant: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,171 ▲42513.43 ▼1.135.10 ▲3.3337.25 ▼5.39
Dashboard /wp-admin2,228 ▲375.19 ▲0.28115.35 ▲11.3752.83 ▲10.01
Posts /wp-admin/edit.php2,093 ▲42.33 ▲0.3038.99 ▲0.3643.81 ▲10.04
Add New Post /wp-admin/post-new.php1,686 ▲16722.82 ▼0.42652.19 ▼32.0549.17 ▼1.95
Media Library /wp-admin/upload.php1,413 ▲284.32 ▲0.1297.35 ▼5.2348.31 ▲4.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 9 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • accessibility_shopid
    • widget_recent-comments
    • accessibility_url
    • accessibility_tokken
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
Please 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 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: accessibility, blind, access, desaturation, visually...

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

The main file in "Accessibility Assistant" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 190 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("accessibility-assistant.php" instead of "accessibility_assistant.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected14,395 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS31,230219,195
JavaScript31,1731,3874,588
PHP57820612

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
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%
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
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/screenshot-1.png99.33KB38.50KB▼ 61.24%
assets/header_logo.png7.02KB4.75KB▼ 32.35%
assets/screenshot-2.png28.91KB14.86KB▼ 48.62%
assets/screenshot-4.png75.63KB29.94KB▼ 60.42%