84% navgoco-menu

Code Review | Navgoco Vertical Multilevel Slide Menu

WordPress plugin Navgoco Vertical Multilevel Slide Menu scored84%from 54 tests.

About plugin

  • Plugin page: navgoco-menu
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7
  • WordPress version: 6.3.1
  • First release: Oct 19, 2015
  • Latest release: Dec 9, 2016
  • Number of updates: 14
  • Update frequency: every 29.7 days
  • Top authors: neilgee (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /6,084 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.01MB] [CPU: ▼2.38ms] Passed 4 tests

An overview of server-side resources used by Navgoco Vertical Multilevel Slide Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.02 ▼1.36
Dashboard /wp-admin3.32 ▲0.0144.36 ▼0.04
Posts /wp-admin/edit.php3.37 ▲0.0145.13 ▼2.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.15 ▼5.64
Media Library /wp-admin/upload.php3.24 ▲0.0135.11 ▲0.01
Navgoco Menu /wp-admin/options-general.php?page=navgoco3.2330.92

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Navgoco Vertical Multilevel Slide Menu
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.60 ▼0.789.50 ▲7.5436.57 ▼13.33
Dashboard /wp-admin2,210 ▲254.85 ▼0.02102.94 ▼5.7638.70 ▼2.74
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0136.38 ▲0.3831.92 ▼1.28
Add New Post /wp-admin/post-new.php1,517 ▲317.46 ▼0.21688.72 ▲7.5457.86 ▲0.62
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.0296.63 ▼3.5241.06 ▲0.10
Navgoco Menu /wp-admin/options-general.php?page=navgoco9052.0526.5834.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/navgoco-menu/inc/options-page-wrapper.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === navgoco-menu === )
You can take inspiration from this readme.txt

navgoco-menu/navgoco-menu.php Passed 13 tests

"Navgoco Vertical Multilevel Slide Menu" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Using Navgoco Vertical Multilevel Slide Menu in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin505 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript421102229
PHP398100209
CSS116367

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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
Namespaces1
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin