Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.87ms] Passed 4 tests
Analyzing server-side resources used by WP Exit Optin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.79 ▼2.92 |
Dashboard /wp-admin | 3.50 ▲0.20 | 47.70 ▼2.01 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 49.98 ▲1.19 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.20 | 95.41 ▲1.28 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 35.57 ▲0.26 |
Server storage [IO: ▲4.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 328 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Exit Optin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.47 ▲0.04 | 1.68 ▼0.05 | 41.68 ▼2.09 |
Dashboard /wp-admin | 2,222 ▲37 | 4.87 ▼0.99 | 106.87 ▲3.15 | 40.71 ▲1.22 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.01 | 39.40 ▲1.06 | 35.11 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 18.53 ▼4.68 | 618.70 ▼32.54 | 44.35 ▼7.83 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.21 ▼0.07 | 94.57 ▼6.55 | 41.35 ▲0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-exit-optin/wp-exit-optin.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-exit-optin/lib/cmb2/init.php:119
- > PHP Notice
Undefined variable: test_root in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-exit-optin/lib/cmb2/example-functions.php:68
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-exit-optin/lib/cmb2/bootstrap.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-exit-optin/lib/cmb2/tests/cmb-tests-base.php:10
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Popup show when visitor is about to exit your site), #2 (Admin Options)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== wp-exit-optin ===
)
wp-exit-optin/wp-exit-optin.php 92% from 13 tests
This is the main PHP file of "WP Exit Optin" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- 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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin88,805 lines of code in 178 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 2 | 0 | 0 | 47,741 |
PO File | 119 | 12,731 | 16,329 | 29,151 |
PHP | 24 | 1,411 | 2,427 | 4,922 |
CSS | 5 | 1,033 | 1,022 | 4,116 |
Sass | 11 | 168 | 23 | 1,116 |
JavaScript | 7 | 216 | 179 | 928 |
Markdown | 4 | 172 | 0 | 487 |
YAML | 2 | 9 | 0 | 152 |
JSON | 3 | 0 | 0 | 121 |
Bourne Shell | 1 | 19 | 7 | 71 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 26.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 31 | 9.09% |
▷ Public methods | 322 | 94.43% |
▷ Protected methods | 10 | 2.93% |
▷ Private methods | 9 | 2.64% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
lib/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
lib/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
lib/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |