Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▲2.84ms] Passed 4 tests
Analyzing server-side resources used by Popping Content Light
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.10 ▲0.64 | 47.54 ▲5.58 |
Dashboard /wp-admin | 3.95 ▲0.64 | 53.98 ▲5.36 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 53.07 ▲4.30 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 88.16 ▼3.88 |
Media Library /wp-admin/upload.php | 4.02 ▲0.79 | 44.25 ▲10.85 |
License Manager /wp-admin/admin.php?page=otw-pcl-lm | 3.93 | 225.00 |
otwfcr /wp-admin/admin.php?page=otwfcr | 3.93 | 34.65 |
Plugin Options /wp-admin/admin.php?page=otw-pcl-options | 3.93 | 39.62 |
All Overlays /wp-admin/admin.php?page=otw-pcl | 3.93 | 39.74 |
Overlay action /wp-admin/admin.php?page=otw-pcl-action | 3.93 | 41.84 |
Add Overlay /wp-admin/admin.php?page=otw-pcl-manage | 4.01 | 45.22 |
Server storage [IO: ▲4.80MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 227 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Popping Content Light
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,197 ▲440 | 19.12 ▲4.74 | 8.74 ▲6.56 | 41.53 ▼4.82 |
Dashboard /wp-admin | 2,488 ▲300 | 8.33 ▲2.48 | 185.52 ▲69.74 | 94.72 ▲47.51 |
Posts /wp-admin/edit.php | 2,539 ▲450 | 6.00 ▲3.96 | 99.44 ▲63.08 | 38.48 ▲4.50 |
Add New Post /wp-admin/post-new.php | 6,567 ▲5,025 | 28.66 ▲10.33 | 971.48 ▲342.43 | 37.37 ▼20.77 |
Media Library /wp-admin/upload.php | 1,833 ▲442 | 7.62 ▲3.41 | 178.72 ▲77.86 | 90.69 ▲44.79 |
License Manager /wp-admin/admin.php?page=otw-pcl-lm | 1,371 | 5.61 | 107.97 | 33.45 |
otwfcr /wp-admin/admin.php?page=otwfcr | 1,226 | 5.52 | 91.93 | 23.12 |
Plugin Options /wp-admin/admin.php?page=otw-pcl-options | 1,333 | 5.51 | 106.54 | 46.22 |
All Overlays /wp-admin/admin.php?page=otw-pcl | 1,286 | 5.53 | 92.74 | 34.13 |
Overlay action /wp-admin/admin.php?page=otw-pcl-action | 707 | 1.45 | 9.17 | 18.10 |
Add Overlay /wp-admin/admin.php?page=otw-pcl-manage | 2,187 | 6.79 | 124.97 | 82.97 |
Uninstaller [IO: ▲0.50MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=otw-pcl-manage
- > Deprecated in wp-content/plugins/popping-content-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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_shortcode/libs/recaptcha-php-1.11/example-mailhide.php
- > /wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/full_bar.view.php
- > /wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/side_box.view.php
- > /wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/lightbox.view.php
- > /wp-content/plugins/popping-content-light/include/otw_components/otw_factory/views/action_message.php
- 128× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 11
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/side_box.view.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/lightbox.view.php on line 5
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/lightbox.view.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function otw_get() in wp-content/plugins/popping-content-light/include/otw_pcl_overlays_action.php:15
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/lightbox.view.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Component' not found in wp-content/plugins/popping-content-light/include/otw_components/otw_factory/otw_factory.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'OTW_Overlay_Shortcodes' not found in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_shortcode/shortcodes/otw_shortcode_info_box.class.php:2
- > PHP Notice
Undefined variable: overlay_vars in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/full_bar.view.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popping-content-light/include/otw_components/otw_overlay_light/views/lightbox.view.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Full Bar Header - closed), #2 (Full Bar Header - opened), #3 (Side Box Right - closed), #4 (Side Box Right - opened), #5 (Lightbox), #6 (Overlay options page), #7 (OTW Grid Manager), #8 (Shortcodes Interface)
popping-content-light/otw_popping_content.php 92% from 13 tests
This is the main PHP file of "Popping Content Light" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("popping-content-light.php" instead of "otw_popping_content.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin25,806 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 21 | 737 | 244 | 10,236 |
PHP | 51 | 2,462 | 1,366 | 9,464 |
JavaScript | 19 | 1,058 | 99 | 3,397 |
SVG | 4 | 0 | 0 | 2,709 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 193.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 244 | |
▷ Static methods | 21 | 8.61% |
▷ Public methods | 196 | 80.33% |
▷ Protected methods | 27 | 11.07% |
▷ Private methods | 21 | 8.61% |
Functions | 65 | |
▷ Named functions | 65 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
96 PNG files occupy 2.22MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
include/otw_components/otw_overlay_grid_manager_light/img/gm-advanced-up-arrow.png | 0.97KB | 0.13KB | ▼ 86.82% |
include/otw_components/otw_overlay_light/images/stitch.png | 0.13KB | 0.13KB | 0.00% |
include/otw_components/otw_overlay_shortcode/images/pattern-2.png | 0.12KB | 0.13KB | 0.00% |
include/otw_components/otw_form/img/colorpicker/colorpicker_rgb_g.png | 1.04KB | 0.83KB | ▼ 20.21% |
include/otw_components/otw_overlay_shortcode/images/pattern-5.png | 1.83KB | 1.89KB | 0.00% |