Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.42MB] [CPU: ▼3.29ms] Passed 4 tests
A check of server-side resources used by Content Sidebars
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 38.03 ▼9.40 |
Dashboard /wp-admin | 4.26 ▲0.95 | 55.36 ▲8.87 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 48.30 ▲8.16 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 76.48 ▼15.16 |
Media Library /wp-admin/upload.php | 3.74 ▲0.52 | 39.21 ▲3.25 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 4.07 | 37.63 |
WordQuest /wp-admin/admin.php?page=wordquest | 4.10 | 48.48 |
Content Sidebars /wp-admin/themes.php?page=flexi-content-sidebars | 3.69 | 36.54 |
Content Sidebars /wp-admin/admin.php?page=content-sidebars | 3.72 | 36.91 |
Server storage [IO: ▲3.54MB] [DB: ▲0.20MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 182 new files
Database: no new tables, 16 new options
New WordPress options |
---|
wq |
fs_debug_mode |
widget_discrete_text |
fcs_sidebar_options |
db_upgraded |
content_sidebars |
wq_sidebar_options |
fs_active_plugins |
fs_accounts |
fs_gdpr |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Sidebars
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,065 ▲304 | 14.44 ▲0.09 | 1.77 ▼0.20 | 27.11 ▼21.08 |
Dashboard /wp-admin | 2,482 ▲305 | 4.96 ▼0.74 | 85.04 ▼3.02 | 91.29 ▲51.15 |
Posts /wp-admin/edit.php | 2,198 ▲98 | 2.04 ▲0.06 | 36.52 ▼0.45 | 34.60 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6,663 ▲5,126 | 29.71 ▲11.63 | 890.17 ▲233.93 | 76.62 ▲0.32 |
Media Library /wp-admin/upload.php | 1,473 ▲73 | 4.24 ▲0.12 | 106.19 ▼12.39 | 66.75 ▲18.64 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,122 | 1.82 | 26.26 | 29.54 |
WordQuest /wp-admin/admin.php?page=wordquest | 1,730 | 2.43 | 30.58 | 74.59 |
Content Sidebars /wp-admin/themes.php?page=flexi-content-sidebars | 1,041 | 1.70 | 32.64 | 55.27 |
Content Sidebars /wp-admin/admin.php?page=content-sidebars | 1,100 | 1.77 | 26.93 | 36.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.20MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/content-sidebars/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 16 options in the database
- fcs_sidebar_options
- fs_debug_mode
- can_compress_scripts
- wq_sidebar_options
- fs_gdpr
- db_upgraded
- wq
- content_sidebars_first_install
- widget_recent-posts
- content_sidebars
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function has_action() in wp-content/plugins/content-sidebars/wordquest.php:91
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-sidebars/loader.php:2924
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #2, #3 in content-sidebars/assets to your readme.txt
content-sidebars/loader.php 92% from 13 tests
"Content Sidebars" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("content-sidebars.php" instead of "loader.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin39,833 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 8,992 | 19,468 | 39,224 |
Markdown | 1 | 122 | 0 | 356 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 12 | 7 | 2 | 32 |
JSON | 1 | 0 | 0 | 27 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 118)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 93.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 118.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,292 | |
▷ Static methods | 173 | 13.39% |
▷ Public methods | 943 | 72.99% |
▷ Protected methods | 24 | 1.86% |
▷ Private methods | 325 | 25.15% |
Functions | 223 | |
▷ Named functions | 196 | 87.89% |
▷ Anonymous functions | 27 | 12.11% |
Constants | 137 | |
▷ Global constants | 111 | 81.02% |
▷ Class constants | 26 | 18.98% |
▷ Public constants | 26 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cross.png | 1.22KB | 1.11KB | ▼ 9.04% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/wpmedic.png | 4.65KB | 2.48KB | ▼ 46.68% |
images/wordquest-icon.png | 1.24KB | 1.23KB | 0.40% |
images/wordquest.png | 7.71KB | 3.13KB | ▼ 59.40% |