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: ▼11.74ms] Passed 4 tests
Server-side resources used by SM Vertical Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.00 ▼13.41 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.94 ▼4.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.66 ▼4.40 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 81.20 ▼24.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.58 ▲1.53 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_sm_vertical_menu |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
SM Vertical Menu: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲64 | 13.41 ▼1.00 | 1.81 ▼0.18 | 37.60 ▲0.68 |
Dashboard /wp-admin | 2,225 ▲37 | 5.11 ▼0.79 | 96.62 ▼0.01 | 37.90 ▼6.37 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.28 ▲0.27 | 35.39 ▼6.68 | 29.74 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 23.10 ▲0.05 | 651.24 ▼8.57 | 35.75 ▼18.82 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.53 ▲0.33 | 94.42 ▼8.34 | 42.19 ▼5.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_sm_vertical_menu
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/sm-vertical-menu/sm_vertical_menu.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: menu, widget, vertical menu
sm-vertical-menu/sm_vertical_menu.php 92% from 13 tests
The principal PHP file in "SM Vertical Menu" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("sm-vertical-menu.php" instead of "sm_vertical_menu.php")
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
There were no executable files found in this plugin315 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 52 | 1 | 165 |
PHP | 1 | 23 | 40 | 147 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin