67% creative-mail-by-constant-contact

Code Review | Creative Mail – Easier WordPress & WooCommerce Email Marketing

WordPress plugin Creative Mail – Easier WordPress & WooCommerce Email Marketing scored67%from 54 tests.

About plugin

  • Plugin page: creative-mail-by-...
  • Plugin version: 1.6.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-6.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2020
  • Latest release: Jan 25, 2023
  • Number of updates: 140
  • Update frequency: every 6.8 days
  • Top authors: constantcontact (100%)

Code review

54 tests

User reviews

373 reviews

Install metrics

700,000+ active /19,374,367 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.24MB] [CPU: ▲5.02ms] Passed 4 tests

Analyzing server-side resources used by Creative Mail – Easier WordPress & WooCommerce Email Marketing
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.74 ▲1.2748.33 ▲6.34
Dashboard /wp-admin4.58 ▲1.2853.89 ▲2.08
Posts /wp-admin/edit.php4.61 ▲1.2556.89 ▲8.74
Add New Post /wp-admin/post-new.php7.13 ▲1.2588.87 ▲2.92
Media Library /wp-admin/upload.php4.42 ▲1.1949.47 ▲14.74
Creative Mail /wp-admin/admin.php?page=creativemail4.3939.96
Settings /wp-admin/admin.php?page=creativemail_settings4.4146.59

Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 360 new files
Database: 1 new table, 12 new options
New tables
wp_ce4wp_contacts
New WordPress options
can_compress_scripts
ce4wp_handshake_expiration
widget_theysaidso_widget
theysaidso_admin_options
ce4wp_contacts_db_version
ce4wp_handshake_token
db_upgraded
widget_recent-comments
widget_recent-posts
ce4wp_activated
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Creative Mail – Easier WordPress & WooCommerce Email Marketing
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲31014.90 ▲0.635.24 ▲3.4440.06 ▼4.97
Dashboard /wp-admin2,350 ▲1765.57 ▼0.03105.76 ▲3.7762.58 ▲21.60
Posts /wp-admin/edit.php2,170 ▲672.70 ▲0.7553.39 ▲10.1837.19 ▼0.55
Add New Post /wp-admin/post-new.php6,403 ▲4,86428.81 ▲5.83877.70 ▲209.5235.52 ▼17.02
Media Library /wp-admin/upload.php1,458 ▲615.03 ▲0.82103.82 ▲3.4440.15 ▼6.09
Creative Mail /wp-admin/admin.php?page=creativemail1,0692.4537.5864.65
Settings /wp-admin/admin.php?page=creativemail_settings1,0982.5435.9235.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 1 table
    • wp_ce4wp_contacts
  • Zombie WordPress options detected upon uninstall: 10 options
    • ce4wp_handshake_expiration
    • can_compress_scripts
    • ce4wp_handshake_token
    • theysaidso_admin_options
    • db_upgraded
    • ce4wp_instance_uuid
    • ce4wp_contacts_db_version
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/creative-mail-by-constant-contact/src/views/admin-dashboard-widget/divider.php
  • 151× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/creative-mail-by-constant-contact/src/views/admin-feedback-notice/sync-disabled.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Processor/HostnameProcessor.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php:19
    • > PHP Fatal error
      Uncaught UnexpectedValueException: creating archive "wp-content/plugins/creative-mail-by-constant-contact/vendor/paragonie/random_compat/dist/random_compat.phar" disabled by the php.ini setting phar.readonly in /var/www/wordpress/wp-content/plugins/creative-mail-by-constant-contact/vendor/paragonie/random_compat/other/build_phar.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Processor\\ProcessorInterface' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Processor/GitProcessor.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/creative-mail-by-constant-contact/src/Managers/Logs/DatadogHandler.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractSyslogHandler' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/creative-mail-by-constant-contact/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt might help

creative-mail-by-constant-contact/creative-mail-plugin.php 77% from 13 tests

The main PHP script in "Creative Mail – Easier WordPress & WooCommerce Email Marketing" version 1.6.7 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.9" instead of "3.6.0")
  • Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("creative-mail-by-constant-contact.php" instead of "creative-mail-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected25,485 lines of code in 336 files:
LanguageFilesBlank linesComment linesLines of code
PHP2654,18310,51018,717
Markdown1993802,655
CSS417181,307
JavaScript17511251,190
JSON1000842
SVG1600628
Sass27098
make19426
XML10019
Bourne Shell1203

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.72
▷ Minimum class complexity1.00
▷ Maximum class complexity110.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces38
Interfaces10
Traits5
Classes213
▷ Abstract classes115.16%
▷ Concrete classes20294.84%
▷ Final classes4019.80%
Methods1,280
▷ Static methods15812.34%
▷ Public methods91771.64%
▷ Protected methods19715.39%
▷ Private methods16612.97%
Functions50
▷ Named functions612.00%
▷ Anonymous functions4488.00%
Constants200
▷ Global constants3919.50%
▷ Class constants16180.50%
▷ Public constants13382.61%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.19MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-small.png0.41KB0.35KB▼ 12.77%
assets/images/airplane-folding.png10.93KB5.63KB▼ 48.45%
assets/images/woocommerce-banners/active-cm-wc.png30.80KB12.04KB▼ 60.90%
assets/images/admin-dashboard-widget/creative-mail.png111.13KB27.29KB▼ 75.44%
assets/images/woocommerce-banners/setup-cm-wc.png13.86KB6.27KB▼ 54.78%