Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.70ms] Passed 4 tests
Server-side resources used by Modal Window - create popup modal window
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.51 ▼5.00 |
Dashboard /wp-admin | 3.34 ▼0.01 | 43.54 ▼17.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.98 ▲1.41 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.49 ▼13.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.85 ▲5.81 |
Modal Window /wp-admin/admin.php?page=modal-window | 3.40 | 33.91 |
Welcome /wp-admin/admin.php?page=wow-company | 3.25 | 31.50 |
Server storage [IO: ▲5.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 145 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wow_mwp |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
wow_mwp_updater_5.0 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Modal Window - create popup modal window
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 14.35 ▼0.28 | 1.66 ▼0.05 | 44.41 ▲1.25 |
Dashboard /wp-admin | 2,275 ▲98 | 5.65 ▼0.01 | 87.55 ▲0.51 | 72.32 ▲33.02 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 1.99 ▲0.03 | 42.05 ▲4.41 | 34.85 ▼0.17 |
Add New Post /wp-admin/post-new.php | 1,573 ▲47 | 18.12 ▼3.32 | 692.08 ▲53.92 | 57.41 ▲4.64 |
Media Library /wp-admin/upload.php | 1,480 ▲77 | 4.22 ▲0.04 | 102.16 ▲2.40 | 75.25 ▲33.43 |
Modal Window /wp-admin/admin.php?page=modal-window | 1,186 | 2.31 | 46.66 | 39.63 |
Welcome /wp-admin/admin.php?page=wow-company | 939 | 1.99 | 26.58 | 44.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_wow_mwp
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- wow_mwp_updater_5.0
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/modal-window/admin/page-tools.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/modal-window/admin/settings/settings/settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/modal-window/admin/settings/style/settings.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Overview), #2 (Create modal windows & insert any content), #3 (Insert a form (together with Wow Forms plugin)), #4 (Create exit intent popups. Retain users on your website or at least offer the abandoning users something valuable to capture their emails.), #5 (Setup any widgets. Insert any other plugins' shortcodes.), #6 (Create a phone call request widget), #7 (Use for showing ads), #8 (Modal window setup example), #9 (Features), #10 (Pro version features)
modal-window/modal-window.php Passed 13 tests
The main PHP script in "Modal Window - create popup modal window" version 5.3.8 is automatically included on every request by WordPress
55 characters long description:
Create popups. Insert any content. Trigger on anything.
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 detected34,131 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 19 | 3,613 | 139 | 15,968 |
SVG | 4 | 0 | 12 | 9,464 |
PHP | 48 | 870 | 744 | 7,464 |
JavaScript | 13 | 219 | 203 | 1,235 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.20 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 68 | |
▷ Static methods | 11 | 16.18% |
▷ Public methods | 59 | 86.76% |
▷ Protected methods | 1 | 1.47% |
▷ Private methods | 8 | 11.76% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/remove_close.png | 3.59KB | 1.50KB | ▼ 58.21% |
admin/assets/img/autoclose.png | 3.19KB | 1.11KB | ▼ 65.16% |
admin/assets/img/modal-window-logo.png | 2.72KB | 1.19KB | ▼ 56.23% |
admin/assets/img/form.png | 3.81KB | 1.95KB | ▼ 48.85% |
admin/assets/img/display.png | 3.76KB | 1.68KB | ▼ 55.28% |