90% edd-payu-gateway

Code Review | Payment Gateway for PayUmoney on Easy Digital Downloads

WordPress plugin Payment Gateway for PayUmoney on Easy Digital Downloads scored90%from 54 tests.

About plugin

  • Plugin page: edd-payu-gateway
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.7
  • WordPress version: 6.3.1
  • First release: Jun 6, 2019
  • Latest release: May 8, 2021
  • Number of updates: 7
  • Update frequency: every 100.4 days
  • Top authors: wpallsupport (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /9,145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Payment Gateway for PayUmoney on Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0032.80 ▼2.42
Dashboard /wp-admin3.31 ▲0.0045.40 ▼2.48
Posts /wp-admin/edit.php3.36 ▲0.0046.10 ▼0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.54 ▼18.01
Media Library /wp-admin/upload.php3.23 ▲0.0035.00 ▲0.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Payment Gateway for PayUmoney on Easy Digital Downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.24 ▼1.074.43 ▲2.8937.88 ▼1.59
Dashboard /wp-admin2,206 ▲144.98 ▼0.00107.01 ▼1.1242.12 ▲4.68
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0839.50 ▲0.9035.90 ▲2.06
Add New Post /wp-admin/post-new.php1,533 ▲1623.02 ▲5.22658.34 ▲42.2660.13 ▼1.47
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.1199.37 ▼1.1640.70 ▼4.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: online payments, payment gateway, payuindia, payumoney, easy digital downloads...

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

The main file in "Payment Gateway for PayUmoney on Easy Digital Downloads" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin379 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP58671325
PO File1151654

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.50
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected