83% hhd-flatsome-vertical-menu

Code Review | HHD Flatsome Vertical Menu

WordPress plugin HHD Flatsome Vertical Menu scored83%from 54 tests.

About plugin

  • Plugin page: hhd-flatsome-vert...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.6
  • WordPress version: 6.3.1
  • First release: Jan 8, 2021
  • Latest release: Jan 8, 2021
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: huuhadev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.07ms] Passed 4 tests

Server-side resources used by HHD Flatsome Vertical Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.60 ▼0.02
Dashboard /wp-admin3.31 ▼0.0443.58 ▼26.52
Posts /wp-admin/edit.php3.36 ▲0.0047.78 ▼2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.24 ▼2.89
Media Library /wp-admin/upload.php3.23 ▲0.0035.99 ▲0.05

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for HHD Flatsome Vertical Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.304.22 ▲2.5943.78 ▼0.87
Dashboard /wp-admin2,206 ▲185.84 ▼0.04106.76 ▲6.1941.51 ▲3.16
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0138.18 ▲0.8735.97 ▲2.78
Add New Post /wp-admin/post-new.php1,534 ▼823.23 ▲4.94689.88 ▲70.0556.28 ▼1.28
Media Library /wp-admin/upload.php1,388 ▼34.17 ▲0.0595.46 ▼8.0746.99 ▲2.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/hhd-flatsome-vertical-menu/hhd-flatsome-vertical-menu.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function huuhadev_get_flatsome_ux_builder_path() in wp-content/plugins/hhd-flatsome-vertical-menu/builder/shortcodes/ux_verticle_menu.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hhd-flatsome-vertical-menu/shortcodes.php:112
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hhd-flatsome-vertical-menu/builder/builder.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function huuhadev_get_flatsome_ux_builder_path() in wp-content/plugins/hhd-flatsome-vertical-menu/builder/shortcodes/ux_submenu_link.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Frontend) image missing
You can take inspiration from this readme.txt

hhd-flatsome-vertical-menu/hhd-flatsome-vertical-menu.php 85% from 13 tests

The primary PHP file in "HHD Flatsome Vertical Menu" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin728 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP55189588
JavaScript15560
SVG10032
HTML22429
CSS12319

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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
Namespaces0
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
There were not PNG files found in your plugin