Benchmarks
Plugin footprint 82% 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: ▼7.57ms] Passed 4 tests
Server-side resources used by TP Flatsome Vertical Menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.16 ▲1.11 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.42 ▼16.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.01 ▲3.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.16 ▼12.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.20 ▼2.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please fix the following
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/tp-flatsome-vertical-menu/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
TP Flatsome Vertical Menu: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.19 ▼1.12 | 1.76 ▲0.05 | 43.11 ▼1.38 |
Dashboard /wp-admin | 2,224 ▲17 | 4.88 ▼0.07 | 111.08 ▼0.41 | 41.34 ▼1.92 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▼0.01 | 39.45 ▲5.52 | 36.94 ▲3.22 |
Add New Post /wp-admin/post-new.php | 1,423 ▼125 | 17.99 ▼5.25 | 574.21 ▼84.28 | 44.26 ▼16.49 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.24 ▲0.03 | 97.94 ▼8.79 | 45.19 ▼0.58 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/tp-flatsome-vertical-menu/inc/class-tp-vertical-menu-dropdown.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/tp-flatsome-vertical-menu/inc/tp-vertical-menu-template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tp-flatsome-vertical-menu/main.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: "paypal.me/pdutie94"
- Screenshots: These screenshots lack descriptions #1, #2, #4, #5 in tp-flatsome-vertical-menu/assets to your readme.txt
tp-flatsome-vertical-menu/main.php 85% from 13 tests
The entry point to "TP Flatsome Vertical Menu" version 1.1.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("tp-flatsome-vertical-menu.php" instead of "main.php")
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
Everything looks great! No dangerous files found in this plugin810 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 97 | 237 | 577 |
JavaScript | 6 | 18 | 11 | 134 |
CSS | 1 | 3 | 0 | 99 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 are no PNG files in this plugin