77% ada-tray-accessibility-widget

Code Review | Ada Tray Accessibility Widget

WordPress plugin Ada Tray Accessibility Widget scored77%from 54 tests.

About plugin

  • Plugin page: ada-tray-accessib...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 30, 2021
  • Latest release: Jan 3, 2023
  • Number of updates: 46
  • Update frequency: every 10.7 days
  • Top authors: innsight (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,290 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.50ms] Passed 4 tests

Analyzing 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.47 ▲0.0140.28 ▼9.20
Dashboard /wp-admin3.34 ▲0.0349.40 ▼1.38
Posts /wp-admin/edit.php3.39 ▲0.0351.73 ▲3.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.52 ▲5.23
Media Library /wp-admin/upload.php3.26 ▲0.0336.75 ▲1.12
ADA Tray® /wp-admin/options-general.php?page=Ada-tray3.2034.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Ada Tray Accessibility Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.182.33 ▲0.6343.92 ▼3.66
Dashboard /wp-admin2,202 ▲225.62 ▲0.0392.41 ▲3.2744.71 ▲5.66
Posts /wp-admin/edit.php2,107 ▲71.95 ▼0.0740.66 ▲2.1137.92 ▲1.34
Add New Post /wp-admin/post-new.php1,540 ▲1118.44 ▼4.46622.45 ▼82.8157.97 ▼3.71
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.0697.13 ▲1.3242.80 ▼2.80
ADA Tray® /wp-admin/options-general.php?page=Ada-tray8771.9928.6131.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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
Please fix the following server-side errors
  • 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > 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 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 plugin_dir_path() in wp-content/plugins/ada-tray-accessibility-widget/adatray.php:10

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)
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
Please fix the following attributes:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in ada-tray-accessibility-widget/assets to your readme.txt
  • Tags: You are using too many tags: 26 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The main PHP file in "Ada Tray Accessibility Widget" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ada-tray-accessibility-widget.php" instead of "adatray.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin179 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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 were not PNG files found in your plugin