Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼18.41ms] Passed 4 tests
A check of server-side resources used by WP Responsive Popup + Optin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.46 ▼4.25 |
Dashboard /wp-admin | 3.12 ▼0.18 | 27.75 ▼21.99 |
Posts /wp-admin/edit.php | 3.26 ▼0.10 | 32.74 ▼18.70 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 69.68 ▼28.71 |
Media Library /wp-admin/upload.php | 3.21 ▼0.02 | 31.59 ▲0.18 |
Email List /wp-admin/admin.php?page=wpo_email_list | 3.26 | 32.23 |
Settings /wp-admin/admin.php?page=wpo_manage_settings | 3.33 | 40.23 |
WP Popup+Optin /wp-admin/admin.php?page=WPPopupOptin | 3.33 | 38.66 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 48 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wpo_email_list |
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Responsive Popup + Optin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲307 | 14.02 ▼0.53 | 9.59 ▲7.43 | 38.56 ▼5.28 |
Dashboard /wp-admin | 2,240 ▲52 | 5.88 ▲0.98 | 100.21 ▼16.19 | 40.06 ▼1.97 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.00 ▼0.04 | 35.26 ▼0.80 | 31.90 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 17.65 ▼0.16 | 653.02 ▲5.71 | 61.06 ▲4.35 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.21 ▲0.05 | 94.05 ▼9.34 | 40.45 ▼3.68 |
Email List /wp-admin/admin.php?page=wpo_email_list | 817 | 2.18 | 23.76 | 26.42 |
Settings /wp-admin/admin.php?page=wpo_manage_settings | 2,137 | 6.60 | 135.34 | 84.67 |
WP Popup+Optin /wp-admin/admin.php?page=WPPopupOptin | 2,134 | 6.72 | 131.15 | 86.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wpo_email_list
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-popup-optin/wpo_email_list.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-popup-optin/wpo_admin_page.php:62
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-popup-optin/wp-popup-optin.php:42
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 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
6 plugin tags: email marketing, list, optin, popup, responsive popup...
wp-popup-optin/wp-popup-optin.php 85% from 13 tests
"WP Responsive Popup + Optin" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,916 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 582 | 143 | 1,725 |
CSS | 5 | 95 | 54 | 643 |
PHP | 3 | 116 | 37 | 533 |
SQL | 1 | 9 | 18 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.49MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
fancybox/fancy_loading.png | 9.96KB | 6.30KB | ▼ 36.67% |
fancybox/fancy_title_over.png | 0.07KB | 0.09KB | 0.00% |
images/left-image.png | 4.44KB | 0.29KB | ▼ 93.42% |
fancybox/fancy_nav_left.png | 1.41KB | 1.64KB | 0.00% |
fancybox/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |