89% edd-payu-latam-gateway

Code Review | Payment Gateway for PayUmoney Latam on Easy Digital Downloads

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

About plugin

  • Plugin page: edd-payu-latam-ga...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Nov 2, 2019
  • Latest release: Oct 23, 2021
  • Number of updates: 7
  • Update frequency: every 107.1 days
  • Top authors: wpallsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.24ms] Passed 4 tests

A check of server-side resources used by Payment Gateway for PayUmoney Latam on Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.58 ▼3.99
Dashboard /wp-admin3.31 ▼0.0445.84 ▼12.24
Posts /wp-admin/edit.php3.36 ▲0.0058.47 ▲11.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.37 ▼18.77
Media Library /wp-admin/upload.php3.23 ▲0.0037.94 ▲2.03

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Payment Gateway for PayUmoney Latam on Easy Digital Downloads: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.36 ▼1.401.60 ▼0.3237.00 ▼3.68
Dashboard /wp-admin2,203 ▲155.84 ▲0.9493.28 ▼14.5936.87 ▼5.88
Posts /wp-admin/edit.php2,092 ▲32.05 ▼0.0145.40 ▲4.1543.81 ▲7.07
Add New Post /wp-admin/post-new.php1,519 ▼923.26 ▲4.95663.03 ▲33.6256.29 ▲6.44
Media Library /wp-admin/upload.php1,388 ▼34.27 ▲0.09100.79 ▼12.6042.70 ▼9.58

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

edd-payu-latam-gateway/wpas-edd-payu-latam-gateway.php 85% from 13 tests

The main PHP file in "Payment Gateway for PayUmoney Latam on Easy Digital Downloads" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("edd-payu-latam-gateway.php" instead of "wpas-edd-payu-latam-gateway.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin312 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48739259
PO File1141653

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1280.00%
▷ Protected methods00.00%
▷ Private methods320.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There are no PNG files in this plugin