Benchmarks
Plugin footprint Passed 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: ▲1.14MB] [CPU: ▼289.21ms] Passed 4 tests
Server-side resources used by Popup – WordPress Popups and more popup modules
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.16 | 71.51 ▲11.91 |
Dashboard /wp-admin | 4.52 ▲1.11 | 53.87 ▲14.42 |
Posts /wp-admin/edit.php | 4.81 ▲1.17 | 55.85 ▲6.47 |
Add New Post /wp-admin/post-new.php | 8.09 ▲1.12 | 109.19 ▼1,177.31 |
Media Library /wp-admin/upload.php | 4.47 ▲1.17 | 32.98 ▲2.09 |
Youtube module /wp-admin/edit.php?post_type=ypmyoutube | 4.54 | 41.03 |
Facebook module /wp-admin/edit.php?post_type=ypmfacebook | 4.53 | 35.25 |
Add New /wp-admin/post-new.php?post_type=popupmaster | 4.87 | 58.75 |
Contact Form module (Pro) /wp-admin/edit.php?post_type=ypmcontactform | 4.51 | 45.92 |
Iframe module (Pro) /wp-admin/edit.php?post_type=ypmiframe | 4.52 | 35.50 |
All Popups /wp-admin/edit.php?post_type=popupmaster | 4.52 | 41.57 |
Countdown module (Pro) /wp-admin/edit.php?post_type=ypmcountdown | 4.51 | 36.75 |
Settings /wp-admin/edit.php?post_type=popupmaster&page=ypmSettingsPage | 4.46 | 42.45 |
Social module (Pro) /wp-admin/edit.php?post_type=ypmsocial | 4.51 | 34.76 |
Server storage [IO: ▲1.36MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 159 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_ypm_contact_form_fields |
New WordPress options |
---|
ypm_redirect |
YpmUsageDays |
YpmShowNextTime |
YpmInstallDate |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Popup – WordPress Popups and more popup modules
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,922 ▲178 | 16.28 ▲0.64 | 6.08 ▼0.56 | 2.41 ▲0.23 |
Dashboard /wp-admin | 3,047 ▲189 | 6.34 ▲0.15 | 122.85 ▼7.30 | 155.17 ▼6.53 |
Posts /wp-admin/edit.php | 2,846 ▲152 | 3.27 ▲0.02 | 64.41 ▼1.06 | 143.76 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,966 ▲305 | 22.14 ▲6.16 | 389.70 ▼25.91 | 170.23 ▲19.65 |
Media Library /wp-admin/upload.php | 1,854 ▲156 | 5.61 ▲0.11 | 138.38 ▼6.63 | 184.90 ▼16.19 |
Youtube module /wp-admin/edit.php?post_type=ypmyoutube | 1,511 | 3.48 | 64.35 | 112.39 |
Facebook module /wp-admin/edit.php?post_type=ypmfacebook | 1,512 | 3.19 | 62.26 | 114.33 |
Add New /wp-admin/post-new.php?post_type=popupmaster | 7,381 | 13.82 | 342.33 | 426.05 |
Contact Form module (Pro) /wp-admin/edit.php?post_type=ypmcontactform | 1,514 | 3.20 | 61.90 | 109.75 |
Iframe module (Pro) /wp-admin/edit.php?post_type=ypmiframe | 1,477 | 3.20 | 62.61 | 113.54 |
All Popups /wp-admin/edit.php?post_type=popupmaster | 1,649 | 3.22 | 59.42 | 113.73 |
Countdown module (Pro) /wp-admin/edit.php?post_type=ypmcountdown | 1,514 | 3.21 | 60.40 | 111.94 |
Settings /wp-admin/edit.php?post_type=popupmaster&page=ypmSettingsPage | 1,362 | 2.55 | 57.92 | 103.40 |
Social module (Pro) /wp-admin/edit.php?post_type=ypmsocial | 1,514 | 3.20 | 60.27 | 111.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=popupmaster
- > Notice in wp-content/plugins/popup-more/assets/view/info.php+6
Undefined index: post
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popupmaster
- > Notice in wp-content/plugins/popup-more/classes/admin/conditionsBuilder/ConditionBuilder.php+194
Undefined index: select_settings
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/popup-more/assets/view/support.php
- > /wp-content/plugins/popup-more/assets/view/upgrade.php
- 58× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: popupTypeObj in wp-content/plugins/popup-more/assets/view/metaboxes/general/openEvents.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'YpmPopupData' not found in wp-content/plugins/popup-more/assets/view/metaboxes/general/generalView/themes.php:2
- > PHP Warning
Use of undefined constant YPM_POPUP_PKG - assumed 'YPM_POPUP_PKG' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-more/classes/Ajax.php on line 10
- > PHP Warning
Use of undefined constant YPM_POPUP_PKG - assumed 'YPM_POPUP_PKG' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-more/classes/popups/YoutubePopup.php on line 6
- > PHP Warning
Use of undefined constant YPM_POPUP_FREE - assumed 'YPM_POPUP_FREE' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-more/classes/popups/YoutubePopup.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/popup-more/assets/view/facebook-types/shareButton.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/popup-more/assets/view/conditions-free.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/popup-more/assets/view/settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/popup-more/assets/view/preview.php:3
- > PHP Warning
Use of undefined constant YPM_POPUP_HELPERS - assumed 'YPM_POPUP_HELPERS' (this will throw an Error in a future version of PHP) in wp-content/plugins/popup-more/config/data-config.php on line 3
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=ypmiframe
- > Network (severe)
wp-content/plugins/popup-more/assets/javascript/admin//iframe.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: popup, popup more, modal, popup window, popup maker...
popup-more/popup-more.php Passed 13 tests
The main PHP file in "Popup – WordPress Popups and more popup modules" ver. 1.7.2 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
Popup More is the most complete pop up plugin in the WordPress popup plugins.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected16,921 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 2,114 | 521 | 8,573 |
PHP | 70 | 1,142 | 233 | 6,259 |
CSS | 14 | 540 | 205 | 2,031 |
PO File | 1 | 18 | 18 | 58 |
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.21 |
Average class complexity | 11.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 3 | 6.98% |
▷ Concrete classes | 40 | 93.02% |
▷ Final classes | 0 | 0.00% |
Methods | 383 | |
▷ Static methods | 93 | 24.28% |
▷ Public methods | 321 | 83.81% |
▷ Protected methods | 2 | 0.52% |
▷ Private methods | 60 | 15.67% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
Constants | 63 | |
▷ Global constants | 63 | 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
45 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/img/theme1.png | 34.98KB | 0.00KB | ▼ 100.00% |
assets/img/colorbox5/close.png | 0.75KB | 0.24KB | ▼ 68.58% |
(invalid) assets/img/theme3.png | 29.44KB | 0.00KB | ▼ 100.00% |
assets/img/colorbox5/images/loading_background.png | 0.13KB | 0.15KB | 0.00% |
assets/css/jQueryDialog/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |