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.03MB] [CPU: ▲0.48ms] Passed 4 tests
An overview of server-side resources used by Before Exit Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.03 ▲3.00 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.03 ▼3.03 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.15 ▲3.27 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.70 ▲2.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.44 ▼0.45 |
Exit Popup Settings /wp-admin/options-general.php?page=before-exit-popup/before-exit-popup.php | 3.23 | 30.04 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
webgensis_exit_popup_relative_posts_limit |
category_children |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
webgensis_exit_popup_selected_posts |
webgensis_exit_popup_select_option |
Browser metrics Passed 4 tests
A check of browser resources used by Before Exit Popup
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.28 ▼0.94 | 4.78 ▲3.02 | 41.68 ▼6.84 |
Dashboard /wp-admin | 2,214 ▲23 | 4.89 ▼0.01 | 103.99 ▲1.39 | 38.69 ▲1.64 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.03 ▲0.04 | 39.81 ▲1.23 | 36.04 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,521 ▼17 | 23.36 ▲0.23 | 596.28 ▼94.55 | 52.28 ▼3.86 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.21 ▲0.01 | 96.01 ▼14.78 | 41.36 ▼5.40 |
Exit Popup Settings /wp-admin/options-general.php?page=before-exit-popup/before-exit-popup.php | 833 | 1.72 | 24.81 | 27.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- webgensis_exit_popup_relative_posts_limit
- webgensis_exit_popup_selected_posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- category_children
- webgensis_exit_popup_select_option
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: related posts, popup, exit popup
before-exit-popup/before-exit-popup.php Passed 13 tests
The entry point to "Before Exit Popup" version 1.0 is a PHP file that has certain tags in its header comment area
60 characters long description:
Show relative posts before closing the browser tab in popup.
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 plugin329 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 50 | 214 |
CSS | 1 | 0 | 0 | 79 |
JavaScript | 2 | 0 | 0 | 36 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/x.png | 1.04KB | 1.25KB | 0.00% |
inc/img/placeholder2.png | 16.08KB | 11.42KB | ▼ 28.99% |
inc/admin/img/x.png | 1.04KB | 1.25KB | 0.00% |
inc/admin/img/placeholder2.png | 16.08KB | 11.42KB | ▼ 28.99% |