90% noakes-menu-manager

Code Review | Nav Menu Manager

WordPress plugin Nav Menu Manager scored90%from 54 tests.

About plugin

  • Plugin page: noakes-menu-manager
  • Plugin version: 3.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jul 14, 2016
  • Latest release: Mar 23, 2023
  • Number of updates: 103
  • Update frequency: every 23.7 days
  • Top authors: rnoakes3rd (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /28,641 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼0.38ms] Passed 4 tests

Server-side resources used by Nav Menu Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.55 ▼3.73
Dashboard /wp-admin3.34 ▲0.0445.96 ▼1.17
Posts /wp-admin/edit.php3.46 ▲0.1048.72 ▲0.14
Add New Post /wp-admin/post-new.php5.93 ▲0.04108.59 ▲3.23
Media Library /wp-admin/upload.php3.27 ▲0.0434.97 ▲3.86
Nav Menu Manager /wp-admin/options-general.php?page=noakes_menu_manager_settings3.4638.34
Nav Menu Manager /wp-admin/tools.php?page=noakes_menu_manager_generator3.3835.67

Server storage [IO: ▲1.16MB] [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: 184 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
noakes_menu_manager_version
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Nav Menu Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.24 ▼1.344.41 ▲2.0438.73 ▼2.54
Dashboard /wp-admin2,217 ▲294.84 ▼0.05109.82 ▲3.6842.51 ▼0.01
Posts /wp-admin/edit.php2,097 ▲81.97 ▼0.0840.54 ▲4.3735.88 ▲4.52
Add New Post /wp-admin/post-new.php1,539 ▲2523.42 ▲5.91632.42 ▼53.6450.63 ▲1.29
Media Library /wp-admin/upload.php1,399 ▲204.18 ▼0.0197.72 ▼4.3541.48 ▼6.77
Nav Menu Manager /wp-admin/options-general.php?page=noakes_menu_manager_settings1,5452.7360.4956.46
Nav Menu Manager /wp-admin/tools.php?page=noakes_menu_manager_generator1,5472.6159.4438.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • noakes_menu_manager_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt might help

noakes-menu-manager/noakes-menu-manager.php Passed 13 tests

"Nav Menu Manager" version 3.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
105 characters long description:
Simplifies nav menu maintenance and functionality providing more control over nav menus with less coding.

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
Good job! No executable or dangerous file extensions detected11,603 lines of code in 171 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1291,1216354,608
PHP369733,1454,188
CSS44532,783
Markdown14018
JSON1006

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity16.27
▷ Minimum class complexity1.00
▷ Maximum class complexity79.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes2993.55%
Methods158
▷ Static methods4629.11%
▷ Public methods12075.95%
▷ Protected methods2213.92%
▷ Private methods1610.13%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants43
▷ Global constants00.00%
▷ Class constants43100.00%
▷ Public constants43100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.44MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/debug/images/robert-noakes.png6.28KB5.31KB▼ 15.39%
assets/release/images/YourWordPressDXP300x600.png136.86KB60.69KB▼ 55.65%
assets/release/images/YourWordPressDXP728x90.png73.03KB33.27KB▼ 54.44%
assets/release/images/noakes-plugins.png8.04KB6.25KB▼ 22.23%
assets/release/images/robert-noakes.png6.28KB5.31KB▼ 15.39%