68% wpdevart-vertical-menu

Code Review | Responsive Vertical Icon Menu

WordPress plugin Responsive Vertical Icon Menu scored68%from 54 tests.

About plugin

  • Plugin page: wpdevart-vertical...
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 23, 2018
  • Latest release: Oct 19, 2023
  • Number of updates: 139
  • Update frequency: every 15.1 days
  • Top authors: wpdevart (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /40,544 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Responsive Vertical Icon Menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.82 ▲0.3541.75 ▲1.00
Dashboard /wp-admin3.72 ▲0.4250.86 ▲3.01
Posts /wp-admin/edit.php3.77 ▲0.4246.18 ▲1.31
Add New Post /wp-admin/post-new.php6.24 ▲0.3581.83 ▼3.81
Media Library /wp-admin/upload.php3.58 ▲0.3536.76 ▲4.01
Vertical Menu /wp-admin/admin.php?page=wpda_vertical_menu_themes3.5532.73
Featured Plugins /wp-admin/admin.php?page=wpda_vertical_menu_featured_plugins3.5536.02

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 90 new files
Database: 1 new table, 7 new options
New tables
wp_wpda_vertical_menu_theme
New WordPress options
widget_wpdevart_vertical_menu_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Vertical Icon Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲18513.84 ▼0.428.57 ▲6.9340.93 ▲2.47
Dashboard /wp-admin2,224 ▲475.56 ▼0.1185.04 ▼0.7536.43 ▼8.02
Posts /wp-admin/edit.php2,132 ▲322.04 ▲0.0634.92 ▼2.3333.81 ▲0.63
Add New Post /wp-admin/post-new.php1,552 ▲1723.43 ▲5.08642.41 ▲42.4055.21 ▼6.74
Media Library /wp-admin/upload.php1,423 ▲234.23 ▲0.0699.07 ▼7.5442.38 ▼5.47
Vertical Menu /wp-admin/admin.php?page=wpda_vertical_menu_themes1,0562.7654.7948.65
Featured Plugins /wp-admin/admin.php?page=wpda_vertical_menu_featured_plugins1,1111.9923.2740.87

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
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wpda_vertical_menu_theme
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_wpdevart_vertical_menu_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpdevart-vertical-menu/includes/wpdevart_widget.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wpdevart-vertical-menu/wpdevart_vertical_menu.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpdevart-vertical-menu/includes/admin/class_for_addon_walker_nav_menu_edit.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu_Edit' not found in wp-content/plugins/wpdevart-vertical-menu/includes/admin/walker_nav_menu_edit_extended.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=wpda_vertical_menu_themes
    • > Network (severe)
    wp-content/plugins/wpdevart-vertical-menu/includes/admin/images/default%7B%7Brows.default%7D%7D.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: sidebar vertical menu, sidebar menu, responsive vertical menu, menu, vertical menu

wpdevart-vertical-menu/wpdevart_vertical_menu.php 85% from 13 tests

The main PHP script in "Responsive Vertical Icon Menu" version 1.6.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 166 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wpdevart-vertical-menu.php" instead of "wpdevart_vertical_menu.php")

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
Success! There were no dangerous files found in this plugin12,216 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
SVG30122,763
JavaScript52021572,071
PHP102471242,027
Sass1643341,825
LESS1641511,792
CSS680661,738

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.37
Average class complexity21.90
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods87
▷ Static methods2731.03%
▷ Public methods5967.82%
▷ Protected methods11.15%
▷ Private methods2731.03%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/images/featured_plugins/duplicate-page-post.png22.49KB4.28KB▼ 80.96%
includes/admin/images/support.png2.21KB1.14KB▼ 48.50%
includes/admin/images/featured_plugins/Pricing-table.png12.94KB4.08KB▼ 68.44%
includes/admin/images/featured_plugins/youtube.png14.53KB5.69KB▼ 60.85%
includes/admin/images/default0.png3.21KB0.58KB▼ 82.01%