Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.94ms] Passed 4 tests
Server-side resources used by Popup Box - new WordPress popup plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 40.88 ▼0.60 |
Dashboard /wp-admin | 3.45 ▲0.10 | 47.21 ▼16.50 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 48.00 ▲2.12 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 92.81 ▼8.07 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 35.65 ▼2.57 |
All Popups /wp-admin/admin.php?page=popup-box | 3.48 | 36.41 |
Server storage [IO: ▲0.92MB] [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: 85 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_popup_box |
New WordPress options |
---|
widget_theysaidso_widget |
wow_popup_box_updater_2 |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Popup Box - new WordPress popup plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.14 ▼0.56 | 1.88 ▲0.25 | 39.76 ▼5.09 |
Dashboard /wp-admin | 2,223 ▲45 | 5.62 ▲0.02 | 92.86 ▼12.97 | 39.96 ▼3.55 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.12 ▲0.15 | 39.85 ▲3.42 | 37.99 ▲3.18 |
Add New Post /wp-admin/post-new.php | 1,551 ▲22 | 23.35 ▲0.20 | 639.57 ▲47.96 | 57.52 ▲4.51 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.23 ▼0.01 | 96.11 ▼5.06 | 44.32 ▲0.47 |
All Popups /wp-admin/admin.php?page=popup-box | 1,106 | 2.30 | 42.09 | 26.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_popup_box
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- wow_popup_box_updater_2
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/popup-box/admin/settings/options/style.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/popup-box/admin/settings/options/settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/popup-box/admin/settings/options/content.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Frontend), #2 (Popup content), #3 (Popup Style), #4 (Settings), #5 (Display Rules)
popup-box/popup-box.php Passed 13 tests
This is the main PHP file of "Popup Box - new WordPress popup plugin" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
29 characters long description:
Easily create Powered Popups.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14,335 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 2,031 | 133 | 9,335 |
PHP | 34 | 548 | 616 | 3,636 |
JavaScript | 12 | 225 | 183 | 1,364 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 55 | |
▷ Static methods | 11 | 20.00% |
▷ Public methods | 49 | 89.09% |
▷ Protected methods | 1 | 1.82% |
▷ Private methods | 5 | 9.09% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
15 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 11.36KB | 4.55KB | ▼ 59.93% |
admin/assets/img/schedule.png | 2.73KB | 0.64KB | ▼ 76.66% |
admin/assets/img/remove_close.png | 3.59KB | 1.50KB | ▼ 58.21% |
admin/assets/img/display.png | 3.76KB | 1.68KB | ▼ 55.28% |
admin/assets/img/animation.png | 3.98KB | 1.81KB | ▼ 54.49% |