Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.91MB] [CPU: ▲406.49ms] 75% from 4 tests
A check of server-side resources used by WP Popup Magic
The following require your attention
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 406.49ms on /wp-admin/edit.php?post_type=wppum_popup&page=wppum_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.48 ▲1.02 | 828.89 ▲786.83 |
Dashboard /wp-admin | 4.28 ▲0.98 | 400.31 ▲353.03 |
Posts /wp-admin/edit.php | 4.35 ▲1.00 | 402.32 ▲350.37 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.65 | 415.01 ▲302.15 |
Media Library /wp-admin/upload.php | 4.27 ▲1.04 | 653.20 ▲620.40 |
Add New /wp-admin/post-new.php?post_type=wppum_popup | 4.37 | 396.55 |
Create New Popup /wp-admin/edit.php?post_type=wppum_popup&page=wppum_create_popup | 4.27 | 399.43 |
All Popups /wp-admin/edit.php?post_type=wppum_popup | 4.31 | 394.00 |
Preview Popup /wp-admin/admin.php?page=wppum_preview_popup | 4.26 | 390.18 |
Settings /wp-admin/edit.php?post_type=wppum_popup&page=wppum_settings | 4.27 | 378.29 |
Server storage [IO: ▲5.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 163 new files
Database: no new tables, 10 new options
New WordPress options |
---|
wppum_popup_rewrite_rules_updated |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
recovery_mode_email_last_sent |
wppum_version |
wppum_settings |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Popup Magic
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,016 ▲270 | 14.83 ▲0.63 | 1.56 ▼0.06 | 37.04 ▼2.18 |
Dashboard /wp-admin | 2,403 ▲221 | 6.65 ▲0.84 | 133.17 ▲28.84 | 97.23 ▲56.77 |
Posts /wp-admin/edit.php | 2,327 ▲235 | 3.50 ▲1.49 | 51.12 ▲6.71 | 78.70 ▲42.36 |
Add New Post /wp-admin/post-new.php | 1,572 ▲44 | 21.68 ▲3.72 | 654.60 ▲34.22 | 37.47 ▼13.52 |
Media Library /wp-admin/upload.php | 1,463 ▲72 | 4.29 ▲0.04 | 82.43 ▼18.23 | 75.73 ▲32.09 |
Add New /wp-admin/post-new.php?post_type=wppum_popup | 5,177 | 8.64 | 210.18 | 137.06 |
Create New Popup /wp-admin/edit.php?post_type=wppum_popup&page=wppum_create_popup | 1,384 | 3.30 | 44.43 | 86.25 |
All Popups /wp-admin/edit.php?post_type=wppum_popup | 1,254 | 3.74 | 45.06 | 73.40 |
Preview Popup /wp-admin/admin.php?page=wppum_preview_popup | 753 | 2.04 | 12.73 | 15.81 |
Settings /wp-admin/edit.php?post_type=wppum_popup&page=wppum_settings | 1,183 | 3.43 | 43.87 | 66.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 10 options in the database
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- wppum_popup_rewrite_rules_updated
- can_compress_scripts
- wppum_version
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- wppum_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 11 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wppum_popup&page=wppum_settings
- > Notice in wp-content/plugins/wppopupmagic/class-wppum-admin.php+884
Trying to access array offset on value of type bool
- > GET request to /wp-admin/post-new.php?post_type=wppum_popup
- > Notice in wp-content/plugins/wppopupmagic/class-wppum-admin.php+1587
Undefined index: Title HTML
- > GET request to /wp-admin/post-new.php?post_type=wppum_popup
- > Notice in wp-content/plugins/wppopupmagic/class-wppum-admin.php+1587
Undefined index: OK Button HTML
- > GET request to /wp-admin/post-new.php?post_type=wppum_popup
- > Notice in wp-content/plugins/wppopupmagic/class-wppum-admin.php+1587
Undefined index: Cancel Button HTML
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Notice in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+10
Undefined index: wppum_preview
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Notice in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+13
Trying to get property 'post_title' of non-object
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Notice in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+14
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Notice in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+16
Trying to get property 'post_content' of non-object
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Notice in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+17
Trying to get property 'menu_order' of non-object
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Notice in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+18
Trying to get property 'post_status' of non-object
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Warning in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+79
DOMDocument::loadHTML(): Empty string supplied as input
- > GET request to /wp-admin/admin.php?page=wppum_preview_popup
- > Error in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php+80
Uncaught TypeError: Argument 1 passed to DOMNode::removeChild() must be an instance of DOMNode, null given in wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php:80
Stack trace:
#0 wp-content/plugins/wppopupmagic/admin/templates/preview-popup-page.php(80): DOMNode->removeChild()
#1 wp-content/plugins/wppopupmagic/class-wppum-admin.php(698): require_once('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): WPPUM_Admin->preview_popup_callback()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 {main}
thrown
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wppopupmagic/admin/templates/newsletter_2.php
- > /wp-content/plugins/wppopupmagic/admin/templates/newsletter_3.php
- > /wp-content/plugins/wppopupmagic/admin/templates/newsletter_4.php
- > /wp-content/plugins/wppopupmagic/admin/templates/newsletter_5.php
- > /wp-content/plugins/wppopupmagic/admin/templates/newsletter_1.php
- 153× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wppopupmagic/admin/templates/newsletter_4.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wppopupmagic/admin/templates/newsletter_1.php on line 25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wppopupmagic/admin/templates/newsletter_4.php on line 49
- > PHP Notice
Undefined variable: popup in wp-content/plugins/wppopupmagic/admin/templates/newsletter_4.php on line 49
- > PHP Notice
Undefined variable: popup in wp-content/plugins/wppopupmagic/admin/templates/newsletter_1.php on line 34
- > PHP Notice
Undefined variable: popup in wp-content/plugins/wppopupmagic/admin/templates/newsletter_4.php on line 11
- > PHP Notice
Undefined variable: popup in wp-content/plugins/wppopupmagic/admin/templates/newsletter_5.php on line 71
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wppopupmagic/admin/templates/newsletter_2.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wppopupmagic/admin/templates/newsletter_1.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wppopupmagic/admin/templates/newsletter_5.php on line 71
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
wppopupmagic/wp-popup-magic.php 92% from 13 tests
The main file in "WP Popup Magic" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wppopupmagic.php" instead of "wp-popup-magic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected20,407 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 10 | 140 | 127 | 10,277 |
PHP | 15 | 951 | 943 | 5,309 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 9 | 396 | 220 | 2,147 |
LESS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 95.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 381.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 156 | 96.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 3.11% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
104 PNG files occupy 3.12MB with 1.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ad.png | 42.29KB | 18.16KB | ▼ 57.06% |
images/open-buttons/open-buttons-flat-top-red.png | 3.53KB | 0.48KB | ▼ 86.37% |
images/close-buttons/wppum-close-btn-flat-11.png | 1.19KB | 0.80KB | ▼ 32.46% |
assets/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.30KB | 0.15KB | ▼ 49.68% |
images/close-buttons/hide-red-cirlce.png | 0.93KB | 0.77KB | ▼ 17.73% |