Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▼3.30ms] Passed 4 tests
An overview of server-side resources used by WP Exit Popups
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 40.84 ▲2.56 |
Dashboard /wp-admin | 3.58 ▲0.23 | 48.68 ▼11.25 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 54.83 ▲8.84 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 80.06 ▼7.67 |
Media Library /wp-admin/upload.php | 3.48 ▲0.26 | 36.36 ▲3.16 |
Add Popup /wp-admin/post-new.php?post_type=wpepu_exit_popup | 3.54 | 47.02 |
All Popups /wp-admin/edit.php?post_type=wpepu_exit_popup | 3.55 | 42.31 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Exit Popups: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,074 ▲313 | 15.16 ▲0.50 | 4.76 ▲3.15 | 38.25 ▼0.38 |
Dashboard /wp-admin | 2,371 ▲190 | 6.10 ▲0.39 | 101.06 ▲3.38 | 100.78 ▲58.71 |
Posts /wp-admin/edit.php | 2,299 ▲199 | 3.30 ▲1.27 | 54.64 ▲14.34 | 74.00 ▲34.83 |
Add New Post /wp-admin/post-new.php | 1,559 ▲24 | 22.95 ▲4.84 | 625.19 ▲13.94 | 111.81 ▲34.21 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.05 ▼0.15 | 82.75 ▼13.13 | 76.27 ▲33.15 |
Add Popup /wp-admin/post-new.php?post_type=wpepu_exit_popup | 3,606 | 5.07 | 114.13 | 109.72 |
All Popups /wp-admin/edit.php?post_type=wpepu_exit_popup | 1,284 | 3.45 | 52.06 | 67.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-exit-popups/wp-exit-popups.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: intent, popup, exit
wp-exit-popups/wp-exit-popups.php 92% from 13 tests
The main PHP script in "WP Exit Popups" version 1.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin2,529 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 301 | 58 | 1,302 |
PO File | 2 | 298 | 310 | 712 |
Sass | 1 | 90 | 16 | 455 |
JavaScript | 2 | 7 | 0 | 46 |
SVG | 13 | 0 | 0 | 13 |
CSS | 1 | 0 | 1 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 135)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 95.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 28.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 135.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
PNG images were not found in this plugin