84% ryans-suckerfish-wordpress-dropdown-menu

Code Review | Suckerfish Dropdown Menu

WordPress plugin Suckerfish Dropdown Menu scored84%from 54 tests.

About plugin

  • Plugin page: ryans-suckerfish-...
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2008
  • Latest release: Jan 30, 2018
  • Number of updates: 28
  • Update frequency: every 130.1 days
  • Top authors: ryanhellyer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /80,022 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 gracefully, with no errors

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

Server-side resources used by Suckerfish Dropdown Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.03 ▲1.56
Dashboard /wp-admin3.31 ▲0.0044.08 ▼3.67
Posts /wp-admin/edit.php3.36 ▲0.0046.65 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.58 ▼0.77
Media Library /wp-admin/upload.php3.23 ▲0.0035.19 ▼0.93

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Suckerfish Dropdown Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.53 ▼0.852.10 ▲0.5942.50 ▲2.38
Dashboard /wp-admin2,203 ▲115.84 ▲0.9094.27 ▼21.0738.89 ▼4.53
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0040.16 ▲3.1136.88 ▲2.78
Add New Post /wp-admin/post-new.php1,547 ▲1423.24 ▼0.28653.80 ▲17.3464.73 ▲4.24
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.03103.60 ▲5.9747.52 ▲1.93

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ryans-suckerfish-wordpress-dropdown-menu/index.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: navigation, menu, suckerfish, dropdown

ryans-suckerfish-wordpress-dropdown-menu/index.php 85% from 13 tests

The main PHP script in "Suckerfish Dropdown Menu" version 2.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 417 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ryans-suckerfish-wordpress-dropdown-menu.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin28 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10020
PHP16198

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected