Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.91MB] [CPU: ▼32.70ms] Passed 4 tests
Analyzing server-side resources used by Auto Popup Expiry
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.51 ▼1.67 |
Dashboard /wp-admin | 3.04 ▼0.27 | 22.91 ▼25.53 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 22.71 ▼25.21 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 22.57 ▼68.13 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 24.38 ▼11.94 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 33 new options
New WordPress options |
---|
notification_bkg_color |
widget_recent-posts |
popup_window_color |
theysaidso_admin_options |
notification_margin |
notification_position_top |
myselect |
popup_window_image |
notification_position_bottom |
popup_window_radius |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Auto Popup Expiry
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 14.46 ▼0.01 | 1.71 ▼0.16 | 39.19 ▼8.82 |
Dashboard /wp-admin | 2,220 ▲29 | 4.91 ▼0.95 | 104.14 ▼2.24 | 96.78 ▲58.36 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 1.97 ▼0.03 | 36.65 ▲0.48 | 34.06 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,682 ▲148 | 22.37 ▼1.03 | 673.17 ▲61.39 | 58.40 ▼9.10 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.25 ▼0.03 | 102.45 ▼2.27 | 84.64 ▲39.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 33 options in the database
- notification_position_bottom
- db_upgraded
- notification_width
- notification_close_color
- popup_window_radius
- popup_window_image
- myselectout
- popup_window_date
- widget_recent-posts
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ape-auto-popup-expiry/autopop.php
- 7× 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/ape-auto-popup-expiry/ape-auto-popup-expiry.php:49
- > PHP Notice
Undefined variable: myoption in wp-content/plugins/ape-auto-popup-expiry/autopop.php on line 209
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/ape-auto-popup-expiry/inc/switch.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ape-auto-popup-expiry/inc/anim-out.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ape-auto-popup-expiry/auto_popup_expiry_admin.php:32
- > PHP Notice
Undefined variable: myoption in wp-content/plugins/ape-auto-popup-expiry/autopop.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ape-auto-popup-expiry/inc/anim-in.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: popup wordpress, auto popup expiry, auto expire popup, popup, simple popup...
ape-auto-popup-expiry/ape-auto-popup-expiry.php Passed 13 tests
"Auto Popup Expiry" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
103 characters long description:
APE - Auto Popup Expiry is a simply plugin for wordpress usefull for create automatic deactivate 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
Good job! No executable or dangerous file extensions detected3,933 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 557 | 13 | 3,055 |
PHP | 6 | 283 | 59 | 877 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.53 |
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 | 4 | |
▷ Named functions | 4 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ape.png | 3.11KB | 2.24KB | ▼ 27.77% |
images/expiry.png | 1.26KB | 0.62KB | ▼ 50.54% |