89% easy-digital-downloads-coinpayments-gateway

Code Review | Easy Digital Downloads - CoinPayments Gateway

WordPress plugin Easy Digital Downloads - CoinPayments Gateway scored89%from 54 tests.

About plugin

  • Plugin page: easy-digital-down...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2013
  • Latest release: May 7, 2014
  • Number of updates: 3
  • Update frequency: every 52.0 days
  • Top authors: ghost1227 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,631 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.20ms] Passed 4 tests

Analyzing server-side resources used by Easy Digital Downloads - CoinPayments Gateway
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.68 ▼3.79
Dashboard /wp-admin3.36 ▲0.0542.65 ▼11.60
Posts /wp-admin/edit.php3.41 ▲0.0548.97 ▲1.77
Add New Post /wp-admin/post-new.php5.94 ▲0.0579.76 ▼22.89
Media Library /wp-admin/upload.php3.28 ▲0.0533.37 ▼2.53

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Digital Downloads - CoinPayments Gateway
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.011.58 ▼0.1635.94 ▼7.09
Dashboard /wp-admin2,198 ▲215.63 ▲0.0295.34 ▲2.1642.31 ▼3.53
Posts /wp-admin/edit.php2,100 ▼02.11 ▲0.1436.26 ▼0.2232.87 ▼3.73
Add New Post /wp-admin/post-new.php1,529 ▼523.39 ▲5.25661.77 ▲39.7166.80 ▼9.79
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0193.98 ▼0.9739.82 ▼2.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: edd, ecommerce, digital downloads, gateway, easy digital downloads

easy-digital-downloads-coinpayments-gateway/edd-coinpayments-gateway.php 85% from 13 tests

The main PHP file in "Easy Digital Downloads - CoinPayments Gateway" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-digital-downloads-coinpayments-gateway.php" instead of "edd-coinpayments-gateway.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 226 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected230 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP179119230

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin