10% custom-menu-wizard

Code Review | Custom Menu Wizard Widget

WordPress plugin Custom Menu Wizard Widget scored 10% from 54 tests.

About plugin

  • Plugin page: custom-menu-wizard
  • Plugin version: 3.3.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 10, 2013
  • Latest release: Apr 2, 2018
  • Number of updates: 110
  • Update frequency: every 16.8 days
  • Top authors: wizzud (100%)

Code review

54 tests

User reviews

49 reviews

Install metrics

6,000+ active / 259,928 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/custom-menu-wizard/include/class.walker.php+55
    Declaration of Custom_Menu_Wizard_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args)

Server metrics [RAM: ▼0.98MB] [CPU: ▼48.17ms] Passed 4 tests

Analyzing server-side resources used by Custom Menu Wizard Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.01 ▼0.459.01 ▼32.44
Dashboard /wp-admin3.03 ▼0.2710.54 ▼35.44
Posts /wp-admin/edit.php3.03 ▼0.339.92 ▼37.61
Add New Post /wp-admin/post-new.php3.03 ▼2.8610.95 ▼87.19
Media Library /wp-admin/upload.php3.03 ▼0.2011.31 ▼24.64

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_custom-menu-wizard
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Menu Wizard Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.113.76 ▲2.0437.84 ▼2.20
Dashboard /wp-admin2,200 ▲155.80 ▼0.08102.98 ▼12.0243.12 ▼1.95
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0040.22 ▼0.8736.07 ▼0.00
Add New Post /wp-admin/post-new.php1,542 ▼018.43 ▲0.31634.46 ▲29.6054.33 ▲0.75
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0298.33 ▼0.1844.09 ▲3.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/custom-menu-wizard/include/class.walker.php+55
    Declaration of Custom_Menu_Wizard_Walker::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args)
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_custom-menu-wizard
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-menu-wizard/include/class.widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/custom-menu-wizard/include/class.walker.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/custom-menu-wizard/include/class.sorter.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

custom-menu-wizard/custom-menu-wizard.php 92% from 13 tests

The entry point to "Custom Menu Wizard Widget" version 3.3.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 296 characters long)

Code Analysis 97% from 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 plugin6,606 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP44921,3733,067
HTML253761,845
JavaScript2874601,527
CSS1019167

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 132)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity191.25
▷ Minimum class complexity8.00
▷ Maximum class complexity304.00
Average method complexity14.59
▷ Minimum method complexity1.00
▷ Maximum method complexity132.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods56
▷ Static methods47.14%
▷ Public methods4478.57%
▷ Protected methods00.00%
▷ Private methods1221.43%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
custom-menu-wizard-330.png4.85KB2.52KB▼ 48.18%