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.39MB] [CPU: ▼3.11ms] Passed 4 tests
Server-side resources used by Popup More Popups, Lightboxes, and more popup modules
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 38.39 ▼1.17 |
Dashboard /wp-admin | 3.69 ▲0.35 | 50.31 ▼7.93 |
Posts /wp-admin/edit.php | 3.81 ▲0.45 | 50.27 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 88.95 ▼3.45 |
Media Library /wp-admin/upload.php | 3.62 ▲0.39 | 41.15 ▲7.22 |
Subscription module /wp-admin/edit.php?post_type=ypmsubscription | 3.76 | 42.91 |
Social module (Pro) /wp-admin/edit.php?post_type=ypmsocial | 3.68 | 40.61 |
Iframe module (Pro) /wp-admin/edit.php?post_type=ypmiframe | 3.69 | 39.15 |
Settings /wp-admin/edit.php?post_type=popupmaster&page=ypmSettingsPage | 3.63 | 41.53 |
Dynamic Link Content module (Pro) /wp-admin/edit.php?post_type=ypmlink | 3.68 | 37.90 |
Add New /wp-admin/post-new.php?post_type=popupmaster | 3.94 | 56.38 |
Popup Types /wp-admin/edit.php?post_type=popupmaster&page=popupmaster | 3.65 | 48.74 |
Facebook module /wp-admin/edit.php?post_type=ypmfacebook | 3.69 | 36.16 |
Youtube module /wp-admin/edit.php?post_type=ypmyoutube | 3.69 | 37.99 |
Countdown module (Pro) /wp-admin/edit.php?post_type=ypmcountdown | 3.68 | 38.57 |
Server storage [IO: ▲2.24MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 254 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_ypm_subscribers |
wp_ypm_contact_form_fields |
wp_ypm_subscription_form_fields |
New WordPress options |
---|
can_compress_scripts |
YpmInstallDate |
YpmShowNextTime |
theysaidso_admin_options |
YpmUsageDays |
ypm_redirect |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Popup More Popups, Lightboxes, and more popup modules
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲197 | 14.28 ▼0.07 | 1.74 ▲0.04 | 40.73 ▼2.30 |
Dashboard /wp-admin | 2,344 ▲170 | 5.67 ▲0.09 | 95.41 ▲1.59 | 43.23 ▲2.03 |
Posts /wp-admin/edit.php | 2,249 ▲146 | 2.09 ▲0.02 | 35.63 ▼10.15 | 32.97 ▼5.02 |
Add New Post /wp-admin/post-new.php | 6,407 ▲4,874 | 26.22 ▲2.98 | 946.75 ▲326.32 | 60.54 ▲7.68 |
Media Library /wp-admin/upload.php | 1,549 ▲146 | 4.21 ▲0.01 | 95.93 ▼0.50 | 42.73 ▲2.74 |
Subscription module /wp-admin/edit.php?post_type=ypmsubscription | 1,191 | 2.31 | 43.97 | 41.76 |
Social module (Pro) /wp-admin/edit.php?post_type=ypmsocial | 1,202 | 2.05 | 35.86 | 32.72 |
Iframe module (Pro) /wp-admin/edit.php?post_type=ypmiframe | 1,201 | 2.01 | 37.55 | 29.69 |
Settings /wp-admin/edit.php?post_type=popupmaster&page=ypmSettingsPage | 1,242 | 2.31 | 45.51 | 27.30 |
Dynamic Link Content module (Pro) /wp-admin/edit.php?post_type=ypmlink | 1,199 | 2.04 | 33.67 | 30.71 |
Add New /wp-admin/post-new.php?post_type=popupmaster | 6,716 | 9.22 | 364.83 | 167.97 |
Popup Types /wp-admin/edit.php?post_type=popupmaster&page=popupmaster | 1,610 | 2.32 | 38.15 | 66.77 |
Facebook module /wp-admin/edit.php?post_type=ypmfacebook | 1,196 | 2.09 | 38.04 | 30.34 |
Youtube module /wp-admin/edit.php?post_type=ypmyoutube | 1,204 | 2.48 | 37.62 | 29.43 |
Countdown module (Pro) /wp-admin/edit.php?post_type=ypmcountdown | 1,199 | 2.04 | 33.93 | 30.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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
- 3 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+203
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/upgrade.php
- > /wp-content/plugins/popup-more/assets/view/support.php
- 100× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(YPM_POPUP_HELPERSConfigDataHelper.php): failed to open stream: No such file or directory in wp-content/plugins/popup-more/config/data-config.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'YpmAdminHelper' not found in wp-content/plugins/popup-more/assets/view/gamification/contents.php:2
- > 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_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 Fatal error
Uncaught Error: Call to a member function getOptionValue() on null in wp-content/plugins/popup-more/assets/view/gamification/design.php:2
- > PHP Notice
Undefined index: post in wp-content/plugins/popup-more/assets/view/iframe.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function YpmPopup\\add_action() in wp-content/plugins/popup-more/classes/admin/AdminPost.php:13
- > 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/Ajax.php on line 10
- > 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/assets/view/gamification/main.php on line 2
- > PHP Warning
require_once(YPM_POPUP_HELPERS/Tabs.php): failed to open stream: No such file or directory in wp-content/plugins/popup-more/assets/view/gamification/main.php on line 2
- > PHP Warning
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=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=popupmaster&page=popupmaster
- > Network (severe)
wp-content/plugins/popup-more/assets/css/colorbox/ypmcolorbox.css?ver=2.15 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
popup-more/popup-more.php Passed 13 tests
The main PHP file in "Popup More Popups, Lightboxes, and more popup modules" ver. 2.1.5 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 detected29,024 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 1,931 | 842 | 12,495 |
JavaScript | 22 | 2,366 | 556 | 10,224 |
CSS | 19 | 731 | 230 | 6,173 |
PO File | 1 | 56 | 18 | 130 |
SVG | 2 | 0 | 0 | 2 |
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.22 |
Average class complexity | 16.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 4 | 6.78% |
▷ Concrete classes | 55 | 93.22% |
▷ Final classes | 0 | 0.00% |
Methods | 635 | |
▷ Static methods | 139 | 21.89% |
▷ Public methods | 523 | 82.36% |
▷ Protected methods | 28 | 4.41% |
▷ Private methods | 84 | 13.23% |
Functions | 17 | |
▷ Named functions | 7 | 41.18% |
▷ Anonymous functions | 10 | 58.82% |
Constants | 84 | |
▷ Global constants | 84 | 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
84 PNG files occupy 0.64MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/jQueryDialog/images/ui-bg_fine-grain_68_b83400_60x60.png | 8.11KB | 2.26KB | ▼ 72.15% |
assets/img/colorbox4/images/border1.png | 0.61KB | 0.82KB | 0.00% |
assets/img/colorbox1/close.png | 0.83KB | 0.40KB | ▼ 51.58% |
assets/img/colorbox5/images/controls.png | 1.98KB | 2.04KB | 0.00% |
assets/img/conf-home.png | 1.55KB | 1.36KB | ▼ 11.87% |