89% woo-upi-payment

Code Review | Kiasa UPI QR Code Payment Plugin for WooCommerce

WordPress plugin Kiasa UPI QR Code Payment Plugin for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: woo-upi-payment
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Oct 11, 2018
  • Latest release: Apr 12, 2023
  • Number of updates: 53
  • Update frequency: every 31.1 days
  • Top authors: upiplugin (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

900+ active / 23,085 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.24ms] Passed 4 tests

Server-side resources used by Kiasa UPI QR Code Payment Plugin for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.63 ▲0.46
Dashboard /wp-admin3.34 ▲0.0343.77 ▼5.48
Posts /wp-admin/edit.php3.39 ▲0.0346.69 ▲0.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.73 ▼9.93
Media Library /wp-admin/upload.php3.26 ▲0.0334.07 ▼1.62

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Kiasa UPI QR Code Payment Plugin for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.061.76 ▼0.1041.47 ▼3.96
Dashboard /wp-admin2,206 ▲155.90 ▲1.00109.39 ▲8.0536.43 ▼5.35
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0635.35 ▲0.2731.57 ▼3.52
Add New Post /wp-admin/post-new.php1,533 ▲1923.10 ▲5.61673.65 ▲11.8656.01 ▲0.13
Media Library /wp-admin/upload.php1,385 ▼04.15 ▼0.0896.06 ▼7.5845.02 ▼3.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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 just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: payment gateway, india, payments, ecommerce, unified payments interface...

woo-upi-payment/woocommerce-UPI-payment.php 85% from 13 tests

Analyzing the main PHP file in "Kiasa UPI QR Code Payment Plugin for WooCommerce" version 1.2
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-upi-payment.php" instead of "woocommerce-UPI-payment.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin145 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 images were found in this plugin