94% accessibility-widget-by-adally

Code Review | Accessibility Widget by Adally

WordPress plugin Accessibility Widget by Adally scored 94% from 54 tests.

About plugin

  • Plugin page: accessibility-wid...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.1-5.5.0
  • WordPress version: 5.9.2
  • First release: Sep 4, 2020
  • Latest release: Sep 5, 2020
  • Number of updates: 5
  • Update frequency: every 1.0 days
  • Top authors: adallyada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 430 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼300.12ms] Passed 4 tests

Server-side resources used by Accessibility Widget by Adally
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0152.67 ▲0.77
Dashboard /wp-admin3.41 ▲0.0033.92 ▼12.11
Posts /wp-admin/edit.php3.65 ▲0.0036.73 ▲0.51
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.43 ▼1,188.80
Media Library /wp-admin/upload.php3.30 ▲0.0025.19 ▼0.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Accessibility Widget by Adally
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,931 ▲17716.29 ▲0.4923.32 ▲16.9031.14 ▲28.45
Dashboard /wp-admin2,895 ▲376.15 ▼0.03120.20 ▼11.55154.46 ▼6.72
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0062.73 ▼1.77133.28 ▼14.29
Add New Post /wp-admin/post-new.php1,711 ▼4121.29 ▲0.00413.54 ▼53.35158.37 ▼8.88
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.03142.71 ▲3.51191.38 ▲6.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accessibility-widget-by-adally/plugin.php:10

User-side errors Passed 1 test

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

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
7 plugin tags: accessibility, url, adally, wp, tool...

accessibility-widget-by-adally/plugin.php 92% from 13 tests

The main PHP file in "Accessibility Widget by Adally" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("accessibility-widget-by-adally.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin637 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1221630
PHP1487

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected