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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.34MB] [CPU: ▼4.35ms] Passed 4 tests
This is a short check of server-side resources used by OT Flatsome Vertical Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.55 ▲2.09 | 51.15 ▲12.39 |
Dashboard /wp-admin | 5.35 ▲2.05 | 60.88 ▲11.30 |
Posts /wp-admin/edit.php | 5.39 ▲2.03 | 58.34 ▲11.79 |
Add New Post /wp-admin/post-new.php | 5.18 ▼0.71 | 47.00 ▼52.89 |
Media Library /wp-admin/upload.php | 5.20 ▲1.97 | 46.89 ▲12.45 |
OT FS Vertical Menu /wp-admin/options-general.php?page=ot-flatsome-vertical-menu | 5.18 | 39.65 |
Server storage [IO: ▲7.27MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 187 new files
Database: no new tables, 7 new options
New WordPress options |
---|
menu_icons_install |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for OT Flatsome Vertical Menu
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,043 ▲297 | 13.61 ▼0.76 | 9.83 ▲8.10 | 28.70 ▼14.65 |
Dashboard /wp-admin | 2,332 ▲141 | 5.82 ▲0.81 | 95.24 ▼8.60 | 43.45 ▼5.04 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.02 | 38.45 ▲0.58 | 35.04 ▲3.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.18 ▲0.03 | 640.51 ▼37.22 | 52.25 ▼5.18 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▲0.01 | 95.17 ▼16.22 | 41.10 ▼4.67 |
OT FS Vertical Menu /wp-admin/options-general.php?page=ot-flatsome-vertical-menu | 865 | 2.06 | 24.24 | 30.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- menu_icons_install
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/includes/media-template.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/vendor/codeinwp/icon-picker/icon-picker.php:340
- > PHP Fatal error
Uncaught Error: Class 'Icon_Picker_Type_Font' not found in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/vendor/codeinwp/icon-picker/includes/types/genericon.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/vendor/codeinwp/menu-item-custom-fields/menu-item-custom-fields.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ot-flatsome-vertical-menu/ot-flatsome-vertical-menu.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/menu-icons.php:157
- > PHP Fatal error
Uncaught Error: Class 'CMB_Field' not found in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/vendor/codeinwp/icon-picker/includes/fields/cmb.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/vendor/codeinwp/menu-item-custom-fields/doc/menu-item-custom-fields-example.php:46
- > PHP Fatal error
Uncaught Error: Class 'Icon_Picker_Type_Font' not found in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/vendor/codeinwp/icon-picker/includes/types/foundation-icons.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ot-flatsome-vertical-menu/libs/menu-icons/includes/media-template.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ot-flatsome-vertical-menu/includes/functions.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: flatsome, vertical menu
ot-flatsome-vertical-menu/ot-flatsome-vertical-menu.php Passed 13 tests
The main file in "OT Flatsome Vertical Menu" v. 1.2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Vertical Menu for Flatsome theme by thinhbg59@gmail.com
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected36,837 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 1,657 | 4,449 | 15,516 |
SVG | 7 | 0 | 18 | 13,780 |
CSS | 19 | 82 | 55 | 4,343 |
JavaScript | 37 | 545 | 702 | 2,153 |
Markdown | 7 | 284 | 0 | 527 |
LESS | 1 | 49 | 1 | 325 |
JSON | 1 | 0 | 0 | 164 |
XML | 2 | 4 | 2 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 5 | 9.26% |
▷ Concrete classes | 49 | 90.74% |
▷ Final classes | 10 | 20.41% |
Methods | 429 | |
▷ Static methods | 86 | 20.05% |
▷ Public methods | 344 | 80.19% |
▷ Protected methods | 40 | 9.32% |
▷ Private methods | 45 | 10.49% |
Functions | 22 | |
▷ Named functions | 15 | 68.18% |
▷ Anonymous functions | 7 | 31.82% |
Constants | 25 | |
▷ Global constants | 5 | 20.00% |
▷ Class constants | 20 | 80.00% |
▷ Public constants | 20 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 1.17MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/menu-icons/assets/screenshot-6.png | 101.46KB | 37.94KB | ▼ 62.61% |
libs/menu-icons/assets/screenshot-2.png | 61.18KB | 26.20KB | ▼ 57.18% |
libs/menu-icons/assets/screenshot-5.png | 104.34KB | 38.53KB | ▼ 63.08% |
libs/menu-icons/assets/screenshot-1.png | 31.18KB | 13.81KB | ▼ 55.70% |
libs/menu-icons/vendor/codeinwp/icon-picker/assets/screenshot-1.png | 557.00KB | 123.01KB | ▼ 77.92% |