Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼323.56ms] Passed 4 tests
A check of server-side resources used by Advanced Sidebar Menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.36 | 54.00 ▲3.80 |
Dashboard /wp-admin | 3.71 ▲0.30 | 38.55 ▲3.42 |
Posts /wp-admin/edit.php | 3.94 ▲0.30 | 38.18 ▼0.02 |
Add New Post /wp-admin/post-new.php | 7.25 ▲0.28 | 98.33 ▼1,293.51 |
Media Library /wp-admin/upload.php | 3.66 ▲0.36 | 27.16 ▼4.14 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_advanced_sidebar_menu |
widget_advanced_sidebar_menu_category |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Sidebar Menu
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,799 ▲55 | 16.01 ▲0.23 | 6.37 ▼0.27 | 2.76 ▲0.67 |
Dashboard /wp-admin | 2,897 ▲43 | 6.14 ▼0.02 | 114.69 ▼16.89 | 153.28 ▼6.48 |
Posts /wp-admin/edit.php | 2,662 ▼32 | 3.36 ▼0.00 | 62.33 ▲0.91 | 139.71 ▲3.59 |
Add New Post /wp-admin/post-new.php | 1,756 ▼2 | 21.60 ▼0.25 | 455.12 ▼12.57 | 157.47 ▼1.24 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.53 ▲0.07 | 142.38 ▼6.92 | 185.54 ▼5.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 2 options in the database
- widget_advanced_sidebar_menu_category
- widget_advanced_sidebar_menu
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Walker_Category' not found in wp-content/plugins/advanced-sidebar-menu/src/Walkers/Category_Walker.php:10
- > PHP Fatal error
Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Cache.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Sidebar_Menu\\Menus\\Page' not found in wp-content/plugins/advanced-sidebar-menu/views/page_list.php:17
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Sidebar_Menu\\Menus\\Menu_Abstract' not found in wp-content/plugins/advanced-sidebar-menu/src/Menus/Page.php:14
- > PHP Fatal error
Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Utils.php on line 13
- > PHP Fatal error
Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Scripts.php on line 13
- > PHP Fatal error
Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Notice.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Sidebar_Menu\\Widget\\Widget_Abstract' not found in wp-content/plugins/advanced-sidebar-menu/src/Widget/Page.php:15
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Sidebar_Menu\\Menus\\Menu_Abstract' not found in wp-content/plugins/advanced-sidebar-menu/src/Menus/Category.php:14
- > PHP Fatal error
Trait 'Advanced_Sidebar_Menu\\Traits\\Singleton' not found in wp-content/plugins/advanced-sidebar-menu/src/Core.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add a description for screenshot #4 in advanced-sidebar-menu/assets to your readme.txt
advanced-sidebar-menu/advanced-sidebar-menu.php 92% from 13 tests
The primary PHP file in "Advanced Sidebar Menu" version 8.7.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.2.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected2,273 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 451 | 1,172 | 1,523 |
PO File | 3 | 123 | 203 | 352 |
CSS | 1 | 83 | 20 | 341 |
JavaScript | 1 | 8 | 58 | 57 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 2 | |
Classes | 15 | |
▷ Abstract classes | 2 | 13.33% |
▷ Concrete classes | 13 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 6 | 5.17% |
▷ Public methods | 105 | 90.52% |
▷ Protected methods | 10 | 8.62% |
▷ Private methods | 1 | 0.86% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 42 | |
▷ Global constants | 4 | 9.52% |
▷ Class constants | 38 | 90.48% |
▷ Public constants | 38 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected