10% vertical-menu

Code Review | Vertical menu

WordPress plugin Vertical menu scored10%from 54 tests.

About plugin

  • Plugin page: vertical-menu
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.3
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Oct 26, 2022
  • Number of updates: 28
  • Update frequency: every 98.3 days
  • Top authors: pctricks.ir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,768 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
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼0.89MB] [CPU: ▼32.15ms] Passed 4 tests

Analyzing server-side resources used by Vertical menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.56 ▼2.94
Dashboard /wp-admin3.05 ▼0.2522.52 ▼24.53
Posts /wp-admin/edit.php3.05 ▼0.3023.50 ▼21.53
Add New Post /wp-admin/post-new.php3.05 ▼2.8322.78 ▼73.28
Media Library /wp-admin/upload.php3.05 ▼0.1822.12 ▼9.26
Vertical menu /wp-admin/options-general.php?page=vertical-menu/vmenu.php3.0524.68

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
vmw_theme
theysaidso_admin_options
vmw_dir
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Vertical menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.34 ▼0.801.74 ▼0.0137.51 ▼4.25
Dashboard /wp-admin2,207 ▲165.80 ▲0.93105.51 ▲3.8640.41 ▼5.32
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0236.77 ▼0.7035.69 ▲2.40
Add New Post /wp-admin/post-new.php1,536 ▲2223.27 ▲5.62633.53 ▲3.4257.61 ▲3.19
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.0494.69 ▼5.9842.31 ▼2.48
Vertical menu /wp-admin/options-general.php?page=vertical-menu/vmenu.php9292.0526.2735.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=vertical-menu/vmenu.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vertical-menu/vmenu.php:18

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === vertical-menu === )
The official readme.txt is a good inspiration

vertical-menu/vmenu.php 85% from 13 tests

The entry point to "Vertical menu" version 1.1.5 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vertical-menu.php" instead of "vmenu.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,762 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
CSS246801,465
PHP11413235
PO File16911562

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1184.62%
▷ Public methods13100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin