74% mail-mint

Code Review | Email Marketing and Email Automation for WordPress & WooCommerce – Mail Mint

WordPress plugin Email Marketing and Email Automation for WordPress & WooCommerce – Mail Mint scored74%from 54 tests.

About plugin

  • Plugin page: mail-mint
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Dec 2, 2023
  • Number of updates: 91
  • Update frequency: every 3.3 days
  • Top authors: getwpfunnels (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

4,000+ active /58,139 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲3.59MB] [CPU: ▲27.18ms] Passed 4 tests

Server-side resources used by Email Marketing and Email Automation for WordPress & WooCommerce – Mail Mint
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.03 ▲3.5767.25 ▲26.80
Dashboard /wp-admin6.88 ▲3.5773.96 ▲26.21
Posts /wp-admin/edit.php6.99 ▲3.6475.99 ▲28.67
Add New Post /wp-admin/post-new.php11.40 ▲5.51137.96 ▲47.74
Media Library /wp-admin/upload.php6.80 ▲3.5762.88 ▲27.04
Dashboard /wp-admin/admin.php?page=mrm-admin8.35113.12
Scheduled Actions /wp-admin/tools.php?page=action-scheduler6.9863.09
Automation /wp-admin/admin.php?page=mint-mail-automation-editor8.3578.55

Server storage [IO: ▲16.83MB] [DB: ▲0.03MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 605 new files
Database: 25 new tables, 12 new options
New tables
wp_mint_campaign_emails_meta
wp_mint_contact_groups
wp_mint_forms
wp_mint_campaigns_meta
wp_mint_automation_log
wp_actionscheduler_actions
wp_mint_automations
wp_mint_contact_group_relationship
wp_mint_campaign_emails
wp_actionscheduler_logs
...
New WordPress options
action_scheduler_hybrid_store_demarkation
theysaidso_admin_options
widget_theysaidso_widget
_mrm_general_preference
widget_recent-posts
can_compress_scripts
mailmint_install_timestamp
widget_recent-comments
schema-ActionScheduler_LoggerSchema
schema-ActionScheduler_StoreSchema
...

Browser metrics Passed 4 tests

Email Marketing and Email Automation for WordPress & WooCommerce – Mail Mint: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,074 ▲31213.44 ▼0.818.14 ▲6.6035.85 ▼9.56
Dashboard /wp-admin2,378 ▲1985.54 ▼0.1299.01 ▼0.03111.93 ▲68.08
Posts /wp-admin/edit.php2,227 ▲1242.19 ▲0.2540.50 ▼0.7435.31 ▼0.97
Add New Post /wp-admin/post-new.php1,600 ▲7423.12 ▼0.08728.50 ▲28.6973.24 ▲12.32
Media Library /wp-admin/upload.php1,527 ▲1364.27 ▲0.0595.01 ▼6.6443.40 ▼1.56
Dashboard /wp-admin/admin.php?page=mrm-admin1,75918.53412.4187.92
Forms /wp-admin/admin.php?page=mrm-admin#/forms1,62614.36235.0297.04
Settings /wp-admin/admin.php?page=mrm-admin#/settings/business-info2,15814.85231.7895.00
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,3541.8729.4030.08
Contacts /wp-admin/admin.php?page=mrm-admin#/contacts1,91814.36221.8594.59
Campaigns /wp-admin/admin.php?page=mrm-admin#/campaigns1,68414.34210.80107.03
Automations /wp-admin/admin.php?page=mrm-admin#/automations1,58514.47209.6894.00
Automation /wp-admin/admin.php?page=mint-mail-automation-editor1,23712.28323.5432.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The plugin did not uninstall successfully, leaving 25 tables in the database
    • wp_mint_custom_fields
    • wp_mint_contact_meta
    • wp_mint_broadcast_email_meta
    • wp_mint_broadcast_emails
    • wp_mint_contact_groups
    • wp_mint_campaign_emails_meta
    • wp_mint_contacts
    • wp_mint_campaigns
    • wp_mint_automation_steps
    • wp_actionscheduler_claims
    • ...
  • The uninstall procedure has failed, leaving 12 options in the database
    • widget_recent-comments
    • schema-ActionScheduler_StoreSchema
    • mailmint_install_timestamp
    • can_compress_scripts
    • _mrm_general_preference
    • widget_recent-posts
    • schema-ActionScheduler_LoggerSchema
    • action_scheduler_hybrid_store_demarkation
    • theysaidso_admin_options
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 219× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Schedule_Deprecated' not found in wp-content/plugins/mail-mint/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_Schedule.php:6
    • > PHP Fatal error
      require_once(): Failed opening required 'MRM_DIR_PATHapp/Interfaces/Schema.php' (include_path='.:/usr/share/php') in wp-content/plugins/mail-mint/app/Database/Schemas/Automation/AutomationLog.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Mint\\MRM\\API\\Actions\\ActionCreator' not found in wp-content/plugins/mail-mint/app/API/Actions/Creators/Admin/Contact/ContactImportActionCreator.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Mint\\MRM\\Frontend\\API\\Controllers\\FrontendBaseController' not found in wp-content/plugins/mail-mint/app/API/Controllers/Frontend/CookieController.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/mail-mint/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
    • > PHP Fatal error
      require_once(): Failed opening required 'MRM_DIR_PATHapp/Interfaces/Schema.php' (include_path='.:/usr/share/php') in wp-content/plugins/mail-mint/app/Database/Schemas/ContactGroupPivot.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Mint\\MRM\\Admin\\API\\Routes\\AdminRoute' not found in wp-content/plugins/mail-mint/app/API/Routes/Admin/Contact/ContactImportRoute.php:24
    • > PHP Fatal error
      require_once(): Failed opening required 'MRM_DIR_PATHapp/Interfaces/Schema.php' (include_path='.:/usr/share/php') in wp-content/plugins/mail-mint/app/Database/Schemas/Automation/AutomationSteps.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'Mint\\MRM\\API\\Controllers\\BaseController' not found in wp-content/plugins/mail-mint/app/API/Controllers/Frontend/FrontendBaseController.php:20
    • > PHP Fatal error
      Trait 'Mint\\Mrm\\Internal\\Traits\\Singleton' not found in wp-content/plugins/mail-mint/app/Internal/Shortcodes/Shortcode.php on line 23

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

mail-mint/mail-mint.php 92% from 13 tests

The main file in "Email Marketing and Email Automation for WordPress & WooCommerce – Mail Mint" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin44,012 lines of code in 416 files:
LanguageFilesBlank linesComment linesLines of code
PHP3167,39321,88340,711
Sass12204621,466
CSS11257641
JavaScript7067159583
Markdown31190345
JSON300171
XML161195

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity15.85
▷ Minimum class complexity1.00
▷ Maximum class complexity334.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces46
Interfaces6
Traits1
Classes285
▷ Abstract classes269.12%
▷ Concrete classes25990.88%
▷ Final classes00.00%
Methods1,928
▷ Static methods58930.55%
▷ Public methods1,64885.48%
▷ Protected methods1588.20%
▷ Private methods1226.33%
Functions78
▷ Named functions3038.46%
▷ Anonymous functions4861.54%
Constants70
▷ Global constants3448.57%
▷ Class constants3651.43%
▷ Public constants3494.44%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
70 compressed PNG files occupy 2.65MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
app/Internal/FormBuilder/templates/img/content_image/envelope2.png5.29KB5.53KB0.00%
app/Internal/Admin/Email-Templates/images/last-minute-hero-image.png163.13KB179.73KB0.00%
app/Internal/Admin/Email-Templates/images/marketing-logo.png1.82KB1.88KB0.00%
app/Internal/FormBuilder/templates/img/subscribe.png11.46KB5.28KB▼ 53.92%
admin/assets/images/contact-profile.png1.06KB0.85KB▼ 19.45%