94% accessible-dropdown-menus

Code Review | Accessible Dropdown Menus

WordPress plugin Accessible Dropdown Menus scored 94% 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: 5.9.2
  • 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

100+ active / 5,025 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.18ms] 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.53 ▲0.0154.89 ▲2.13
Dashboard /wp-admin3.41 ▲0.0133.44 ▼2.07
Posts /wp-admin/edit.php3.65 ▲0.0137.04 ▲0.31
Add New Post /wp-admin/post-new.php6.88 ▼0.0996.27 ▼1,180.64
Media Library /wp-admin/upload.php3.30 ▲0.0025.49 ▲1.70

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Accessible Dropdown Menus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,906 ▲15216.28 ▲0.6310.43 ▲4.562.24 ▼0.31
Dashboard /wp-admin2,892 ▲316.13 ▼0.16119.04 ▼18.00157.68 ▲0.31
Posts /wp-admin/edit.php2,688 ▼33.24 ▼0.0164.42 ▲2.71144.59 ▲6.47
Add New Post /wp-admin/post-new.php1,711 ▲5021.40 ▲5.11443.91 ▲21.36161.63 ▲1.54
Media Library /wp-admin/upload.php1,698 ▲35.53 ▲0.02141.16 ▲6.03186.10 ▼4.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 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
6 plugin tags: navigation, keyboard navigation, menus, dropdown menus, a11y...

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

The main PHP file in "Accessible Dropdown Menus" ver. 0.4.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! 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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin