89% payu-india

Code Review | PayU India - Official Plugin

WordPress plugin PayU India - Official Plugin scored89%from 54 tests.

About plugin

  • Plugin page: payu-india
  • Plugin version: 3.8.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 10, 2021
  • Latest release: Jun 24, 2021
  • Number of updates: 21
  • Update frequency: every 6.5 days
  • Top authors: payuplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

7,000+ active /36,824 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.84ms] Passed 4 tests

A check of server-side resources used by PayU India - Official Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.07 ▼4.36
Dashboard /wp-admin3.43 ▲0.0847.12 ▼17.08
Posts /wp-admin/edit.php3.48 ▲0.1245.70 ▼0.09
Add New Post /wp-admin/post-new.php6.01 ▲0.1282.63 ▼1.83
Media Library /wp-admin/upload.php3.35 ▲0.1235.44 ▲0.65

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by PayU India - Official Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.154.52 ▲2.7641.77 ▼2.21
Dashboard /wp-admin2,203 ▲126.06 ▲1.14106.02 ▲0.9239.86 ▼1.23
Posts /wp-admin/edit.php2,071 ▼212.01 ▲0.0434.39 ▼2.7634.79 ▼0.21
Add New Post /wp-admin/post-new.php1,514 ▼517.68 ▼5.47699.08 ▲90.4352.21 ▲0.75
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.0295.38 ▼7.7244.91 ▲2.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
  • Contributors: The plugin contributors field is missing
  • Contributors: No tags were detected
The official readme.txt might help

payu-india/index.php 92% from 13 tests

Analyzing the main PHP file in "PayU India - Official Plugin" version 3.8.2
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("payu-india.php" instead of "index.php")

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
There were no executable files found in this plugin660 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19167660

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity7.45
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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