100% edd-ytaskpayments-gateway

Code Review | Easy Digital download yTask Payment Gateway

WordPress plugin Easy Digital download yTask Payment Gateway scored 100% from 53 tests.

About plugin

  • Plugin page: edd-ytaskpayments...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-5.8.1
  • WordPress version: 5.8.1
  • First release: Sep 22, 2021
  • Latest release: Sep 22, 2021
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: opskill (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 55 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼262.85ms] Passed 4 tests

Server-side resources used by Easy Digital download yTask Payment Gateway
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0633.67 ▼0.57
Dashboard /wp-admin3.12 ▲0.0744.47 ▲6.52
Posts /wp-admin/edit.php3.17 ▲0.0743.94 ▲0.20
Add New Post /wp-admin/post-new.php5.48 ▲0.0591.36 ▼1,045.86
Media Library /wp-admin/upload.php3.06 ▲0.0634.43 ▼5.16

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Digital download yTask Payment Gateway
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,649 ▲6715.98 ▲0.517.96 ▲1.1647.38 ▲0.13
Dashboard /wp-admin2,927 ▲745.86 ▲0.02146.32 ▲10.68105.89 ▲0.84
Posts /wp-admin/edit.php2,703 ▼32.69 ▲0.0065.13 ▼5.2696.05 ▼0.99
Add New Post /wp-admin/post-new.php1,481 ▼17518.50 ▲0.09362.45 ▼15.86109.02 ▼1.71
Media Library /wp-admin/upload.php1,775 ▲35.02 ▼0.00154.85 ▲6.33107.35 ▼13.73

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 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
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, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: easy digital downloads, ecommerce, opskill, edd, ytask...

edd-ytaskpayments-gateway/ytaskpayments-edd-gateway.php 92% from 13 tests

The main PHP file in "Easy Digital download yTask Payment Gateway" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("edd-ytaskpayments-gateway.php" instead of "ytaskpayments-edd-gateway.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin236 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods220.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin