84% advance-nav-menu-manager

Code Review | Advance Nav Menu Manager

WordPress plugin Advance Nav Menu Manager scored84%from 54 tests.

About plugin

  • Plugin page: advance-nav-menu-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2023
  • Latest release: Mar 29, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: ruchirj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.52ms] Passed 4 tests

Analyzing server-side resources used by Advance Nav Menu Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.77 ▲2.69
Dashboard /wp-admin3.37 ▲0.0660.13 ▲11.38
Posts /wp-admin/edit.php3.42 ▲0.0653.16 ▼1.83
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.03 ▼14.61
Media Library /wp-admin/upload.php3.29 ▲0.0640.44 ▲3.68

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance Nav Menu Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.36 ▼0.372.24 ▼0.0943.12 ▼5.34
Dashboard /wp-admin2,200 ▲205.64 ▲0.1084.00 ▼7.5538.84 ▼2.28
Posts /wp-admin/edit.php2,105 ▲52.05 ▲0.0437.70 ▼1.9534.05 ▼1.59
Add New Post /wp-admin/post-new.php1,533 ▲722.86 ▼0.38707.17 ▲4.6851.21 ▼7.63
Media Library /wp-admin/upload.php1,405 ▲24.23 ▲0.02101.81 ▼4.2644.20 ▼0.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
Everything seems fine, however this is by no means 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
Please fix 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/advance-nav-menu-manager/include/class-advancenavmenumanager.php:238

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: copy menu item, move menu item to other menu, copy menu item to other menu, menu, duplicate menu item

advance-nav-menu-manager/advance-navmenu-manager.php 85% from 13 tests

The principal PHP file in "Advance Nav Menu Manager" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("advance-nav-menu-manager.php" instead of "advance-navmenu-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin323 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP544138285
JavaScript12638

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 images were found in this plugin