99% ezdefi-easy-digital-download

Code Review | ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads

WordPress plugin ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads scored 99% from 54 tests.

About plugin

  • Plugin page: ezdefi-easy-digit...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4.1
  • WordPress version: 5.9.2
  • First release: Jan 7, 2020
  • Latest release: May 23, 2020
  • Number of updates: 25
  • Update frequency: every 5.5 days
  • Top authors: flyforever123 (92%)ezdefi (12%)

Code review

54 tests

User reviews

12 reviews

Install metrics

20+ active / 813 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.4256.60 ▲34.74
Dashboard /wp-admin3.43 ▲0.0334.39 ▲1.37
Posts /wp-admin/edit.php3.67 ▲0.0338.33 ▼7.86
Add New Post /wp-admin/post-new.php6.94 ▼0.0697.75 ▼1,168.12
Media Library /wp-admin/upload.php3.32 ▲0.0225.89 ▼4.81

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,794 ▲7216.23 ▲0.476.16 ▲0.623.03 ▲0.63
Dashboard /wp-admin2,895 ▲376.14 ▼0.03118.75 ▼16.08157.80 ▼2.56
Posts /wp-admin/edit.php2,691 ▲33.23 ▼0.0064.43 ▼1.67137.79 ▼3.71
Add New Post /wp-admin/post-new.php1,661 ▼5016.09 ▼4.63425.27 ▼24.62149.01 ▼13.63
Media Library /wp-admin/upload.php1,698 ▼05.45 ▼0.01144.77 ▲1.36184.94 ▼6.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

ezdefi-easy-digital-download/edd-ezdefi.php 77% from 13 tests

The main PHP script in "ezDeFi - Bitcoin, Ethereum and Cryptocurrencies Payment Gateway for Easy Digital Downloads" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 90 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("ezdefi-easy-digital-download.php" instead of "edd-ezdefi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,116 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP174411001,604
JavaScript82081261,308
Sass41100604
CSS564599
SVG1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.08
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods90
▷ Static methods44.44%
▷ Public methods8291.11%
▷ Protected methods88.89%
▷ Private methods00.00%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
6 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/bitcoin-icon.png4.20KB1.50KB▼ 64.26%
assets/android-icon.png17.00KB8.90KB▼ 47.62%
assets/ezdefi-icon.png13.51KB6.54KB▼ 51.56%
assets/ios-icon.png6.26KB4.36KB▼ 30.33%
assets/newsd-icon.png8.85KB3.07KB▼ 65.28%