89% wp-upi-payment

Code Review | Wordpress UPI QR code Payment Plugin

WordPress plugin Wordpress UPI QR code Payment Plugin scored 89% from 54 tests.

About plugin

  • Plugin page: wp-upi-payment
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2019
  • Latest release: Apr 12, 2023
  • Number of updates: 12
  • Update frequency: every 116.3 days
  • Top authors: upiplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,459 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Wordpress UPI QR code Payment Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.88 ▼8.17
Dashboard /wp-admin3.31 ▲0.0147.93 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0149.23 ▼2.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.75 ▼2.32
Media Library /wp-admin/upload.php3.23 ▲0.0138.34 ▲4.18

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordpress UPI QR code Payment Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.24 ▼0.961.96 ▼0.2238.58 ▼7.95
Dashboard /wp-admin2,206 ▲185.84 ▲0.94111.22 ▲7.0743.31 ▲0.83
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0141.97 ▲7.5436.37 ▲3.01
Add New Post /wp-admin/post-new.php1,542 ▲918.24 ▼4.85640.34 ▲28.5954.09 ▼0.57
Media Library /wp-admin/upload.php1,385 ▼34.26 ▲0.05100.51 ▲0.0443.59 ▼0.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • 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
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

wp-upi-payment/WP-UPI-payment.php 85% from 13 tests

This is the main PHP file of "Wordpress UPI QR code Payment Plugin" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 174 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-upi-payment.php" instead of "WP-UPI-payment.php")

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
No dangerous file extensions were detected62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin