90% edd-drip

Code Review | Easy Digital Downloads - Drip

WordPress plugin Easy Digital Downloads - Drip scored90%from 54 tests.

About plugin

  • Plugin page: edd-drip
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.9.0
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: Nov 21, 2017
  • Number of updates: 23
  • Update frequency: every 50.6 days
  • Top authors: davidhme (91.3%)fatcatapps (13.04%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /5,084 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Easy Digital Downloads - Drip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.81 ▼6.07
Dashboard /wp-admin3.31 ▲0.0045.67 ▼5.81
Posts /wp-admin/edit.php3.36 ▲0.0047.34 ▲0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.44 ▼4.35
Media Library /wp-admin/upload.php3.23 ▲0.0037.28 ▲3.07

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Easy Digital Downloads - Drip: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.19 ▼1.191.64 ▼0.5439.15 ▼6.14
Dashboard /wp-admin2,206 ▲184.84 ▼0.07109.37 ▲5.6342.27 ▼2.95
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0141.58 ▲4.4642.16 ▲4.50
Add New Post /wp-admin/post-new.php1,534 ▼823.28 ▲5.09641.42 ▲43.8358.86 ▲8.71
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.0798.87 ▲3.7144.37 ▲2.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: marketing automation, cart abandonment, getdrip, drip, email marketing...

edd-drip/edd-drip.php Passed 13 tests

The main PHP file in "Easy Digital Downloads - Drip" ver. 1.4.1 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Integrates Easy Digital Downloads with the Drip Email Marketing Automation tool.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin455 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3122237455

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity5.00
▷ Maximum class complexity21.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods14.00%
▷ Private methods416.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin