Benchmarks
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 gracefully, with no errors
Server metrics [RAM: ▲1.38MB] [CPU: ▲6.54ms] Passed 4 tests
A check of server-side resources used by Razorpay for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.85 ▲1.38 | 46.16 ▲2.75 |
Dashboard /wp-admin | 4.68 ▲1.38 | 54.45 ▲3.46 |
Posts /wp-admin/edit.php | 4.79 ▲1.44 | 55.58 ▲10.15 |
Add New Post /wp-admin/post-new.php | 7.29 ▲1.40 | 99.22 ▲10.34 |
Media Library /wp-admin/upload.php | 4.60 ▲1.37 | 43.53 ▲9.81 |
Server storage [IO: ▲3.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 432 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Razorpay for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.06 | 1.74 ▲0.19 | 37.21 ▼9.96 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▲0.03 | 91.62 ▼8.98 | 40.51 ▼1.21 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.95 ▼0.03 | 39.79 ▲3.51 | 34.59 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▼0.00 | 634.38 ▲7.35 | 55.63 ▲9.40 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.04 | 93.48 ▼7.37 | 42.10 ▲0.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-razorpay/tests/phpunit/bootstrap.php
- > /wp-content/plugins/woo-razorpay/templates/rzp-cart-checkout-btn.php
- > /wp-content/plugins/woo-razorpay/tests/phpunit/includes/bootstrap.php
- > /wp-content/plugins/woo-razorpay/templates/rzp-mini-checkout-btn.php
- 257× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status412.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/woo-razorpay/tests/phpunit/tests/test-constants.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/403.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/woo-razorpay/tests/phpunit/tests/test-magic-api.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/woo-razorpay/templates/rzp-pdp-checkout-btn.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Proxy' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-1.6.1/library/Requests/Proxy/HTTP.php:19
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status511.php:21
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-1.6.1/library/Requests/Exception/HTTP/400.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status407.php:17
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/woo-razorpay/razorpay-sdk/libs/Requests-2.0.4/src/Exception/Http/Status511.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: india, cross border, ecommerce, payments, curlec...
woo-razorpay/woo-razorpay.php Passed 13 tests
The main file in "Razorpay for WooCommerce" v. 4.5.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
52 characters long description:
Razorpay Payment Gateway Integration for WooCommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin32,405 lines of code in 358 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 332 | 7,133 | 16,130 | 29,082 |
Markdown | 7 | 810 | 0 | 2,130 |
JavaScript | 6 | 118 | 26 | 558 |
JSON | 5 | 0 | 0 | 268 |
CSS | 3 | 10 | 7 | 262 |
XML | 2 | 2 | 0 | 50 |
XSLT | 1 | 11 | 33 | 32 |
YAML | 1 | 2 | 1 | 18 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 256.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 342 | |
▷ Abstract classes | 11 | 3.22% |
▷ Concrete classes | 331 | 96.78% |
▷ Final classes | 90 | 27.19% |
Methods | 1,555 | |
▷ Static methods | 261 | 16.78% |
▷ Public methods | 1,304 | 83.86% |
▷ Protected methods | 209 | 13.44% |
▷ Private methods | 42 | 2.70% |
Functions | 322 | |
▷ Named functions | 258 | 80.12% |
▷ Anonymous functions | 64 | 19.88% |
Constants | 258 | |
▷ Global constants | 51 | 19.77% |
▷ Class constants | 207 | 80.23% |
▷ Public constants | 205 | 99.03% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/payment.png | 7.40KB | 7.69KB | 0.00% |
public/images/payment.png | 7.40KB | 7.69KB | 0.00% |
images/logo.png | 6.57KB | 3.03KB | ▼ 53.81% |