84% drip

Code Review | Drip - Marketing Automation for WooCommerce

WordPress plugin Drip - Marketing Automation for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: drip
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2020
  • Latest release: Oct 16, 2023
  • Number of updates: 33
  • Update frequency: every 40.2 days
  • Top authors: getdrip (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /15,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.57ms] Passed 4 tests

A check of server-side resources used by Drip - Marketing Automation for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0031.30 ▼8.12
Dashboard /wp-admin3.31 ▲0.0044.02 ▼3.82
Posts /wp-admin/edit.php3.36 ▲0.0044.81 ▼2.13
Add New Post /wp-admin/post-new.php5.89 ▲0.0076.32 ▼8.20
Media Library /wp-admin/upload.php3.23 ▲0.0034.92 ▲4.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Drip - Marketing Automation for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.67 ▲0.321.70 ▲0.0238.62 ▼5.26
Dashboard /wp-admin2,192 ▲155.51 ▼0.1586.94 ▼0.5637.32 ▲0.22
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0334.63 ▲0.3834.45 ▼1.83
Add New Post /wp-admin/post-new.php1,528 ▲223.26 ▲0.04680.30 ▲6.6257.71 ▼3.47
Media Library /wp-admin/upload.php1,403 ▼04.14 ▼0.0995.02 ▼5.7145.02 ▲0.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 13× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-checkout-marketing-confirmation.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-cart-event-product.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-cookie-parser.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-cart-event.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-settings.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-cart-events.php
    • > /wp-content/plugins/drip/src/snippet.js.php
    • > /wp-content/plugins/drip/drip.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-customer-identify.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-plugin-view.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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: emailmarketingautomation, emailmarketing, drip, marketingautomation, ecommerce...

drip/drip.php 92% from 13 tests

The entry point to "Drip - Marketing Automation for WooCommerce" version 1.1.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "3.0")

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
There were no executable files found in this plugin583 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13125440565
JavaScript20018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.73
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods55
▷ Static methods2036.36%
▷ Public methods3360.00%
▷ Protected methods00.00%
▷ Private methods2240.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected