77% email-marketing-crm-for-woocommerce

Code Review | Email Marketing & CRM for WooCommerce

WordPress plugin Email Marketing & CRM for WooCommerce scored77%from 54 tests.

About plugin

  • Plugin page: email-marketing-c...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 29, 2015
  • Latest release: Jan 22, 2016
  • Number of updates: 6
  • Update frequency: every 4.2 days
  • Top authors: repupress (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,163 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.79ms] Passed 4 tests

An overview of server-side resources used by Email Marketing & CRM for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.92 ▲0.65
Dashboard /wp-admin3.33 ▲0.0351.12 ▼6.11
Posts /wp-admin/edit.php3.38 ▲0.0352.21 ▼3.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0389.70 ▼17.78
Media Library /wp-admin/upload.php3.26 ▲0.0341.16 ▲6.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Email Marketing & CRM for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.28 ▼0.271.66 ▲0.0842.67 ▲0.57
Dashboard /wp-admin2,195 ▲185.53 ▼0.1388.83 ▼1.7539.22 ▼4.90
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0634.17 ▼2.6434.57 ▼0.63
Add New Post /wp-admin/post-new.php1,534 ▲817.96 ▼5.05621.16 ▼39.5577.26 ▲32.43
Media Library /wp-admin/upload.php1,400 ▲34.19 ▼0.1298.54 ▼0.2240.42 ▼7.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/examples.php
  • 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require(): Failed opening required 'vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/examples-composer/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Contact.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Deal.class.php:3
    • > PHP Warning
      require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/examples-composer/index.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Auth.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Settings.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Group.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Tracking.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Webhook.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ActiveCampaign' not found in wp-content/plugins/email-marketing-crm-for-woocommerce/activecampaign-api-php/includes/Account.class.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

email-marketing-crm-for-woocommerce/woo-repupress-mail-crm.php 77% from 13 tests

"Email Marketing & CRM for WooCommerce" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 192 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("email-marketing-crm-for-woocommerce.php" instead of "woo-repupress-mail-crm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,872 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP264112081,791
Markdown135042
JSON20039

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.05
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods164
▷ Static methods00.00%
▷ Public methods164100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin