Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼7.19ms] Passed 4 tests
Analyzing server-side resources used by Popping Sidebars and Widgets Light
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 42.14 ▲0.73 |
Dashboard /wp-admin | 3.56 ▲0.25 | 57.44 ▼10.74 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 58.54 ▲2.69 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 103.59 ▼21.43 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 46.16 ▲3.44 |
Overlay action /wp-admin/admin.php?page=otw-pswl-action | 3.43 | 42.39 |
otwfcr /wp-admin/admin.php?page=otwfcr | 3.41 | 44.47 |
Plugin Options /wp-admin/admin.php?page=otw-pswl-options | 3.42 | 43.46 |
Add Overlay /wp-admin/admin.php?page=otw-pswl-manage | 3.53 | 46.11 |
All Sidebars /wp-admin/admin.php?page=otw-pswl-sidebars-list | 3.45 | 61.52 |
Add Sidebar /wp-admin/admin.php?page=otw-pswl-sidebars-manage | 3.45 | 42.61 |
License Manager /wp-admin/admin.php?page=otw-pswl-lm | 3.53 | 253.90 |
Sidebar action /wp-admin/admin.php?page=otw-pswl-sidebars-action | 3.44 | 41.89 |
All Overlays /wp-admin/admin.php?page=otw-pswl | 3.45 | 42.98 |
Server storage [IO: ▲3.87MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 186 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Popping Sidebars and Widgets Light
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲194 | 13.92 ▼0.48 | 6.76 ▲4.94 | 43.40 ▼2.78 |
Dashboard /wp-admin | 2,265 ▲74 | 5.15 ▼0.72 | 108.89 ▼16.07 | 78.29 ▲31.71 |
Posts /wp-admin/edit.php | 2,158 ▲55 | 2.31 ▲0.27 | 40.13 ▲1.71 | 39.38 ▲3.41 |
Add New Post /wp-admin/post-new.php | 1,581 ▲36 | 23.27 ▼0.03 | 680.92 ▼21.40 | 73.74 ▲10.91 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.52 ▲0.25 | 109.57 ▲1.38 | 88.60 ▲36.22 |
Overlay action /wp-admin/admin.php?page=otw-pswl-action | 723 | 1.63 | 12.32 | 17.87 |
otwfcr /wp-admin/admin.php?page=otwfcr | 835 | 1.82 | 27.94 | 26.26 |
Plugin Options /wp-admin/admin.php?page=otw-pswl-options | 941 | 1.96 | 32.03 | 44.44 |
Add Overlay /wp-admin/admin.php?page=otw-pswl-manage | 1,817 | 3.71 | 71.39 | 96.58 |
All Sidebars /wp-admin/admin.php?page=otw-pswl-sidebars-list | 893 | 1.96 | 39.58 | 35.12 |
Add Sidebar /wp-admin/admin.php?page=otw-pswl-sidebars-manage | 994 | 1.96 | 30.22 | 34.19 |
License Manager /wp-admin/admin.php?page=otw-pswl-lm | 972 | 1.82 | 31.62 | 30.03 |
Sidebar action /wp-admin/admin.php?page=otw-pswl-sidebars-action | 723 | 1.62 | 11.08 | 21.78 |
All Overlays /wp-admin/admin.php?page=otw-pswl | 890 | 1.96 | 32.11 | 32.55 |
Uninstaller [IO: ▲0.21MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=otw-pswl-manage
- > Deprecated in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_functions/otw_functions.php+272
Function get_magic_quotes_gpc() is deprecated
SRP 0% 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
Almost there! Just fix the following items
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- > /wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/side_box.view.php
- > /wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_factory/views/action_message.php
- > /wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/full_bar.view.php
- > /wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/lightbox.view.php
- 122× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 6
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/lightbox.view.php on line 2
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/side_box.view.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/lightbox.view.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_post() in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_shortcode/libs/recaptcha-php-1.11/example-captcha.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/pswl/side_box.view.php on line 4
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-sidebars-and-widgets-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots require images: #1 (Full Bar Header - closed), #2 (Full Bar Header - opened), #3 (Side Box Right - closed), #4 (Side Box Right - opened), #5 (Lightbox), #6 (Create sidebars), #7 (Overlay options page), #8 (OTW Grid Manager)
popping-sidebars-and-widgets-light/otw_popping_sidebars_and_widgets.php 92% from 13 tests
"Popping Sidebars and Widgets Light" version 1.27's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popping-sidebars-and-widgets-light.php" instead of "otw_popping_sidebars_and_widgets.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin26,018 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 20 | 729 | 236 | 10,153 |
PHP | 45 | 2,390 | 1,298 | 9,759 |
JavaScript | 19 | 1,058 | 99 | 3,397 |
SVG | 4 | 0 | 0 | 2,709 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 74.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 5.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 21 | 11.73% |
▷ Public methods | 131 | 73.18% |
▷ Protected methods | 27 | 15.08% |
▷ Private methods | 21 | 11.73% |
Functions | 96 | |
▷ Named functions | 96 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
64 PNG files occupy 1.36MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 105.35KB | 42.46KB | ▼ 59.69% |
include/otw_components/otw_overlay_shortcode/images/testimonials-nav.png | 0.55KB | 0.72KB | 0.00% |
screenshot-6.png | 30.67KB | 13.04KB | ▼ 57.48% |
include/otw_components/otw_form/img/colorpicker/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
images/swm-selected.png | 3.81KB | 0.25KB | ▼ 93.36% |