Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼291.77ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Sidebar Nav
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 63.68 ▲8.15 |
Dashboard /wp-admin | 3.42 ▲0.01 | 36.88 ▲3.07 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 42.06 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 99.95 ▼1,167.51 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 24.80 ▼4.04 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_advanced_sidebar_nav_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Sidebar Nav
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲29 | 15.78 ▲0.17 | 5.69 ▼1.02 | 2.20 ▼0.66 |
Dashboard /wp-admin | 2,895 ▲37 | 6.15 ▼0.18 | 117.56 ▼17.94 | 167.69 ▼3.55 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▼0.00 | 64.98 ▼0.10 | 139.91 ▼5.00 |
Add New Post /wp-admin/post-new.php | 1,661 ▼91 | 16.08 ▼5.50 | 435.04 ▼24.68 | 158.94 ▼2.70 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.44 ▼0.04 | 136.42 ▼10.31 | 188.03 ▼0.11 |
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
- Zombie WordPress options were found after uninstall: 1 option
- widget_advanced_sidebar_nav_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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-sidebar-nav/advanced-sidebar-nav.php:57
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-sidebar-nav/inc/widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: sidebar menu, sidebar nav, widget menu
advanced-sidebar-nav/advanced-sidebar-nav.php Passed 13 tests
"Advanced Sidebar Nav" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
The best way to display navigation menus on sidebar, no matter how many depth!
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
Everything looks great! No dangerous files found in this plugin521 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 49 | 18 | 221 |
Sass | 1 | 24 | 2 | 140 |
CSS | 1 | 24 | 1 | 122 |
JavaScript | 1 | 3 | 5 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 14 | |
▷ Static methods | 6 | 42.86% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 2 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin