68% easy-email-integration

Code Review | Easy Email Integration - Connect forms with MailChimp, Sendinblue, GetResponse, FluentCRM, ActiveCampaign, etc using Block Editor & Elementor

WordPress plugin Easy Email Integration - Connect forms with MailChimp, Sendinblue, GetResponse, FluentCRM, ActiveCampaign, etc using Block Editor & Elementor scored68%from 54 tests.

About plugin

  • Plugin page: easy-email-integr...
  • Plugin version: 2.1.7
  • PHP compatiblity: 5.6 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0 or higher-6.3
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Sep 27, 2023
  • Number of updates: 20
  • Update frequency: every 18.9 days
  • Top authors: azizultex (70%)foysalremon (25%)wppool (15%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,064 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.35ms] Passed 4 tests

Analyzing server-side resources used by Easy Email Integration - Connect forms with MailChimp, Sendinblue, GetResponse, FluentCRM, ActiveCampaign, etc using Block Editor & Elementor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.19626.21 ▲588.21
Dashboard /wp-admin3.55 ▲0.2050.44 ▼9.31
Posts /wp-admin/edit.php3.60 ▲0.2453.90 ▲8.15
Add New Post /wp-admin/post-new.php6.05 ▲0.1782.99 ▼8.54
Media Library /wp-admin/upload.php3.40 ▲0.1739.76 ▲8.32
Leads /wp-admin/admin.php?page=easy-email-integration-subscription3.3938.67
Integrations /wp-admin/admin.php?page=easy-email-integration-integrations3.3940.92
Dashboard /wp-admin/admin.php?page=easy-email-integration3.3959.12

Server storage [IO: ▲11.67MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 1,369 new files
Database: 1 new table, 10 new options
New tables
wp_easy_email_integration_subscribers_list
New WordPress options
easy_email_integration_tags
easy_email_integration_visitors
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
easy_email_integration_integrations
easy_email_integration_forms
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Easy Email Integration - Connect forms with MailChimp, Sendinblue, GetResponse, FluentCRM, ActiveCampaign, etc using Block Editor & Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,276 ▲53022.32 ▲8.135.82 ▲4.2043.25 ▲1.85
Dashboard /wp-admin2,594 ▲40312.63 ▲6.73274.58 ▲174.2242.13 ▲2.34
Posts /wp-admin/edit.php2,532 ▲44611.35 ▲9.33108.90 ▲74.5741.45 ▲3.20
Add New Post /wp-admin/post-new.php6,323 ▲4,78819.11 ▼4.15757.49 ▲80.4437.97 ▼13.55
Media Library /wp-admin/upload.php1,671 ▲28311.08 ▲6.90147.42 ▲50.1544.88 ▼0.87
Leads /wp-admin/admin.php?page=easy-email-integration-subscription1,23812.01100.6134.87
Integrations /wp-admin/admin.php?page=easy-email-integration-integrations1,25712.0999.4238.72
Dashboard /wp-admin/admin.php?page=easy-email-integration1,45512.40126.5976.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_easy_email_integration_subscribers_list
  • Zombie WordPress options detected upon uninstall: 10 options
    • easy_email_integration_tags
    • widget_recent-comments
    • easy_email_integration_visitors
    • can_compress_scripts
    • db_upgraded
    • easy_email_integration_integrations
    • easy_email_integration_forms
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 778× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Http\\Client\\Exception\\TransferException' not found in wp-content/plugins/easy-email-integration/vendor/php-http/client-common/src/Exception/HttpClientNoMatchException.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/easy-email-integration/vendor/php-http/client-common/src/Plugin/AddPathPlugin.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Api/TasksApiTest.php:43
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Model/FileDownloadableLinkTest.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Model/GetSmsEventReportEventsTest.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Model/CreateDoiContactTest.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Model/CreateUpdateProductsTest.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Model/PipelineStageTest.php:41
    • > PHP Fatal error
      Uncaught Error: Interface 'SendinBlue\\Client\\Model\\ModelInterface' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/lib/Model/SubAccountDetailsResponsePlanInfoCredits.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/easy-email-integration/vendor/sendinblue/api-v3-sdk/test/Model/CreateListTest.php:41

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=easy-email-integration-subscription
    • > Network (severe)
    wp-json/eei/v1/tags - Failed to load resource: the server responded with a status of 404 (Not Found)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy-email-integration-subscription
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=easy-email-integration-subscription 0:0 Uncaught SyntaxError: Unexpected token '
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=easy-email-integration-subscription
    • > Network (severe)
    wp-json/eei/v1/subscribers?page=1&s=&tag= - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=easy-email-integration-integrations
    • > Network (severe)
    wp-json/eei/v1/integrations - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=easy-email-integration-integrations
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=easy-email-integration-integrations 0:0 Uncaught SyntaxError: Unexpected token '
    • > GET request to /wp-admin/admin.php?page=easy-email-integration
    • > Network (severe)
    wp-json/eei/v1/statistics - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=easy-email-integration
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=easy-email-integration 0:0 Uncaught SyntaxError: Unexpected token '

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: optin, email, email integration, lead capture, email block...

easy-email-integration/easy-email-integration.php 85% from 13 tests

The primary PHP file in "Easy Email Integration - Connect forms with MailChimp, Sendinblue, GetResponse, FluentCRM, ActiveCampaign, etc using Block Editor & Elementor" version 2.1.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires PHP: Periods and digits should be used for the required version number (ex. "7.0" instead of "5.6 or higher")
  • Requires at least: Periods and digits should be used for the required version number (ex. "7.0" instead of "5.0 or higher")

Code Analysis 97% from 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 detected196,124 lines of code in 1,337 files:
LanguageFilesBlank linesComment linesLines of code
PHP98434,390106,444153,444
JavaScript151,1011,17923,584
Markdown3195,539014,952
JSON4002,072
Sass25971,844
PO File14343107
XML21332
Bourne Shell113831
YAML40026
CSS41523
make1409

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,957)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity20.67
▷ Minimum class complexity1.00
▷ Maximum class complexity1,957.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces55
Interfaces51
Traits16
Classes893
▷ Abstract classes50.56%
▷ Concrete classes88899.44%
▷ Final classes12914.53%
Methods12,614
▷ Static methods2,23717.73%
▷ Public methods11,82893.77%
▷ Protected methods5844.63%
▷ Private methods2021.60%
Functions787
▷ Named functions516.48%
▷ Anonymous functions73693.52%
Constants620
▷ Global constants182.90%
▷ Class constants60297.10%
▷ Public constants58497.01%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/wppool/background-image.png57.63KB57.11KB▼ 0.90%
assets/img/plug.png15.56KB6.36KB▼ 59.13%