74% email-subscribe

Code Review | Email Subscription Popup

WordPress plugin Email Subscription Popup scored74%from 54 tests.

About plugin

  • Plugin page: email-subscribe
  • Plugin version: 1.2.18
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2015
  • Latest release: Aug 12, 2023
  • Number of updates: 60
  • Update frequency: every 51.3 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /109,756 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3941.48 ▼3.28
Dashboard /wp-admin3.70 ▲0.4047.28 ▼0.29
Posts /wp-admin/edit.php3.81 ▲0.4650.24 ▲6.41
Add New Post /wp-admin/post-new.php6.28 ▲0.3985.19 ▼8.69
Media Library /wp-admin/upload.php3.61 ▲0.3936.35 ▼0.55
Unsubscribers List /wp-admin/admin.php?page=Newssletter-Email-Unsubscriber3.5833.84
Email Subscription Form Setting /wp-admin/admin.php?page=email_subscription_popup3.5734.84
Manage Subscribers /wp-admin/admin.php?page=email_subscription_popup_subscribers_management3.5832.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,053 ▲28213.70 ▼0.6813.16 ▲11.1242.33 ▼2.06
Dashboard /wp-admin2,237 ▲494.86 ▼1.02108.29 ▼9.4638.01 ▼4.44
Posts /wp-admin/edit.php2,123 ▲312.04 ▲0.0536.06 ▲0.4730.90 ▼3.49
Add New Post /wp-admin/post-new.php1,558 ▲2923.13 ▲4.64659.07 ▲46.7852.22 ▲3.36
Media Library /wp-admin/upload.php1,416 ▲284.19 ▼0.05100.78 ▲1.3542.86 ▲0.85
Unsubscribers List /wp-admin/admin.php?page=Newssletter-Email-Unsubscriber8531.8525.6127.20
Email Subscription Form Setting /wp-admin/admin.php?page=email_subscription_popup1,6593.0472.4659.49
Manage Subscribers /wp-admin/admin.php?page=email_subscription_popup_subscribers_management8491.8626.1124.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1845322,472
JavaScript34631521,859
CSS38244515

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 code0.26
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/asc.png0.14KB0.12KB▼ 13.79%
images/envelope.png18.64KB9.28KB▼ 50.24%
images/vl-box/controls.png1.33KB1.42KB0.00%
images/300x250.png42.63KB15.16KB▼ 64.44%
images/vl-box/player_play.png1.40KB1.36KB▼ 3.20%