Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲3.43ms] Passed 4 tests
Analyzing server-side resources used by Razorpay Payment Button SiteOrigin Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 50.30 ▲9.07 |
Dashboard /wp-admin | 3.58 ▲0.27 | 52.61 ▼0.35 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 57.58 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 106.33 ▲5.96 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 41.25 ▲3.98 |
Subscription Buttons /wp-admin/admin.php?page=rzp_button_view_siteorigin | 3.38 | 32.18 |
Subscription Buttons /wp-admin/admin.php?page=razorpay_subscription_button_siteorigin | 3.38 | 47.41 |
Payment Buttons /wp-admin/admin.php?page=razorpay_button_siteorigin | 3.38 | 35.44 |
Settings /wp-admin/admin.php?page=razorpay_siteorigin_settings | 3.40 | 38.95 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 185 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_rzp_subscription_button_widget |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_rzp_payment_button_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Razorpay Payment Button SiteOrigin Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 13.34 ▼1.16 | 5.05 ▲3.25 | 49.60 ▲3.34 |
Dashboard /wp-admin | 2,245 ▲39 | 4.84 ▼0.04 | 125.92 ▲16.82 | 46.00 ▲1.60 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▲0.01 | 40.41 ▲2.62 | 35.31 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,577 ▲27 | 23.40 ▲0.20 | 605.58 ▼36.87 | 55.88 ▼6.96 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.21 ▼0.02 | 103.19 ▲1.03 | 44.51 ▼5.45 |
Subscription Buttons /wp-admin/admin.php?page=rzp_button_view_siteorigin | 700 | 1.35 | 6.50 | 32.35 |
Subscription Buttons /wp-admin/admin.php?page=razorpay_subscription_button_siteorigin | 702 | 1.35 | 7.96 | 19.85 |
Payment Buttons /wp-admin/admin.php?page=razorpay_button_siteorigin | 702 | 1.35 | 7.85 | 21.29 |
Settings /wp-admin/admin.php?page=razorpay_siteorigin_settings | 918 | 2.03 | 28.33 | 32.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_rzp_payment_button_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_rzp_subscription_button_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)
Even though everything seems fine, this is not 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
- 121× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status411.php:17
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status413.php:17
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/src/Transfer.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/widgets/payment_button/payment_button.php:4
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/src/Payment.php:7
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/411.php:13
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/403.php:13
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/src/Customer.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Auth' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Auth/Basic.php:18
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button-for-siteorigin/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/417.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: india, donate button, payment plugin, payment gateway, upicreditdebit card
razorpay-payment-button-for-siteorigin/razorpay-payment-buttons.php 92% from 13 tests
The entry point to "Razorpay Payment Button SiteOrigin Plugin" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("razorpay-payment-button-for-siteorigin.php" instead of "razorpay-payment-buttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin10,631 lines of code in 179 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 2,241 | 7,233 | 8,925 |
Markdown | 5 | 522 | 0 | 1,358 |
CSS | 2 | 4 | 8 | 159 |
JSON | 2 | 0 | 0 | 130 |
XML | 1 | 2 | 0 | 41 |
YAML | 1 | 2 | 1 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 156 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 156 | 100.00% |
▷ Final classes | 45 | 28.85% |
Methods | 596 | |
▷ Static methods | 125 | 20.97% |
▷ Public methods | 495 | 83.05% |
▷ Protected methods | 92 | 15.44% |
▷ Private methods | 9 | 1.51% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin