84% accessibility-widget-by-adally

Code Review | Accessibility Widget by Adally

WordPress plugin Accessibility Widget by Adally scored84%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: 6.3.1
  • 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

100+ active /760 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.93ms] Passed 4 tests

A check of server-side resources used by Accessibility Widget by Adally
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0136.69 ▼3.89
Dashboard /wp-admin3.31 ▲0.0044.61 ▼3.25
Posts /wp-admin/edit.php3.36 ▲0.0047.13 ▼6.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.74 ▼26.03
Media Library /wp-admin/upload.php3.23 ▲0.0037.10 ▲3.34

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Accessibility Widget by Adally
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,018 ▲28313.62 ▼0.7717.22 ▲15.5471.23 ▲23.57
Dashboard /wp-admin2,206 ▲185.91 ▲0.99102.69 ▼8.8041.08 ▼0.43
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0338.86 ▼2.1535.57 ▲0.45
Add New Post /wp-admin/post-new.php1,529 ▼018.48 ▼0.01605.61 ▼26.9353.62 ▲0.59
Media Library /wp-admin/upload.php1,388 ▲34.19 ▲0.0395.85 ▼1.4942.79 ▼0.33

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > 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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
7 plugin tags: widget, accessibility, tool, adally, url...

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

This is the main PHP file of "Accessibility Widget by Adally" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected637 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1221630
PHP1487

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin