90% edd-disable-purchase-receipt

Code Review | EDD Disable Purchase Receipt

WordPress plugin EDD Disable Purchase Receipt scored 90% from 54 tests.

About plugin

  • Plugin page: edd-disable-purch...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2013
  • Latest release: Sep 13, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: sumobi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,726 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by EDD Disable Purchase Receipt
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.58 ▲0.07
Dashboard /wp-admin3.31 ▲0.0143.99 ▼4.40
Posts /wp-admin/edit.php3.36 ▲0.0146.22 ▲0.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.46 ▼5.70
Media Library /wp-admin/upload.php3.24 ▲0.0135.18 ▼0.24

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

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

Browser metrics Passed 4 tests

Checking browser requirements for EDD Disable Purchase Receipt
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.17 ▼1.201.94 ▲0.3940.88 ▼2.79
Dashboard /wp-admin2,206 ▲215.86 ▼0.02104.85 ▼4.6139.72 ▼1.92
Posts /wp-admin/edit.php2,092 ▲242.02 ▼0.0052.64 ▲17.9051.75 ▲18.37
Add New Post /wp-admin/post-new.php1,536 ▲1723.15 ▼0.17612.92 ▼39.7853.61 ▼2.54
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0496.16 ▼1.2941.50 ▲0.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

edd-disable-purchase-receipt/edd-disable-purchase-receipt.php Passed 13 tests

The entry point to "EDD Disable Purchase Receipt" version 1.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
Disables the standard purchase receipt sent to the customer

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
Everything looks great! No dangerous files found in this plugin30 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1213830

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods125.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin