Razorpay for WooCommerce 4.4.0

Does Razorpay for WooCommerce work with WordPress 6.1.1 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
The plugin could not be activated
3PHP fatal errors
6PHP warnings
5PHP deprecation warnings
No JavaScript exceptions
No resource errors
Performance

No data available.

Environment
WordPress version6.1.1
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 70,000+
WordPress.org page https://wordpress.org/plugins/woo-razorpay/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 1

Plugins ‹ Test site — WordPress

Page screenshot: Plugins ‹ Test site — WordPress
URL /wp-admin/plugins.php?plugin=woo-razorpay%2Fwoo-razorpay.php
Requested URL /wp-admin/plugins.php?action=activate&plugin=woo-razorpay%2Fwoo-razorpay.php&plugin_status=all&paged=1&s&_wpnonce=ae5d6d7bc9
Aspect after-activation
HTTP status 200
Load time 0.267 s
Memory usage 2.99 MiB
JS errors None
Resource errors None

Benchmark

No benchmark data available.

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

PHP
Language % Lines of code Comment lines Files
PHP90.3%22,83613,938300
Markdown5.5%1,39906
JavaScript2.0%495134
CSS1.0%26112
JSON0.7%18004
XML0.2%5002
XSLT0.1%32331
YAML0.1%1811
SVG0.0%501
Total 25,276 13,986 321

PHP Code Analysis | More results »

Lines of code 22,548
Total complexity 4,782
Median class complexity 2.0
Median method complexity 2.0
Most complex class WC_Razorpay
Most complex function woocommerce_razorpay_init()
Classes 266
Methods 1,148
Functions 240

Additions

No data available.

PHP Error Log 42 lines

[25-Jan-2023 12:30:18 UTC] PHP Deprecated:  Optional parameter $amount declared before required parameter $razorpayPaymentId is implicitly treated as a required parameter in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 1350
[25-Jan-2023 12:30:18 UTC] PHP Deprecated:  Optional parameter $reason declared before required parameter $razorpayPaymentId is implicitly treated as a required parameter in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 1350
[25-Jan-2023 12:30:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 2709
[25-Jan-2023 12:30:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 2709
[25-Jan-2023 12:30:18 UTC] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php on line 14
[25-Jan-2023 12:30:18 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "WOOCOMMERCE_VERSION" in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php:117
Stack trace:
#0 /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php(35): TrackPluginInstrumentation->getDefaultProperties()
#1 /wp-content/plugins/woo-razorpay/woo-razorpay.php(2716): TrackPluginInstrumentation->rzpTrackSegment()
#2 /wp-includes/class-wp-hook.php(308): razorpayPluginActivated()
#3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/includes/plugin.php(691): do_action()
#6 /wp-admin/plugins.php(58): activate_plugin()
#7 {main}
  thrown in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php on line 117
[25-Jan-2023 12:30:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 2709
[25-Jan-2023 12:30:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 2709
[25-Jan-2023 12:30:18 UTC] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php on line 14
[25-Jan-2023 12:30:18 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "WOOCOMMERCE_VERSION" in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php:117
Stack trace:
#0 /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php(35): TrackPluginInstrumentation->getDefaultProperties()
#1 /wp-content/plugins/woo-razorpay/woo-razorpay.php(2716): TrackPluginInstrumentation->rzpTrackSegment()
#2 /wp-includes/class-wp-hook.php(308): razorpayPluginActivated()
#3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/plugins.php(194): do_action()
#6 {main}
  thrown in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php on line 117
[25-Jan-2023 12:30:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 2709
[25-Jan-2023 12:30:18 UTC] PHP Warning:  Trying to access array offset on value of type bool in /wp-content/plugins/woo-razorpay/woo-razorpay.php on line 2709
[25-Jan-2023 12:30:18 UTC] PHP Deprecated:  substr(): Passing null to parameter #1 ($string) of type string is deprecated in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php on line 14
[25-Jan-2023 12:30:18 UTC] PHP Fatal error:  Uncaught Error: Undefined constant "WOOCOMMERCE_VERSION" in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php:117
Stack trace:
#0 /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php(35): TrackPluginInstrumentation->getDefaultProperties()
#1 /wp-content/plugins/woo-razorpay/woo-razorpay.php(2716): TrackPluginInstrumentation->rzpTrackSegment()
#2 /wp-includes/class-wp-hook.php(308): razorpayPluginActivated()
#3 /wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/plugins.php(194): do_action()
#6 {main}
  thrown in /wp-content/plugins/woo-razorpay/includes/plugin-instrumentation.php on line 117
See also: All tests for this plugin