Razorpay Subscriptions for WooCommerce

Allows you to use Razorpay payment gateway with the WooCommerce Subscriptions plugin. This requires Subscriptions feature to be enabled for your accou …

v2.4.2RazorpayUpdated Added 600 installs66% rating0% support resolved
44
Score
28
Errors
35
Warnings
+0
Change

Category Scores

Security10
Repo83
Performance100
Maintainability79

Issues to Review

Prioritized issue groups from the latest Plugin Check scan

63 findings

Maintainability

28

8 issue groups

Security

23

6 issue groups

I18n

8

4 issue groups

Repo Compliance

4

4 issue groups

WARNINGMaintainabilityerror log error logerror_log() found. Debug code should not normally be used in production.13
Category
Maintainability
Occurrences
13
Severity
warning

Sample message

error_log() found. Debug code should not normally be used in production.

ERRORSecurityException output is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"RAZORPAY ERROR: Subscription creation failed with the following message: '$message'"'.13
Category
Security
Occurrences
13
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '"RAZORPAY ERROR: Subscription creation failed with the following message: '$message'"'.

WARNINGMaintainabilityNon-prefixed functionFunctions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "rzpSubscriptionErrorLog".5
Category
Maintainability
Occurrences
5
Severity
warning

Sample message

Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "rzpSubscriptionErrorLog".

WARNINGMaintainabilityNon-prefixed classClasses declared by a theme/plugin should start with the theme/plugin prefix. Found: "RZP_Subscription_Webhook".4
Category
Maintainability
Occurrences
4
Severity
warning

Sample message

Classes declared by a theme/plugin should start with the theme/plugin prefix. Found: "RZP_Subscription_Webhook".

ERRORI18nNon Singular String Literal TextThe $text parameter must be a single text string literal. Found: $e->getMessage()3
Category
I18n
Occurrences
3
Severity
error

Sample message

The $text parameter must be a single text string literal. Found: $e->getMessage()

ERRORI18nText Domain MismatchMismatched text domain. Expected 'razorpay-subscriptions-for-woocommerce' but got 'woocommerce-subscription'.3
Category
I18n
Occurrences
3
Severity
error

Sample message

Mismatched text domain. Expected 'razorpay-subscriptions-for-woocommerce' but got 'woocommerce-subscription'.

WARNINGMaintainabilityNon-prefixed global variableGlobal variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$pluginRoot".2
Category
Maintainability
Occurrences
2
Severity
warning

Sample message

Global variables defined by a theme/plugin should start with the theme/plugin prefix. Found: "$pluginRoot".

ERRORSecurityOutput is not escapedAll output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.2
Category
Security
Occurrences
2
Severity
error

Sample message

All output should be run through an escaping function (see the Security sections in the WordPress Developer Handbooks), found '__'.

WARNINGSecurityMissing nonce verificationProcessing form data without nonce verification.2
Category
Security
Occurrences
2
Severity
warning

Sample message

Processing form data without nonce verification.

WARNINGSecurityInput is not sanitizedDetected usage of a non-sanitized input variable: $_POST[self::RAZORPAY_PAYMENT_ID]2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a non-sanitized input variable: $_POST[self::RAZORPAY_PAYMENT_ID]

Show 12 more
WARNINGSecurityInput is not validated2
Category
Security
Occurrences
2
Severity
warning

Sample message

Detected usage of a possibly undefined superglobal array index: $_POST[self::RAZORPAY_PAYMENT_ID]. Check that the array index exists before using it.

WARNINGSecurityRequest data is not unslashed2
Category
Security
Occurrences
2
Severity
warning

Sample message

$_POST[self::RAZORPAY_PAYMENT_ID] not unslashed before sanitization. Use wp_unslash() or similar

ERRORMaintainabilitydate date1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.

WARNINGMaintainabilityMissing Version1
Category
Maintainability
Occurrences
1
Severity
warning

Sample message

Resource version not set in call to wp_register_script(). This means new versions of the script may not always be loaded due to browser caching.

ERRORI18nMissing Arg Domain1
Category
I18n
Occurrences
1
Severity
error

Sample message

Missing $domain parameter in function call to __().

ERRORI18nNon Singular String Literal Domain1
Category
I18n
Occurrences
1
Severity
error

Sample message

The $domain parameter must be a single text string literal. Found: $this->id

ERRORMaintainabilityMissing direct file access protection1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

PHP file should prevent direct access. Add a check like: if ( ! defined( 'ABSPATH' ) ) exit;

ERRORRepo Complianceoutdated tested upto header1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Tested up to: 6.9 < 7.0. The "Tested up to" value in your plugin is not set to the current version of WordPress. This means your plugin will not show up in searches, as we require plugins to be compatible and documented as tested up to the most recent version of WordPress.

ERRORRepo Complianceplugin header no license1
Category
Repo Compliance
Occurrences
1
Severity
error

Sample message

Missing "License" in Plugin Header. Please update your Plugin Header with a valid GPLv2 (or later) compatible license.

WARNINGRepo Compliancereadme parser warnings too many tags1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

One or more tags were ignored. Please limit your plugin to 5 tags.

WARNINGRepo Compliancereadme parser warnings trimmed short description1
Category
Repo Compliance
Occurrences
1
Severity
warning

Sample message

The "Short Description" section is too long and was truncated. A maximum of 150 characters is supported.

ERRORMaintainabilitywp function not compatible with requires wp1
Category
Maintainability
Occurrences
1
Severity
error

Sample message

Function "wp_set_script_translations()" requires WordPress 5.0.0, but your plugin minimum supported version is WordPress 3.9.2.

External Connections

Potential connections found in static code analysis.

2 domains

Outbound calls

3

External assets

0

Incoming endpoints

1

Notable Domains

razorpay.com2 · outbound
docs.razorpay.com1 · outbound

External Asset Domains

No external asset domains detected.

Incoming Endpoints

admin_post_nopriv_rzp_wc_webhookpublic

admin_post

Score History

First score snapshot

v2.4.2

44

Latest

Findings
63
Errors
28
Warnings
35
Check
2.0.0

Relationship Map

Author, categories, issues, domains, and nearby plugins.

31 nodes

Related Plugins