Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼5.06ms] Passed 4 tests
A check of server-side resources used by Razorpay Payment Button Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.66 ▲0.43 |
Dashboard /wp-admin | 3.48 ▲0.17 | 53.22 ▲4.50 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 48.33 ▼1.46 |
Add New Post /wp-admin/post-new.php | 5.37 ▼0.52 | 69.57 ▼21.93 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.25 ▲2.74 |
Razorpay Subscription Buttons /wp-admin/admin.php?page=rzp_subscription_button | 3.34 | 31.69 |
Settings /wp-admin/admin.php?page=razorpay_settings | 3.37 | 33.46 |
Razorpay Subscription Button /wp-admin/admin.php?page=rzp_button_view | 3.34 | 28.69 |
Razorpay Buttons /wp-admin/admin.php?page=razorpay_button | 3.34 | 30.64 |
Server storage [IO: ▲1.75MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Razorpay Payment Button Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲76 | 13.59 ▼0.78 | 1.76 ▼0.23 | 42.08 ▼1.33 |
Dashboard /wp-admin | 2,236 ▲53 | 4.83 ▼0.23 | 109.57 ▼30.46 | 40.42 ▼6.21 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 1.99 ▼0.02 | 38.83 ▼3.35 | 41.11 ▲3.96 |
Add New Post /wp-admin/post-new.php | 32 ▼1,510 | 0.44 ▼17.89 | 0.08 ▼658.89 | 3.79 ▼48.10 |
Media Library /wp-admin/upload.php | 1,415 ▲33 | 4.20 ▼0.08 | 96.76 ▼3.28 | 70.41 ▲25.05 |
Razorpay Subscription Buttons /wp-admin/admin.php?page=rzp_subscription_button | 701 | 1.14 | 9.28 | 27.38 |
Settings /wp-admin/admin.php?page=razorpay_settings | 896 | 2.04 | 23.46 | 32.68 |
Razorpay Subscription Button /wp-admin/admin.php?page=rzp_button_view | 695 | 1.53 | 6.03 | 17.98 |
Razorpay Buttons /wp-admin/admin.php?page=razorpay_button | 701 | 1.14 | 6.51 | 18.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 128× 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_HTTP' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/406.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/StatusUnknown.php:18
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status413.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/505.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/414.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status503.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/306.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/429.php:15
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button/razorpay-sdk/src/PaymentLink.php:8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/razorpay-payment-button/includes/rzp-subscription-buttons.php on line 11
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: e-commerce, upicreditdebit card, education, payment gateway, donate button...
razorpay-payment-button/razorpay-payment-buttons.php 85% from 13 tests
Analyzing the main PHP file in "Razorpay Payment Button Plugin" version 2.4.5
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("razorpay-payment-button.php" instead of "razorpay-payment-buttons.php")
- Description: The description should be shorter than 140 characters (currently 195 characters long)
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
Success! There were no dangerous files found in this plugin18,948 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 31 | 1,541 | 0 | 8,730 |
PHP | 166 | 2,208 | 7,109 | 8,706 |
SVG | 1 | 0 | 0 | 793 |
JavaScript | 2 | 77 | 84 | 347 |
CSS | 2 | 6 | 9 | 178 |
JSON | 3 | 0 | 0 | 146 |
YAML | 2 | 9 | 5 | 48 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 154 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 154 | 100.00% |
▷ Final classes | 45 | 29.22% |
Methods | 587 | |
▷ Static methods | 125 | 21.29% |
▷ Public methods | 487 | 82.96% |
▷ Protected methods | 91 | 15.50% |
▷ Private methods | 9 | 1.53% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 71 | |
▷ Global constants | 7 | 9.86% |
▷ Class constants | 64 | 90.14% |
▷ Public constants | 64 | 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
No PNG images were found in this plugin