84% genesis-accessible-dropdown-menu

Code Review | Genesis Accessible Dropdown Menu

WordPress plugin Genesis Accessible Dropdown Menu scored84%from 54 tests.

About plugin

  • Plugin page: genesis-accessibl...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Aug 10, 2015
  • Number of updates: 5
  • Update frequency: every 139.2 days
  • Top authors: rianrietveld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,583 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼2.10ms] Passed 4 tests

Analyzing server-side resources used by Genesis Accessible Dropdown Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.35 ▼2.25
Dashboard /wp-admin3.31 ▲0.0150.98 ▼5.43
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▼2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.88 ▲2.49
Media Library /wp-admin/upload.php3.23 ▲0.0037.96 ▲1.76

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Genesis Accessible Dropdown Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.78 ▼0.568.30 ▲6.5238.24 ▼5.09
Dashboard /wp-admin2,198 ▲185.63 ▲0.0392.53 ▲3.0241.18 ▲0.52
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0440.22 ▲3.8734.69 ▲0.03
Add New Post /wp-admin/post-new.php1,529 ▲323.21 ▲0.15617.92 ▼76.0075.94 ▲24.04
Media Library /wp-admin/upload.php1,403 ▲64.17 ▲0.03103.75 ▼2.7643.16 ▼1.14

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-accessible-dropdown-menu/wpacc-genesis-dropdown.php:33

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: navigation, accessibility, genesis, a11y, keyboard navigation...

genesis-accessible-dropdown-menu/wpacc-genesis-dropdown.php 92% from 13 tests

The main PHP file in "Genesis Accessible Dropdown Menu" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("genesis-accessible-dropdown-menu.php" instead of "wpacc-genesis-dropdown.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin31 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2133312
JavaScript110611
CSS1768

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
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%
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
No PNG files were detected