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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.38ms] Passed 4 tests
This is a short check of server-side resources used by Popup Modal
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.30 ▼1.46 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.90 ▼1.09 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.33 ▲7.44 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 83.71 ▼4.92 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.96 ▲1.96 |
Add New /wp-admin/post-new.php?post_type=popup_modal | 3.21 | 36.06 |
All Popups /wp-admin/edit.php?post_type=popup_modal | 3.38 | 51.18 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Popup Modal
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.22 ▼1.14 | 1.87 ▲0.02 | 41.24 ▼3.16 |
Dashboard /wp-admin | 2,233 ▲45 | 5.83 ▲0.96 | 99.85 ▼9.32 | 43.44 ▼1.14 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.15 ▲0.18 | 40.42 ▲6.93 | 34.91 ▲2.63 |
Add New Post /wp-admin/post-new.php | 1,553 ▲34 | 23.46 ▲0.05 | 660.20 ▼24.88 | 52.04 ▼5.95 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.25 ▲0.10 | 105.01 ▼14.01 | 45.37 ▼6.13 |
Add New /wp-admin/post-new.php?post_type=popup_modal | 2,827 | 7.83 | 191.70 | 70.71 |
All Popups /wp-admin/edit.php?post_type=popup_modal | 1,128 | 1.93 | 37.31 | 39.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+223
Undefined index: popup_disable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+254
Undefined index: popup_freq
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+225
Undefined index: popup_expires
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+226
Undefined index: popup_pages
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+227
Undefined index: popup_click
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+228
Undefined index: popup_location
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+229
Undefined index: popup_width
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+230
Undefined index: popup_title
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+231
Undefined index: popup_color
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+232
Undefined index: popup_bgcolor
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+233
Undefined index: popup_buttons
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+254
Trying to access array offset on value of type null
- 17 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+328
Undefined variable: popup_freq
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+344
Undefined variable: popup_pages
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+353
Undefined variable: popup_click
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+363
Undefined variable: popup_location
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+378
Undefined variable: popup_title
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Notice in wp-content/plugins/popup-modal/popup-modal.php+401
Undefined variable: popup_buttons
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/popup-modal/template.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=popup_modal
- > Network (severe)
wp-content/plugins/popup-modal/images/ui-bg_flat_75_ffffff_40x100.png - 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
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
popup-modal/popup-modal.php Passed 13 tests
The main PHP file in "Popup Modal" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
118 characters long description:
Easily create responsive WYSIWYG modals that popup at your desired frequency and optionally print with a single click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,119 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 76 | 69 | 572 |
PHP | 2 | 28 | 36 | 382 |
JavaScript | 1 | 3 | 4 | 165 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 101.00 |
▷ Minimum class complexity | 101.00 |
▷ Maximum class complexity | 101.00 |
Average method complexity | 12.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 15 | |
▷ Global constants | 3 | 20.00% |
▷ Class constants | 12 | 80.00% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin