89% aurpay-crypto-payment-for-easy-digital-downloads

Code Review | AURPAY Easy Digital Downloads (EDD) – Bitcoin Crypto Payment Gateway

WordPress plugin AURPAY Easy Digital Downloads (EDD) – Bitcoin Crypto Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: aurpay-crypto-pay...
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Oct 4, 2022
  • Latest release: Nov 9, 2023
  • Number of updates: 19
  • Update frequency: every 21.1 days
  • Top authors: aurtech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,300 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.16ms] Passed 4 tests

Server-side resources used by AURPAY Easy Digital Downloads (EDD) – Bitcoin Crypto Payment Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1040.09 ▼1.16
Dashboard /wp-admin3.40 ▲0.1047.96 ▼4.67
Posts /wp-admin/edit.php3.51 ▲0.1646.22 ▲1.39
Add New Post /wp-admin/post-new.php5.98 ▲0.0981.85 ▼22.24
Media Library /wp-admin/upload.php3.32 ▲0.0933.20 ▼0.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

AURPAY Easy Digital Downloads (EDD) – Bitcoin Crypto Payment Gateway: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.35 ▲0.042.11 ▲0.4941.84 ▼2.87
Dashboard /wp-admin2,198 ▲215.63 ▼0.0288.64 ▼2.5738.15 ▼4.30
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0233.06 ▼2.3236.46 ▲2.63
Add New Post /wp-admin/post-new.php1,526 ▼922.84 ▼2.24669.82 ▲18.1058.59 ▼3.48
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0497.69 ▲1.6242.42 ▲2.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 38 tag instead of maximum 10
You can take inspiration from this readme.txt

aurpay-crypto-payment-for-easy-digital-downloads/aurpay-edd.php 77% from 13 tests

This is the main PHP file of "AURPAY Easy Digital Downloads (EDD) – Bitcoin Crypto Payment Gateway" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("aurpay-crypto-payment-for-easy-digital-downloads.php" instead of "aurpay-edd.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin855 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.54MB with 0.40MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/aurpay.png18.63KB6.26KB▼ 66.38%
assets/images/img_aurpay-2x.png391.65KB89.78KB▼ 77.08%
assets/images/img_aurpay.png112.80KB28.03KB▼ 75.15%
assets/images/img_logo_1.png33.67KB8.47KB▼ 74.85%