67% email-subscribers

Code Review | Icegram Express – Email Marketing, Newsletters and Automation for WordPress & WooCommerce

WordPress plugin Icegram Express – Email Marketing, Newsletters and Automation for WordPress & WooCommerce scored67%from 54 tests.

About plugin

  • Plugin page: email-subscribers
  • Plugin version: 5.7.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.4.1
  • WordPress version: 6.3.1
  • First release: May 9, 2014
  • Latest release: Nov 29, 2023
  • Number of updates: 630
  • Update frequency: every 5.5 days
  • Top authors: Icegram (77.3%)storeapps (16.67%)gopi_plus (6.35%)

Code review

54 tests

User reviews

1074 reviews

Install metrics

100,000+ active /9,941,905 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲10.02MB] [CPU: ▲68.86ms] 50% from 4 tests

This is a short check of server-side resources used by Icegram Express – Email Marketing, Newsletters and Automation for WordPress & WooCommerce
Please take the time to fix the following items
  • RAM: Total memory usage must be kept under 10MB (currently 13.27MB on /wp-admin/admin.php?page=es_pricing)
  • Extra RAM: The extra memory usage must be under 5MB (currently 10.02MB on /wp-admin/admin.php?page=es_pricing)
PageMemory (MB)CPU Time (ms)
Home /13.36 ▲9.90117.44 ▲75.67
Dashboard /wp-admin13.44 ▲10.13679.23 ▲631.02
Posts /wp-admin/edit.php13.36 ▲10.00122.44 ▲77.13
Add New Post /wp-admin/post-new.php16.03 ▲10.14149.36 ▲56.80
Media Library /wp-admin/upload.php13.28 ▲10.0598.66 ▲65.84
Settings /wp-admin/admin.php?page=es_settings13.44134.15
Lists /wp-admin/admin.php?page=es_lists13.25104.05
Dashboard /wp-admin/admin.php?page=es_dashboard13.2797.37
Reports /wp-admin/admin.php?page=es_reports13.26103.81
Forms /wp-admin/admin.php?page=es_forms13.25102.20
Templates /wp-admin/admin.php?page=es_template13.2696.93
Logs /wp-admin/admin.php?page=es_logs13.2394.32
Scheduled Actions /wp-admin/tools.php?page=action-scheduler13.41108.30
Help & Info /wp-admin/admin.php?page=es_general_information13.2595.67
Go PRO /wp-admin/admin.php?page=es_pricing13.27100.76

Server storage [IO: ▲12.99MB] [DB: ▲0.04MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 501 new files
Database: 25 new tables, 14 new options
New tables
wp_actionscheduler_logs
wp_ig_wc_cart
wp_actionscheduler_groups
wp_ig_mailing_queue
wp_ig_contact_meta
wp_actionscheduler_actions
wp_ig_custom_fields
wp_ig_workflows
wp_ig_forms
wp_ig_queue
...
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_email-subscribers-form
db_upgraded
ig_es_cron_last_hit
schema-ActionScheduler_LoggerSchema
schema-ActionScheduler_StoreSchema
can_compress_scripts
widget_theysaidso_widget
action_scheduler_hybrid_store_demarkation
...

Browser metrics Passed 4 tests

Checking browser requirements for Icegram Express – Email Marketing, Newsletters and Automation for WordPress & WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,164 ▲40213.39 ▼1.329.18 ▲7.5018.37 ▼24.15
Dashboard /wp-admin2,483 ▲3135.67 ▲0.0596.16 ▼11.1453.25 ▲11.58
Posts /wp-admin/edit.php2,202 ▲992.02 ▼0.0441.53 ▼3.1736.30 ▼0.31
Add New Post /wp-admin/post-new.php1,575 ▲4919.98 ▼3.33629.50 ▼41.1051.39 ▼4.20
Media Library /wp-admin/upload.php1,505 ▲1084.15 ▼0.0297.95 ▲0.6940.54 ▲1.68
Settings /wp-admin/admin.php?page=es_settings2,8203.1667.98116.36
Lists /wp-admin/admin.php?page=es_lists1,2762.5650.1146.48
Dashboard /wp-admin/admin.php?page=es_dashboard1,7342.5939.3856.28
Reports /wp-admin/admin.php?page=es_reports1,4582.3936.3141.62
Forms /wp-admin/admin.php?page=es_forms1,2702.5037.2742.64
Templates /wp-admin/admin.php?page=es_template1,5132.6336.9737.63
Logs /wp-admin/admin.php?page=es_logs1,1902.7445.7351.55
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,3501.8030.6533.56
Help & Info /wp-admin/admin.php?page=es_general_information1,5462.3133.6949.95
Go PRO /wp-admin/admin.php?page=es_pricing1,9542.4936.41105.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables detected upon uninstall: 25 tables
    • wp_actionscheduler_logs
    • wp_ig_mailing_queue
    • wp_ig_wc_guests
    • wp_ig_links
    • wp_ig_blocked_emails
    • wp_ig_lists_contacts
    • wp_ig_workflows_queue
    • wp_ig_temp_import
    • wp_ig_contact_meta
    • wp_ig_campaigns
    • ...
  • Zombie WordPress options detected upon uninstall: 15 options
    • schema-ActionScheduler_StoreSchema
    • widget_theysaidso_widget
    • action_scheduler_migration_status
    • widget_recent-posts
    • db_upgraded
    • ig_es_coupons
    • action_scheduler_hybrid_store_demarkation
    • action_scheduler_lock_async-request-runner
    • schema-ActionScheduler_LoggerSchema
    • 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
Even though everything seems fine, this is not 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 fix the following items
  • 78× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/email-subscribers/lite/language.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/email-subscribers/lite/includes/pro-features.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/email-subscribers/lite/admin/views/dashboard/ess-onboarding.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ES() in wp-content/plugins/email-subscribers/lite/includes/workflows/gallery-items/unsubscribe-email.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_Clean_Command.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/email-subscribers/lite/includes/libraries/action-scheduler/lib/cron-expression/CronExpression_DayOfMonthField.php:21

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=es_template
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1 1:28609 "jQuery.Deferred exception: ig_es_campaign_editor_data is not defined" "ReferenceError: ig_es_campaign_editor_data is not defined\n at ig_es_add_dnd_rte_tags (/wp-content/plugins/email-subscribers/lite/admin/js/email-subscribers-admin.js?ver=5.7.3:4100:30)\n at HTMLSelectElement.\u003Canonymous> (/wp-content/plugins/email-subscribers/lite/admin/js/email-subscribers-admin.js?ver=5.7.3:3593:4)\n at HTMLSelectElement.dispatch (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:39997)\n at v.handle (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:37968)\n at Object.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:70063)\n at HTMLSelectElement.\u003Canonymous> (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:70665)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:1594)\n at e.\u003Ccomputed>.trigger (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1:2:70640)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/email-subscribers/lite/admin/js/email-subscribers-admin.js?ver=5.7.3:3595:26)" undefined
    • > GET request to /wp-admin/admin.php?page=es_template
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-tabs&ver=6.3.1 1:28721 Uncaught ReferenceError: ig_es_campaign_editor_data is not defined

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: post notification, welcome email, autoresponder, subscription, email marketing

email-subscribers/email-subscribers.php 92% from 13 tests

The primary PHP file in "Icegram Express – Email Marketing, Newsletters and Automation for WordPress & WooCommerce" version 5.7.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 80 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin81,300 lines of code in 405 files:
LanguageFilesBlank linesComment linesLines of code
PHP33614,66925,82462,048
CSS2398346910,407
JavaScript241,7051,1228,649
SVG1901101
Markdown237090
JSON1005

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 106)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity26.98
▷ Minimum class complexity1.00
▷ Maximum class complexity293.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity106.00
Code structure
Namespaces4
Interfaces5
Traits0
Classes273
▷ Abstract classes3512.82%
▷ Concrete classes23887.18%
▷ Final classes10.42%
Methods2,883
▷ Static methods67723.48%
▷ Public methods2,57289.21%
▷ Protected methods2448.46%
▷ Private methods672.32%
Functions279
▷ Named functions26494.62%
▷ Anonymous functions155.38%
Constants240
▷ Global constants10041.67%
▷ Class constants14058.33%
▷ Public constants140100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
67 PNG files occupy 1.53MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lite/admin/images/new/image 10.png4.55KB2.54KB▼ 44.22%
lite/admin/images/five-stars.png0.30KB0.33KB0.00%
lite/admin/images/new/create-new-template.png5.70KB2.94KB▼ 48.34%
lite/admin/images/mailchimp_logo.png27.36KB16.78KB▼ 38.66%
lite/admin/images/new/overview-snippet.png17.67KB6.27KB▼ 64.53%