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.01MB] [CPU: ▼7.41ms] Passed 4 tests
A check of server-side resources used by Easy Nag Popup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.57 ▲0.21 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.34 ▼13.41 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.46 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 91.28 ▼13.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.83 ▼2.77 |
Add New /wp-admin/post-new.php?post_type=easy_nag_popup | 3.33 | 43.52 |
All Nag Popups /wp-admin/edit.php?post_type=easy_nag_popup | 3.29 | 36.25 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Easy Nag Popup: 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 / | 2,829 ▲83 | 13.17 ▼1.26 | 1.77 ▲0.08 | 44.36 ▲2.71 |
Dashboard /wp-admin | 2,232 ▲44 | 5.87 ▲0.95 | 100.18 ▼1.43 | 72.58 ▲32.54 |
Posts /wp-admin/edit.php | 2,115 ▲23 | 2.01 ▼0.03 | 38.08 ▼1.66 | 33.48 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 23.15 ▲4.90 | 745.61 ▲77.87 | 59.19 ▲1.72 |
Media Library /wp-admin/upload.php | 1,414 ▲32 | 4.19 ▼0.05 | 113.50 ▲7.24 | 72.68 ▲26.62 |
Add New /wp-admin/post-new.php?post_type=easy_nag_popup | 1,750 | 3.70 | 60.17 | 80.42 |
All Nag Popups /wp-admin/edit.php?post_type=easy_nag_popup | 1,079 | 1.94 | 32.56 | 28.27 |
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 were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% 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 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-nag-popup/inc/class-easy-nag-popup-admin.php:60
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Add New Nag Popup Screen), #2 (Example of a Nag Popup)
easy-nag-popup/easy-nag-popup.php Passed 13 tests
This is the main PHP file of "Easy Nag Popup" version 2.1.7.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
Provides you with a rich and easy way to add a nag popup to your website.
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
Everything looks great! No dangerous files found in this plugin875 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 212 | 645 | 762 |
JavaScript | 2 | 1 | 3 | 59 |
CSS | 1 | 3 | 0 | 27 |
LESS | 1 | 3 | 0 | 27 |
PHP code Passed 2 tests
This is a short overview 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.72 |
Average class complexity | 47.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 19 | 46.34% |
▷ Public methods | 39 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.88% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 1.09MB with 0.63MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/easy-nag-popup.png | 1.63KB | 0.80KB | ▼ 50.96% |
screenshot-2.png | 939.71KB | 431.98KB | ▼ 54.03% |
screenshot-1.png | 174.36KB | 52.80KB | ▼ 69.72% |