84% drip-gravity-forms

Code Review | Drip for Gravity Forms

WordPress plugin Drip for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: drip-gravity-forms
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 14, 2014
  • Latest release: Sep 7, 2023
  • Number of updates: 53
  • Update frequency: every 62.5 days
  • Top authors: getdrip (79.25%)gravityplus (22.64%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /11,444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.02ms] Passed 4 tests

Analyzing server-side resources used by Drip for Gravity Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.90 ▼0.83
Dashboard /wp-admin3.33 ▼0.0250.33 ▼14.75
Posts /wp-admin/edit.php3.38 ▲0.0252.35 ▼0.22
Add New Post /wp-admin/post-new.php5.91 ▲0.02124.40 ▲15.79
Media Library /wp-admin/upload.php3.25 ▲0.0238.44 ▼0.29

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Drip for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.78 ▲0.571.72 ▲0.0944.69 ▲4.86
Dashboard /wp-admin2,206 ▲185.84 ▲0.95111.73 ▲10.6542.82 ▲3.23
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0239.47 ▼2.0435.62 ▼0.60
Add New Post /wp-admin/post-new.php1,542 ▲218.27 ▲0.15602.11 ▼7.8453.75 ▼13.42
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.0197.29 ▼5.0843.34 ▼1.41

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/drip-gravity-forms/includes/views/plugin-page.php:120

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: email marketing, drip, gravity forms, gravityforms, marketing automation...

drip-gravity-forms/drip-gravity-forms.php Passed 13 tests

The primary PHP file in "Drip for Gravity Forms" version 2.1.2 is used by WordPress to initiate all plugin functionality
38 characters long description:
Send Gravity Forms submissions to Drip

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,273 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP77368691,273

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.17
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity2.51
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods72
▷ Static methods68.33%
▷ Public methods6488.89%
▷ Protected methods00.00%
▷ Private methods811.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants642.86%
▷ Class constants857.14%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.26MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/new-drip-choose-action.png78.57KB27.58KB▼ 64.90%
images/new-drip-contextual-menu.png84.66KB24.93KB▼ 70.55%
images/new-drip-map-fields.png105.94KB30.38KB▼ 71.32%