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
Install script ran successfully
Server metrics [RAM: ▲0.39MB] [CPU: ▼3.20ms] Passed 4 tests
Analyzing server-side resources used by Email Subscription Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 41.48 ▼3.28 |
Dashboard /wp-admin | 3.70 ▲0.40 | 47.28 ▼0.29 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 50.24 ▲6.41 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 85.19 ▼8.69 |
Media Library /wp-admin/upload.php | 3.61 ▲0.39 | 36.35 ▼0.55 |
Unsubscribers List /wp-admin/admin.php?page=Newssletter-Email-Unsubscriber | 3.58 | 33.84 |
Email Subscription Form Setting /wp-admin/admin.php?page=email_subscription_popup | 3.57 | 34.84 |
Manage Subscribers /wp-admin/admin.php?page=email_subscription_popup_subscribers_management | 3.58 | 32.60 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 31 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_nl_subscriptions |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
wp_news_letter_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
email_subscription_popup_messages |
widget_nksnewslettersubscriber |
Browser metrics Passed 4 tests
Checking browser requirements for Email Subscription Popup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,053 ▲282 | 13.70 ▼0.68 | 13.16 ▲11.12 | 42.33 ▼2.06 |
Dashboard /wp-admin | 2,237 ▲49 | 4.86 ▼1.02 | 108.29 ▼9.46 | 38.01 ▼4.44 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 2.04 ▲0.05 | 36.06 ▲0.47 | 30.90 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,558 ▲29 | 23.13 ▲4.64 | 659.07 ▲46.78 | 52.22 ▲3.36 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.19 ▼0.05 | 100.78 ▲1.35 | 42.86 ▲0.85 |
Unsubscribers List /wp-admin/admin.php?page=Newssletter-Email-Unsubscriber | 853 | 1.85 | 25.61 | 27.20 |
Email Subscription Form Setting /wp-admin/admin.php?page=email_subscription_popup | 1,659 | 3.04 | 72.46 | 59.49 |
Manage Subscribers /wp-admin/admin.php?page=email_subscription_popup_subscribers_management | 849 | 1.86 | 26.11 | 24.22 |
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
- Zombie tables were found after uninstall: 1 table
- wp_nl_subscriptions
- This plugin did not uninstall successfully, leaving 9 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_nksnewslettersubscriber
- wp_news_letter_settings
- widget_theysaidso_widget
- widget_recent-posts
- email_subscription_popup_messages
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix 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/email-subscribe/wp-email-subscription.php:13
- > 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 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: wordpress email subscription, responsive newsletter signup, wordpress email subscriber, wordpress newsletter popup, newsletter modal popup...
email-subscribe/wp-email-subscription.php 85% from 13 tests
"Email Subscription Popup" version 1.2.18's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 207 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("email-subscribe.php" instead of "wp-email-subscription.php")
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
Everything looks great! No dangerous files found in this plugin4,846 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 845 | 32 | 2,472 |
JavaScript | 3 | 463 | 152 | 1,859 |
CSS | 3 | 82 | 44 | 515 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
12 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/asc.png | 0.14KB | 0.12KB | ▼ 13.79% |
images/envelope.png | 18.64KB | 9.28KB | ▼ 50.24% |
images/vl-box/controls.png | 1.33KB | 1.42KB | 0.00% |
images/300x250.png | 42.63KB | 15.16KB | ▼ 64.44% |
images/vl-box/player_play.png | 1.40KB | 1.36KB | ▼ 3.20% |