84% accessible-dropdown-menus

Code Review | Accessible Dropdown Menus

WordPress plugin Accessible Dropdown Menus scored84%from 54 tests.

About plugin

  • Plugin page: accessible-dropdo...
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.6
  • WordPress version: 6.3.1
  • First release: Jun 21, 2013
  • Latest release: Jun 28, 2013
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: sabreuse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /5,400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Accessible Dropdown Menus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.86 ▲0.98
Dashboard /wp-admin3.31 ▲0.0149.90 ▼3.68
Posts /wp-admin/edit.php3.36 ▲0.0051.68 ▲4.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.13 ▼4.88
Media Library /wp-admin/upload.php3.23 ▲0.0038.90 ▲3.87

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Accessible Dropdown Menus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.48 ▼1.0911.17 ▲9.4444.70 ▲2.92
Dashboard /wp-admin2,195 ▲215.62 ▼0.0488.62 ▼4.8543.19 ▲2.68
Posts /wp-admin/edit.php2,100 ▼01.96 ▲0.0138.85 ▲3.1935.48 ▲2.53
Add New Post /wp-admin/post-new.php1,526 ▼1222.92 ▲5.01684.89 ▲45.1554.90 ▼15.96
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.02109.50 ▲0.8647.41 ▲3.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
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 add_action() in wp-content/plugins/accessible-dropdown-menus/accessible-dropdown-menus.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: navigation, menus, a11y, accessibility, dropdown menus...

accessible-dropdown-menus/accessible-dropdown-menus.php Passed 13 tests

The main PHP script in "Accessible Dropdown Menus" version 0.4.1 is automatically included on every request by WordPress
60 characters long description:
Makes dropdown menus in WordPress themes keyboard accessible

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
Success! There were no dangerous files found in this plugin33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP191524
JavaScript1009

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions2
▷ Named functions2100.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
No PNG files were detected