Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.72MB] [CPU: ▼5.79ms] Passed 4 tests
An overview of server-side resources used by Pop-Up Chop Chop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.86 ▲0.39 | 44.00 ▼4.78 |
Dashboard /wp-admin | 4.16 ▲0.82 | 55.62 ▼9.16 |
Posts /wp-admin/edit.php | 4.19 ▲0.83 | 56.86 ▲6.44 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.87 | 89.10 ▼15.67 |
Media Library /wp-admin/upload.php | 4.09 ▲0.85 | 43.90 ▲8.39 |
Pop-Ups Chop Chop /wp-admin/edit.php?post_type=chch-pop-up | 4.13 | 49.25 |
Add New Pop-Up /wp-admin/post-new.php?post_type=chch-pop-up | 4.63 | 63.43 |
Server storage [IO: ▲6.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 274 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pop-Up Chop Chop
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.73 ▼0.86 | 1.88 ▲0.20 | 78.02 ▲38.41 |
Dashboard /wp-admin | 2,244 ▲56 | 5.91 ▲0.04 | 102.66 ▼5.25 | 38.18 ▼7.23 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.06 ▲0.05 | 37.70 ▲2.40 | 37.82 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.45 ▲5.80 | 672.13 ▼23.22 | 55.41 ▼8.52 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.26 ▲0.04 | 103.44 ▲3.70 | 45.66 ▼0.39 |
Pop-Ups Chop Chop /wp-admin/edit.php?post_type=chch-pop-up | 1,101 | 2.00 | 36.97 | 30.20 |
Add New Pop-Up /wp-admin/post-new.php?post_type=chch-pop-up | 2,901 | 7.75 | 177.13 | 104.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 35× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pop-up/admin/includes/CMB2/bootstrap.php:17
- > PHP Warning
Use of undefined constant CHCH_LIVE_PREVIEW_FREE_DIR - assumed 'CHCH_LIVE_PREVIEW_FREE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pop-up/admin/includes/chch-live-preview-free/includes/LP-include.php on line 3
- > PHP Warning
require_once(CHCH_LIVE_PREVIEW_FREE_DIRthird-party/PluginMetaData.php): failed to open stream: No such file or directory in wp-content/plugins/pop-up/admin/includes/chch-live-preview-free/includes/LP_Views.php on line 4
- > PHP Warning
Use of undefined constant CHCH_LIVE_PREVIEW_FREE_DIR - assumed 'CHCH_LIVE_PREVIEW_FREE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pop-up/admin/includes/chch-live-preview-free/includes/LP_Views.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/pop-up/admin/includes/CMB2/tests/cmb-tests-base.php:10
- > PHP Warning
Use of undefined constant CHCH_LIVE_PREVIEW_FREE_DIR - assumed 'CHCH_LIVE_PREVIEW_FREE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pop-up/admin/includes/chch-live-preview-free/includes/LP-include.php on line 22
- > PHP Warning
Use of undefined constant CHCH_LIVE_PREVIEW_FREE_DIR - assumed 'CHCH_LIVE_PREVIEW_FREE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pop-up/admin/includes/chch-live-preview-free/includes/LP-include.php on line 17
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/pop-up/admin/includes/CMB2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pop-up/admin/includes/chch-live-preview-free/chch-live-preview-free-init.php:31
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/pop-up/admin/includes/CMB2/tests/bootstrap.php on line 24
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
pop-up/pop-up.php 92% from 13 tests
The main PHP script in "Pop-Up Chop Chop" version 2.1.7 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin103,941 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 94 | 8,873 | 11,789 | 20,306 |
CSS | 18 | 2,336 | 1,195 | 13,491 |
JSON | 4 | 0 | 0 | 12,485 |
PHP | 52 | 2,199 | 3,665 | 7,262 |
JavaScript | 12 | 317 | 185 | 1,490 |
SVG | 1 | 0 | 0 | 520 |
Markdown | 4 | 156 | 0 | 427 |
YAML | 2 | 9 | 0 | 152 |
Bourne Shell | 1 | 18 | 7 | 67 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 34 | |
▷ Abstract classes | 1 | 2.94% |
▷ Concrete classes | 33 | 97.06% |
▷ Final classes | 0 | 0.00% |
Methods | 447 | |
▷ Static methods | 40 | 8.95% |
▷ Public methods | 408 | 91.28% |
▷ Protected methods | 9 | 2.01% |
▷ Private methods | 30 | 6.71% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 8 | 61.54% |
▷ Class constants | 5 | 38.46% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
20 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/includes/CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
admin/includes/CMB2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
admin/includes/CMB2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
admin/includes/CMB2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
admin/includes/CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |