Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.61ms] Passed 4 tests
An overview of server-side resources used by Razorpay for Gravity Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.97 ▼2.59 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.76 ▼17.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.68 ▲11.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.30 ▼2.44 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.85 ▼0.39 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 177 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Razorpay for Gravity Forms: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 14.48 ▼0.17 | 1.74 ▼0.18 | 39.10 ▼6.20 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲1.01 | 107.40 ▼13.50 | 40.83 ▼1.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.06 | 39.85 ▲1.33 | 35.53 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,541 ▲8 | 18.27 ▼4.91 | 615.05 ▼53.70 | 62.32 ▲11.00 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.03 | 97.92 ▼4.63 | 42.77 ▼1.99 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 110× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_Transport' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/Transport/cURL.php:3
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/405.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/504.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Hooker' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Hooks.php:15
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/src/Invoice.php:12
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/511.php:15
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/403.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/411.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Proxy' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Proxy/HTTP.php:19
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-gravity-forms/razorpay-sdk/src/Order.php:5
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ecommerce, payments, razorpay, india, gravityforms
razorpay-gravity-forms/razorpay.php 92% from 13 tests
"Razorpay for Gravity Forms" version 1.3.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("razorpay-gravity-forms.php" instead of "razorpay.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin9,184 lines of code in 165 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 1,912 | 6,572 | 7,756 |
Markdown | 7 | 500 | 0 | 1,081 |
JSON | 3 | 0 | 0 | 110 |
CSS | 1 | 16 | 1 | 74 |
YAML | 3 | 11 | 6 | 66 |
JavaScript | 2 | 18 | 4 | 56 |
XML | 1 | 2 | 0 | 41 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 141 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 141 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 543 | |
▷ Static methods | 117 | 21.55% |
▷ Public methods | 445 | 81.95% |
▷ Protected methods | 94 | 17.31% |
▷ Private methods | 4 | 0.74% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 70 | |
▷ Global constants | 2 | 2.86% |
▷ Class constants | 68 | 97.14% |
▷ Public constants | 68 | 100.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
There were not PNG files found in your plugin