10% edd-sendpress

Code Review | SendPress for Easy Digital Downloads

WordPress plugin SendPress for Easy Digital Downloads scored 10% from 54 tests.

About plugin

  • Plugin page: edd-sendpress
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2014
  • Latest release: Feb 16, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: brewlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,166 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SendPress_EDD_Signup::plugin_activation() should not be called statically

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.97ms] Passed 4 tests

Server-side resources used by SendPress for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.02 ▼6.90
Dashboard /wp-admin3.33 ▲0.0343.67 ▼5.94
Posts /wp-admin/edit.php3.38 ▲0.0343.87 ▼5.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.26 ▼25.06
Media Library /wp-admin/upload.php3.25 ▲0.0335.05 ▼0.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SendPress for Easy Digital Downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.21 ▼1.081.61 ▼0.2240.07 ▼0.01
Dashboard /wp-admin2,218 ▲265.79 ▲0.86100.03 ▼15.9339.59 ▼9.40
Posts /wp-admin/edit.php2,103 ▲112.00 ▲0.0141.75 ▲0.3435.13 ▼2.87
Add New Post /wp-admin/post-new.php1,529 ▼417.79 ▼5.36592.97 ▼87.9949.12 ▼7.82
Media Library /wp-admin/upload.php1,397 ▲124.22 ▲0.01102.34 ▼10.2643.92 ▼3.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method SendPress_EDD_Signup::plugin_deactivation() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-sendpress/classes/edd-sendpress-signup.php:174
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-sendpress/classes/edd-sendpress-signup.php:174

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
10 plugin tags: easy digital downloads, e-downloads, email, digital downloads, connect...

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

The principal PHP file in "SendPress for Easy Digital Downloads" v. 1.0 is loaded by WordPress automatically on each request
75 characters long description:
Include a SendPress signup option with your Easy Digital Downloads checkout

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
Everything looks great! No dangerous files found in this plugin125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23638125

PHP code Passed 2 tests

A short review of 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.28
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin