Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.71ms] Passed 4 tests
Analyzing server-side resources used by Advanced Sidebar Nav
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.84 ▼5.24 |
Dashboard /wp-admin | 3.34 ▲0.04 | 61.80 ▲4.32 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 52.43 ▲2.97 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 113.14 ▲3.40 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.69 ▲1.70 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_advanced_sidebar_nav_widget |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Advanced Sidebar Nav: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.67 ▼1.08 | 1.71 ▼0.35 | 44.30 ▲0.96 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.03 | 97.12 ▼23.01 | 37.90 ▼9.70 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.17 ▲0.11 | 36.12 ▼4.56 | 35.22 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.18 ▲5.64 | 656.59 ▲35.38 | 62.35 ▲8.88 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.17 ▼0.03 | 93.23 ▼1.73 | 41.23 ▼0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_advanced_sidebar_nav_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: widget menu, sidebar nav, sidebar menu
advanced-sidebar-nav/advanced-sidebar-nav.php Passed 13 tests
The main PHP file in "Advanced Sidebar Nav" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
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 | An overview of files in this plugin; executable files are not allowed
There were no executable 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
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin