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.23MB] [CPU: ▲0.04ms] Passed 4 tests
An overview of server-side resources used by WooSidebars
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 43.99 ▼1.00 |
Dashboard /wp-admin | 3.53 ▲0.23 | 54.28 ▲3.49 |
Posts /wp-admin/edit.php | 3.65 ▲0.30 | 57.36 ▲10.92 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 90.55 ▼3.72 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 43.49 ▲1.39 |
Widget Areas /wp-admin/edit.php?post_type=sidebar | 3.54 | 50.02 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
woosidebars-version |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
WooSidebars: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲29 | 13.24 ▼1.49 | 1.70 ▼0.14 | 40.13 ▼3.37 |
Dashboard /wp-admin | 2,207 ▼2 | 5.79 ▼0.05 | 104.90 ▲0.95 | 39.68 ▲0.59 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.00 ▼0.05 | 39.15 ▲3.52 | 34.54 ▲1.74 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 23.09 ▼0.14 | 709.25 ▲22.32 | 52.51 ▼5.42 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▼0.03 | 104.23 ▼0.39 | 44.40 ▼2.14 |
Widget Areas /wp-admin/edit.php?post_type=sidebar | 1,048 | 1.95 | 30.65 | 27.83 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- woosidebars-version
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: sidebars, widget-areas, widgets
woosidebars/woosidebars.php Passed 13 tests
Analyzing the main PHP file in "WooSidebars" version 1.4.6
96 characters long description:
Replace widget areas in your theme for specific pages, archives and other sections of WordPress.
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 plugin1,119 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 333 | 419 | 1,040 |
CSS | 2 | 6 | 2 | 31 |
Markdown | 1 | 12 | 0 | 27 |
JavaScript | 1 | 4 | 1 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 5.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 89.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.64% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/success.png | 0.27KB | 0.39KB | 0.00% |
assets/images/icon-settings.png | 0.35KB | 0.37KB | 0.00% |
assets/images/success-off.png | 0.29KB | 0.32KB | 0.00% |