Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.29MB] [CPU: ▼4.24ms] Passed 4 tests
Server-side resources used by Popup Zen - Small, Simple, Lightweight Email Optin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 45.27 ▲4.99 |
Dashboard /wp-admin | 3.63 ▲0.33 | 45.02 ▼3.68 |
Posts /wp-admin/edit.php | 3.75 ▲0.39 | 49.43 ▲7.69 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.33 | 81.46 ▼16.41 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 35.41 ▼1.86 |
All Popups /wp-admin/edit.php?post_type=popupzen | 3.60 | 36.61 |
Add New /wp-admin/post-new.php?post_type=popupzen | 3.69 | 75.67 |
Settings /wp-admin/edit.php?post_type=popupzen&page=popupzen | 3.53 | 34.34 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Popup Zen - Small, Simple, Lightweight Email Optin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.22 ▼1.09 | 6.70 ▲4.74 | 41.85 ▼2.11 |
Dashboard /wp-admin | 2,237 ▲49 | 5.84 ▼0.05 | 94.58 ▼10.39 | 38.29 ▲0.32 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.06 ▲0.04 | 37.30 ▼4.06 | 32.09 ▼6.96 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 17.76 ▲0.32 | 693.07 ▲90.42 | 62.35 ▲12.06 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 4.19 ▼0.04 | 96.11 ▼3.67 | 44.38 ▲1.33 |
All Popups /wp-admin/edit.php?post_type=popupzen | 1,140 | 2.38 | 36.01 | 29.92 |
Add New /wp-admin/post-new.php?post_type=popupzen | 3,095 | 7.75 | 188.21 | 123.08 |
Settings /wp-admin/edit.php?post_type=popupzen&page=popupzen | 922 | 2.19 | 30.80 | 25.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: optin, popup, lead generation, email opt-in, pop up
popup-zen/popup-zen.php Passed 13 tests
"Popup Zen - Small, Simple, Lightweight Email Optin" version 0.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
56 characters long description:
Ridding the web of obnoxious popups, one site at a time.
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
There were no executable files found in this plugin3,362 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 582 | 450 | 1,225 |
CSS | 4 | 211 | 85 | 1,089 |
JavaScript | 4 | 365 | 93 | 831 |
PO File | 1 | 85 | 91 | 201 |
SVG | 1 | 4 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 8 | 14.04% |
▷ Public methods | 48 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 15.79% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/footer-bar-icon.png | 1.23KB | 0.30KB | ▼ 75.16% |
assets/img/popup-icon.png | 2.25KB | 1.33KB | ▼ 40.62% |
assets/img/header-bar-icon.png | 1.14KB | 0.21KB | ▼ 81.89% |
assets/img/box-expanded-icon.png | 2.57KB | 1.66KB | ▼ 35.54% |
assets/img/bottomleft-icon.png | 1.50KB | 0.41KB | ▼ 72.44% |