89% gourl-bitcoin-easy-digital-downloads-edd

Code Review | GoUrl Easy Digital Downloads (EDD) - Bitcoin Altcoin Payment Gateway

WordPress plugin GoUrl Easy Digital Downloads (EDD) - Bitcoin Altcoin Payment Gateway scored89%from 54 tests.

About plugin

  • Plugin page: gourl-bitcoin-eas...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Aug 5, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 17
  • Update frequency: every 127.7 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /83,428 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.65ms] Passed 4 tests

A check of server-side resources used by GoUrl Easy Digital Downloads (EDD) - Bitcoin Altcoin Payment Gateway
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.59 ▼2.81
Dashboard /wp-admin3.43 ▲0.1353.65 ▲3.44
Posts /wp-admin/edit.php3.49 ▲0.1348.47 ▲0.16
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.36 ▼7.38
Media Library /wp-admin/upload.php3.36 ▲0.1340.12 ▲3.88

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for GoUrl Easy Digital Downloads (EDD) - Bitcoin Altcoin Payment Gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.42 ▲0.061.73 ▼0.3243.70 ▼2.78
Dashboard /wp-admin2,198 ▲215.57 ▼0.0685.83 ▼3.2040.64 ▲1.51
Posts /wp-admin/edit.php2,100 ▼01.98 ▲0.0233.00 ▼2.4134.74 ▼3.65
Add New Post /wp-admin/post-new.php1,528 ▲223.03 ▼0.67654.55 ▼41.6756.12 ▼4.31
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0196.51 ▼5.6740.68 ▼2.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 36 tag instead of maximum 10
  • Screenshots: These screenshots do not have images: #1 (Bitcoin/Altcoin Payments Gateway for Easy Digital Downloads - Options), #2 (Easy Digital Downloads Checkout Page), #3 (Easy Digital Downloads Bitcoin Payment Page), #4 (Bitcoin Payment Received Successfully), #5 (Easy Digital Downloads Edit Order Page), #6 (Optional - Display or use product prices in Bitcoin/Altcoin directly)
The official readme.txt is a good inspiration

gourl-bitcoin-easy-digital-downloads-edd/gourl-edd.php 85% from 13 tests

This is the main PHP file of "GoUrl Easy Digital Downloads (EDD) - Bitcoin Altcoin Payment Gateway" version 1.0.2, 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:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 580 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gourl-bitcoin-easy-digital-downloads-edd.php" instead of "gourl-edd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin947 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File2118127479
PHP115899403
Markdown237057
HTML1208

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity77.00
▷ Minimum class complexity77.00
▷ Maximum class complexity77.00
Average method complexity7.91
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
7 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png45.98KB43.76KB▼ 4.84%
screenshot-5.png41.06KB40.06KB▼ 2.44%
screenshot-6.png59.15KB58.44KB▼ 1.19%
images/gourl.png6.74KB2.83KB▼ 58.06%
screenshot-4.png34.11KB32.68KB▼ 4.21%