Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.99ms] Passed 4 tests
A check of server-side resources used by Sidebar Menu Items
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.75 ▼0.85 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.58 ▼1.20 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 49.53 ▼2.27 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 88.48 ▼11.20 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.06 ▼1.28 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sidebar Menu Items
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.68 ▼0.94 | 2.18 ▲0.36 | 46.13 ▲3.10 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.95 | 100.32 ▼2.17 | 40.63 ▼1.02 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.06 | 59.39 ▲19.42 | 49.07 ▲9.68 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 22.97 ▲4.85 | 670.66 ▲28.89 | 52.37 ▼8.52 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▲0.02 | 93.65 ▼12.01 | 44.17 ▼4.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
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
6 plugin tags: mega menu, sidebar, nav menu, menu items, widget menu...
sidebar-menu-items/sidebar-menu-items.php Passed 13 tests
The entry point to "Sidebar Menu Items" version 0.1.6 is a PHP file that has certain tags in its header comment area
36 characters long description:
Use sidebar areas within your menus.
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
Success! There were no dangerous files found in this plugin538 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 203 | 898 | 538 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 4 | 7.69% |
▷ Public methods | 36 | 69.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 30.77% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.67MB with 0.48MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sidebar-menu-items/.wordpress-org/screenshot-1.png | 211.44KB | 55.33KB | ▼ 73.83% |
sidebar-menu-items/.wordpress-org/screenshot-2.png | 283.39KB | 78.94KB | ▼ 72.15% |
sidebar-menu-items/.wordpress-org/banner-772x250.png | 156.42KB | 41.77KB | ▼ 73.30% |
sidebar-menu-items/.wordpress-org/icon-256x256.png | 30.54KB | 8.60KB | ▼ 71.85% |