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: ▼9.99ms] Passed 4 tests
An overview of server-side resources used by Sane Widget Sidebar Management
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.22 ▲2.76 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.12 ▼19.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.17 ▼1.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.86 ▼17.23 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.82 ▼1.75 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Sane Widget Sidebar Management
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.10 ▼0.13 | 1.77 ▲0.20 | 44.73 ▲0.58 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.11 | 81.34 ▼8.16 | 39.31 ▼3.55 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.98 ▲0.03 | 36.31 ▼6.42 | 32.96 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 18.09 ▼4.87 | 646.82 ▼27.21 | 71.87 ▲11.03 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▼0.06 | 96.88 ▼3.26 | 42.55 ▼1.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sane-widget-sidebar-management/sane-widget-sidebar-management.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== Sane Widget Sidebar Management===
) - Screenshots: Add images for these screenshots: #1 (New and hawt.), #2 (Old and busted.), #3 (Widget area scrolls with you. No more trying to drag outside of the viewing area.)
sane-widget-sidebar-management/sane-widget-sidebar-management.php Passed 13 tests
The principal PHP file in "Sane Widget Sidebar Management" v. 1.0.1 is loaded by WordPress automatically on each request
55 characters long description:
Manage one sidebar at a time to maintain widget sanity.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected106 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 6 | 13 | 63 |
JavaScript | 1 | 10 | 6 | 43 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin