94% wp-webhooks-easy-digital-downloads

Code Review | WP Webhooks - Easy Digital Downloads

WordPress plugin WP Webhooks - Easy Digital Downloads scored 94% from 54 tests.

About plugin

  • Plugin page: wp-webhooks-easy-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 5.8.1
  • First release: Jul 29, 2020
  • Latest release: May 2, 2021
  • Number of updates: 4
  • Update frequency: every 69.5 days
  • Top authors: ironikus (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 551 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: ▼140.78ms] Passed 4 tests

Server-side resources used by WP Webhooks - Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.06 ▲11.17
Dashboard /wp-admin3.07 ▲0.0152.91 ▲3.30
Posts /wp-admin/edit.php3.12 ▲0.0144.71 ▼0.58
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.38 ▼570.96
Media Library /wp-admin/upload.php3.01 ▲0.0134.44 ▲5.12

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Webhooks - Easy Digital Downloads
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,704 ▲10815.89 ▲0.309.50 ▲1.3544.55 ▲0.42
Dashboard /wp-admin3,017 ▲835.99 ▼0.03157.29 ▼8.90107.19 ▼9.86
Posts /wp-admin/edit.php2,766 ▲272.71 ▼0.0170.61 ▲1.4586.39 ▼2.54
Add New Post /wp-admin/post-new.php1,698 ▲1518.45 ▼0.36437.78 ▲47.81108.14 ▼3.16
Media Library /wp-admin/upload.php1,832 ▲255.03 ▼0.00152.93 ▲4.59120.42 ▲5.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 29× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/trigger_edd_license_deactivate.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_create_download.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_update_license.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_update_discount.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_update_subscription.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_update_customer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/trigger_edd_payments.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_create_customer.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPWHPRO() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_renew_license.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-webhooks-easy-digital-downloads/includes/partials/descriptions/action_edd_update_payment.php:15

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed: The official readme.txt might help

wp-webhooks-easy-digital-downloads/wp-webhooks-edd.php 92% from 13 tests

Analyzing the main PHP file in "WP Webhooks - Easy Digital Downloads" version 1.0.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-webhooks-easy-digital-downloads.php" instead of "wp-webhooks-edd.php")

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
Success! There were no dangerous files found in this plugin7,901 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP381,6049057,899
Markdown1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity120.67
▷ Minimum class complexity34.00
▷ Maximum class complexity376.00
Average method complexity6.89
▷ Minimum method complexity1.00
▷ Maximum method complexity96.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods122
▷ Static methods00.00%
▷ Public methods122100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected