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
Installer ran successfully
Server metrics [RAM: ▲1.34MB] [CPU: ▲7.07ms] Passed 4 tests
Analyzing server-side resources used by Sidebar Menu
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 41.46 ▼1.51 |
Dashboard /wp-admin | 4.96 ▲1.66 | 62.89 ▲12.15 |
Posts /wp-admin/edit.php | 5.01 ▲1.65 | 64.58 ▲13.80 |
Add New Post /wp-admin/post-new.php | 7.58 ▲1.69 | 107.31 ▲3.82 |
Media Library /wp-admin/upload.php | 4.88 ▲1.66 | 64.15 ▲25.47 |
Settings /wp-admin/edit.php?post_type=sidebar-menu&page=sidebarmenu-settings | 4.89 | 57.44 |
Sidebar Menu /wp-admin/edit.php?post_type=sidebar-menu | 4.93 | 55.77 |
Add New /wp-admin/post-new.php?post_type=sidebar-menu | 4.99 | 68.23 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
option_tree |
ot_media_post_ID |
widget_recent-posts |
widget_recent-comments |
_sidebarmenu_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Sidebar Menu: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 13.72 ▼0.50 | 1.62 ▼0.17 | 46.77 ▲4.60 |
Dashboard /wp-admin | 2,223 ▲38 | 5.83 ▼0.02 | 105.14 ▲0.26 | 75.41 ▲29.94 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▲0.02 | 36.94 ▼0.32 | 32.45 ▼2.65 |
Add New Post /wp-admin/post-new.php | 6,685 ▲5,165 | 30.37 ▲7.18 | 1,015.06 ▲323.86 | 47.76 ▼18.39 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.12 ▼0.05 | 114.80 ▲10.19 | 75.62 ▲29.66 |
Settings /wp-admin/edit.php?post_type=sidebar-menu&page=sidebarmenu-settings | 1,110 | 4.49 | 76.86 | 68.02 |
Sidebar Menu /wp-admin/edit.php?post_type=sidebar-menu | 1,114 | 2.25 | 33.11 | 30.64 |
Add New /wp-admin/post-new.php?post_type=sidebar-menu | 2,363 | 5.11 | 111.77 | 107.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- _sidebarmenu_settings
- widget_theysaidso_widget
- option_tree
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- ot_media_post_ID
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/class-ot-meta-box.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/ot-functions-deprecated.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/class-ot-post-formats.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/class-ot-settings.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/ot-functions-settings-page.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/ot-functions-admin.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/ot-functions-option-types.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/ot-functions-docs-page.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/class-ot-cleanup.php
- > /wp-content/plugins/sidebar-menu/includes/option-tree/includes/ot-functions-compat.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/sidebar-menu/includes/Classes/Description_Walker.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidebar-menu/includes/plugin-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sidebar-menu/includes/meta-boxes.php:3
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: side navigation, bootstrap sidebar, sidebar, side navigation menu, sidebar menu...
sidebar-menu/sidebar-menu.php 92% from 13 tests
The main PHP script in "Sidebar Menu" version 1.0.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 250 characters long)
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
There were no executable files found in this plugin27,948 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 22 | 5,861 | 349 | 18,010 |
PHP | 20 | 2,993 | 3,951 | 8,326 |
JavaScript | 7 | 229 | 102 | 1,222 |
SVG | 2 | 0 | 0 | 390 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 5.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 7 | 8.86% |
▷ Public methods | 70 | 88.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 11.39% |
Functions | 189 | |
▷ Named functions | 182 | 96.30% |
▷ Anonymous functions | 7 | 3.70% |
Constants | 25 | |
▷ Global constants | 25 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/option-tree/assets/images/layout/left-dual-sidebar.png | 3.83KB | 2.06KB | ▼ 46.34% |
includes/option-tree/assets/images/layout/left-sidebar.png | 3.90KB | 2.09KB | ▼ 46.31% |
includes/option-tree/assets/images/ot-select-hover.png | 1.02KB | 0.14KB | ▼ 85.92% |
includes/option-tree/assets/images/layout/right-dual-sidebar.png | 3.86KB | 2.08KB | ▼ 46.18% |
includes/option-tree/assets/images/ot-select.png | 1.03KB | 0.14KB | ▼ 86.03% |