87% ada-tray-accessibility-widget

Code Review | Ada Tray Accessibility Widget

WordPress plugin Ada Tray Accessibility Widget scored 87% from 54 tests.

About plugin

  • Plugin page: ada-tray-accessib...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-5.8
  • WordPress version: 5.9.2
  • First release: Aug 30, 2021
  • Latest release: Dec 6, 2021
  • Number of updates: 38
  • Update frequency: every 2.7 days
  • Top authors: innsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 297 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Ada Tray Accessibility Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.83 ▲3.08
Dashboard /wp-admin3.42 ▲0.0131.14 ▼4.25
Posts /wp-admin/edit.php3.65 ▲0.0136.68 ▼0.11
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.41 ▼1,210.56
Media Library /wp-admin/upload.php3.30 ▲0.0122.29 ▼1.23
ADA Tray® /wp-admin/options-general.php?page=Ada-tray3.2521.41

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Ada Tray Accessibility Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲1815.88 ▲0.225.91 ▼0.561.99 ▼0.69
Dashboard /wp-admin2,893 ▲326.15 ▲0.01113.42 ▼17.27154.01 ▼5.63
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0063.21 ▲0.89138.09 ▼4.98
Add New Post /wp-admin/post-new.php1,664 ▲316.94 ▲0.90421.06 ▼5.72166.46 ▲15.11
Media Library /wp-admin/upload.php1,703 ▲25.51 ▲0.03135.85 ▼4.31187.65 ▲3.12
ADA Tray® /wp-admin/options-general.php?page=Ada-tray1,0762.5151.73110.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Ada-tray
    • > Notice in wp-content/plugins/ada-tray-accessibility-widget/includes/adashield.php+114
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ada-tray-accessibility-widget/trunk/includes/adashield.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ada-tray-accessibility-widget/trunk/adatray.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ada-tray-accessibility-widget/includes/adashield.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ada-tray-accessibility-widget/adatray.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in ada-tray-accessibility-widget/assets to your readme.txt
  • Tags: There are too many tags (22 tag instead of maximum 10)
You can look at the official readme.txt

ada-tray-accessibility-widget/adatray.php 85% from 13 tests

"Ada Tray Accessibility Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("ada-tray-accessibility-widget.php" instead of "adatray.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected179 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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 functions16100.00%
▷ Anonymous functions00.00%
▷ 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
There are no PNG files in this plugin