74% woo-mailchimp-crm-perks

Code Review | Integration for WooCommerce and MailChimp

WordPress plugin Integration for WooCommerce and MailChimp scored74%from 54 tests.

About plugin

  • Plugin page: woo-mailchimp-crm...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 5, 2018
  • Latest release: Aug 10, 2023
  • Number of updates: 21
  • Update frequency: every 84.6 days
  • Top authors: CRMPerks (90.48%)asif876 (14.29%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,055 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼1.29ms] Passed 4 tests

This is a short check of server-side resources used by Integration for WooCommerce and MailChimp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2640.76 ▲0.52
Dashboard /wp-admin3.56 ▲0.2649.34 ▼1.79
Posts /wp-admin/edit.php3.67 ▲0.3253.00 ▲6.94
Add New Post /wp-admin/post-new.php6.14 ▲0.2597.48 ▼6.58
Media Library /wp-admin/upload.php3.48 ▲0.2536.68 ▲2.71

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 67 new files
Database: 2 new tables, 7 new options
New tables
wp_vxc_mailchimp_log
wp_vxc_mailchimp_accounts
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
vxc_mailchimp_pro_version
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Integration for WooCommerce and MailChimp
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.22 ▼1.321.84 ▲0.2841.18 ▲2.21
Dashboard /wp-admin2,228 ▲395.84 ▲0.9095.81 ▼19.2240.97 ▼6.38
Posts /wp-admin/edit.php2,114 ▲252.03 ▼0.0239.62 ▲2.3935.61 ▲2.18
Add New Post /wp-admin/post-new.php1,560 ▲3918.34 ▼4.82599.94 ▼64.1850.25 ▼4.65
Media Library /wp-admin/upload.php1,416 ▲254.20 ▼0.0297.37 ▼1.3843.06 ▼0.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_vxc_mailchimp_accounts
    • wp_vxc_mailchimp_log
  • Zombie WordPress options were found after uninstall: 7 options
    • vxc_mailchimp_pro_version
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/woo-mailchimp-crm-perks/templates/crm-order-box.php

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 Passed 29 tests

readme.txt Passed 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
6 plugin tags: woocommerce, woocommerce mailchimp, mailchimp for woocommerce, mailchimp, connect mailchimp to woocommerce...

woo-mailchimp-crm-perks/woo-mailchimp-crm-perks.php Passed 13 tests

This is the main PHP file of "Integration for WooCommerce and MailChimp" version 1.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Integrates WooCommerce with MailChimp allowing new orders to be automatically sent to your MailChimp account.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected6,858 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP186186576,026
SVG100640
CSS43712186
JavaScript31206

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity139.50
▷ Minimum class complexity9.00
▷ Maximum class complexity338.00
Average method complexity6.23
▷ Minimum method complexity1.00
▷ Maximum method complexity98.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods144
▷ Static methods32.08%
▷ Public methods14298.61%
▷ Protected methods00.00%
▷ Private methods21.39%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
32 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.26KB0.15KB▼ 42.37%
css/images/ui-bg_diagonals-small_50_ff3853_40x40.png0.32KB0.10KB▼ 69.70%
images/filtered.png1.47KB0.48KB▼ 67.40%
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.27KB0.18KB▼ 35.00%
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%