78% edd-helpscout

Code Review | Help Scout integration for Easy Digital Downloads

WordPress plugin Help Scout integration for Easy Digital Downloads scored 78% from 54 tests.

About plugin

  • Plugin page: edd-helpscout
  • Plugin version: 2.3.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2014
  • Latest release: Sep 21, 2023
  • Number of updates: 35
  • Update frequency: every 91.5 days
  • Top authors: webzunft (62.86%)DvanKooten (40%)

Code review

54 tests

User reviews

27 reviews

Install metrics

200+ active / 6,707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Help Scout integration for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.55 ▼9.98
Dashboard /wp-admin3.31 ▲0.0144.99 ▼6.28
Posts /wp-admin/edit.php3.36 ▲0.0045.30 ▲0.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.29 ▼14.70
Media Library /wp-admin/upload.php3.23 ▲0.0034.80 ▲2.61

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Help Scout integration for Easy Digital Downloads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.52 ▼1.235.03 ▲2.9442.30 ▼2.58
Dashboard /wp-admin2,206 ▲184.83 ▼0.04107.99 ▼1.2942.26 ▼0.25
Posts /wp-admin/edit.php2,089 ▼02.09 ▲0.0835.96 ▼4.4034.23 ▲2.10
Add New Post /wp-admin/post-new.php1,536 ▲123.18 ▼0.03664.56 ▲24.5260.38 ▲8.87
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0497.80 ▼2.8245.20 ▲2.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/edd-helpscout/views/customers.php
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: toggle in wp-content/plugins/edd-helpscout/views/licenses.php on line 1
    • > PHP Notice
      Undefined variable: customers in wp-content/plugins/edd-helpscout/views/customers.php on line 4
    • > PHP Notice
      Undefined variable: toggle in wp-content/plugins/edd-helpscout/views/orders.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/edd-helpscout/views/customers.php on line 4
    • > PHP Notice
      Undefined variable: persist in wp-content/plugins/edd-helpscout/views/subscriptions.php on line 1
    • > PHP Notice
      Undefined variable: toggle in wp-content/plugins/edd-helpscout/views/subscriptions.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/edd-helpscout/views/subscriptions.php:3
    • > PHP Notice
      Undefined variable: persist in wp-content/plugins/edd-helpscout/views/orders.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/edd-helpscout/views/licenses.php:3
    • > PHP Notice
      Undefined variable: persist in wp-content/plugins/edd-helpscout/views/licenses.php on line 1

User-side errors Passed 1 test

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

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
5 plugin tags: support, helpscout, edd, easy-digital-downloads, help scout

edd-helpscout/edd-helpscout.php 92% from 13 tests

The main PHP file in "Help Scout integration for Easy Digital Downloads" ver. 2.3.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected819 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP13167266819

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity39.00
▷ Minimum class complexity2.00
▷ Maximum class complexity111.00
Average method complexity5.10
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods836.36%
▷ Protected methods00.00%
▷ Private methods1463.64%
Functions10
▷ Named functions880.00%
▷ Anonymous functions220.00%
Constants4
▷ Global constants4100.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
No PNG files were detected