90% easy-upi-payment

Code Review | Easy UPI Payment

WordPress plugin Easy UPI Payment scored90%from 54 tests.

About plugin

  • Plugin page: easy-upi-payment
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 9, 2020
  • Latest release: May 11, 2020
  • Number of updates: 11
  • Update frequency: every 0.2 days
  • Top authors: noobsdotgroup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,559 total downloads

Benchmarks

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.09MB] [CPU: ▼9.08ms] Passed 4 tests

A check of server-side resources used by Easy UPI Payment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.19 ▼1.02
Dashboard /wp-admin3.41 ▲0.0655.28 ▼0.58
Posts /wp-admin/edit.php3.52 ▲0.1645.00 ▼6.99
Add New Post /wp-admin/post-new.php5.99 ▲0.1082.97 ▼27.71
Media Library /wp-admin/upload.php3.33 ▲0.1034.14 ▲0.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy UPI Payment
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.46 ▲0.091.82 ▲0.0843.05 ▲1.40
Dashboard /wp-admin2,209 ▲214.86 ▼1.02105.55 ▲1.4841.89 ▲0.44
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0634.03 ▼6.6734.74 ▼2.66
Add New Post /wp-admin/post-new.php1,514 ▼917.55 ▼5.46612.91 ▲28.5244.49 ▼2.02
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0496.33 ▼5.2442.96 ▲0.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: woocommerce upi, upi, upi payment, wordpress upi

easy-upi-payment/easy-upi-payment.php 92% from 13 tests

The primary PHP file in "Easy UPI Payment" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

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 plugin740 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP120541688
SVG20152

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity5.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
pay-through-upi.png12.75KB4.98KB▼ 60.92%