94% drip

Code Review | Drip for WooCommerce

WordPress plugin Drip for WooCommerce scored 94% from 53 tests.

About plugin

  • Plugin page: drip
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 5.8.1
  • First release: Mar 11, 2020
  • Latest release: Aug 3, 2021
  • Number of updates: 18
  • Update frequency: every 29.0 days
  • Top authors: getdrip (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

1,000+ active / 6,177 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Drip for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.0033.90 ▲7.30
Dashboard /wp-admin3.06 ▲0.0144.60 ▲2.68
Posts /wp-admin/edit.php3.11 ▲0.0045.01 ▲2.89
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.19 ▼1,114.79
Media Library /wp-admin/upload.php3.00 ▼0.0130.69 ▼5.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Drip for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲9615.87 ▲0.368.46 ▼1.0749.54 ▲2.38
Dashboard /wp-admin2,995 ▲1426.18 ▲0.32133.00 ▼10.47103.35 ▲1.96
Posts /wp-admin/edit.php2,706 ▼02.69 ▲0.0063.55 ▼2.1389.10 ▲6.22
Add New Post /wp-admin/post-new.php1,653 ▼20018.63 ▼0.41361.72 ▲5.15105.28 ▼6.02
Media Library /wp-admin/upload.php1,775 ▲35.00 ▼0.00152.06 ▲13.71110.17 ▼2.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
  • 13× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-version.php
    • > /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-plugin-view.php
    • > /wp-content/plugins/drip/drip.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-settings.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-customer-identify.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-snippet.php
    • > /wp-content/plugins/drip/src/class-drip-woocommerce-cart-events.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: drip, ecommerce, emailmarketing, emailmarketingautomation, woocommerce...

drip/drip.php 92% from 13 tests

The main file in "Drip for WooCommerce" v. 1.1.2 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:
  • Requires at least: The required version number did not 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 check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin551 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP13122436533
JavaScript20018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.55
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.74
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods53
▷ Static methods2037.74%
▷ Public methods3158.49%
▷ Protected methods00.00%
▷ Private methods2241.51%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.21MB with 0.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png271.84KB61.57KB▼ 77.35%
assets/screenshot-4.png173.38KB52.70KB▼ 69.60%
assets/screenshot-5.png134.56KB41.41KB▼ 69.23%
assets/screenshot-2.png143.06KB42.57KB▼ 70.24%
assets/screenshot-3.png145.77KB34.03KB▼ 76.65%