68% multilevel-navigation-menu

Code Review | Multilevel Navigation Menu

WordPress plugin Multilevel Navigation Menu scored68%from 54 tests.

About plugin

  • Plugin page: multilevel-naviga...
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2020
  • Latest release: Jan 29, 2023
  • Number of updates: 20
  • Update frequency: every 52.1 days
  • Top authors: Laxman Prajapati (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /7,386 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.75MB] [CPU: ▼32.97ms] Passed 4 tests

This is a short check of server-side resources used by Multilevel Navigation Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.99 ▲7.13
Dashboard /wp-admin3.21 ▼0.1425.32 ▼34.51
Posts /wp-admin/edit.php3.21 ▼0.1524.54 ▼21.35
Add New Post /wp-admin/post-new.php3.21 ▼2.6825.20 ▼68.34
Media Library /wp-admin/upload.php3.21 ▼0.0323.87 ▼7.67
Multilevel Navigation Menu /wp-admin/themes.php?page=multilevel-navigation-menu3.2125.67

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Multilevel Navigation Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,949 ▲21413.81 ▼0.625.92 ▲4.0941.81 ▼9.99
Dashboard /wp-admin2,241 ▲535.20 ▲0.30114.68 ▲5.7648.10 ▲4.14
Posts /wp-admin/edit.php2,113 ▲242.34 ▲0.3040.97 ▲2.4837.80 ▲2.57
Add New Post /wp-admin/post-new.php1,548 ▲1523.29 ▼0.02616.17 ▼90.6433.65 ▼14.23
Media Library /wp-admin/upload.php1,424 ▲334.49 ▲0.2694.45 ▼4.1441.96 ▼1.38
Multilevel Navigation Menu /wp-admin/themes.php?page=multilevel-navigation-menu2,9554.07115.5932.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/multilevel-navigation-menu/multilevel-navigation-menu.php+285
    Undefined variable: mnmwp_menu_shortcode
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/themes.php?page=multilevel-navigation-menu
    • > Notice in wp-content/plugins/multilevel-navigation-menu/multilevel-navigation-menu.php+285
    Undefined variable: mnmwp_menu_shortcode

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/multilevel-navigation-menu/multilevel-navigation-menu.php:30

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt is a good inspiration

multilevel-navigation-menu/multilevel-navigation-menu.php Passed 13 tests

"Multilevel Navigation Menu" version 1.0.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
Multilevel Navigation Menu plugin ability to add a full-screen navigation menu to our website.

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 plugin580 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2106215402
CSS222106
JavaScript28072

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods2596.15%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/mnmwp_logo.png12.03KB5.47KB▼ 54.56%