Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.83ms] Passed 4 tests
Analyzing server-side resources used by Razorpay Payment Button for Visual Composer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.06 ▼3.82 |
Dashboard /wp-admin | 3.34 ▼0.00 | 44.61 ▼18.10 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 53.27 ▲8.31 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 105.86 ▲11.32 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.57 ▲2.29 |
Subscription Buttons /wp-admin/admin.php?page=rzp_button_view_visual_composer | 3.20 | 29.73 |
Settings /wp-admin/admin.php?page=razorpay_visual_composer_settings | 3.23 | 30.51 |
Payment Buttons /wp-admin/admin.php?page=razorpay_payment_button_visual_composer | 3.20 | 31.98 |
Subscription Buttons /wp-admin/admin.php?page=razorpay_subscription_button_visual_composer | 3.21 | 29.83 |
Server storage [IO: ▲2.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 203 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Razorpay Payment Button for Visual Composer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.18 ▼1.21 | 2.01 ▲0.30 | 43.95 ▲1.67 |
Dashboard /wp-admin | 2,233 ▲48 | 5.00 ▲0.07 | 109.93 ▼8.06 | 39.13 ▼10.34 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▲0.02 | 45.74 ▲9.32 | 36.37 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,545 ▲3 | 23.25 ▲5.06 | 679.51 ▲43.41 | 61.33 ▲4.85 |
Media Library /wp-admin/upload.php | 1,418 ▲36 | 4.18 ▼0.06 | 96.91 ▼7.66 | 43.13 ▼0.72 |
Subscription Buttons /wp-admin/admin.php?page=rzp_button_view_visual_composer | 692 | 1.14 | 6.79 | 26.52 |
Settings /wp-admin/admin.php?page=razorpay_visual_composer_settings | 814 | 2.04 | 23.28 | 27.30 |
Payment Buttons /wp-admin/admin.php?page=razorpay_payment_button_visual_composer | 695 | 1.53 | 6.46 | 16.92 |
Subscription Buttons /wp-admin/admin.php?page=razorpay_subscription_button_visual_composer | 695 | 1.53 | 7.12 | 17.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/razorpay-payment-button-for-visual-composer/index.php
- 116× 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/razorpay-payment-button-for-visual-composer/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status408.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/431.php:15
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status400.php:17
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/src/Payment.php:7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/razorpay-payment-button-for-visual-composer/includes/rzp-payment-buttons.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/src/PaymentLink.php:8
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Utility\\CaseInsensitiveDictionary' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/libs/Requests-2.0.0/src/Response/Headers.php:20
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status428.php:21
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-payment-button-for-visual-composer/razorpay-sdk/src/Item.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: upicreditdebit card, payment gateway, e-commerce, payment plugin, donate button...
razorpay-payment-button-for-visual-composer/index.php 92% from 13 tests
The main PHP file in "Razorpay Payment Button for Visual Composer" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("razorpay-payment-button-for-visual-composer.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin24,344 lines of code in 192 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 9 | 0 | 0 | 13,831 |
PHP | 168 | 2,208 | 7,194 | 8,821 |
Markdown | 5 | 522 | 0 | 1,358 |
CSS | 2 | 4 | 8 | 159 |
JavaScript | 6 | 32 | 38 | 116 |
XML | 1 | 2 | 0 | 41 |
YAML | 1 | 2 | 1 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 156 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 156 | 100.00% |
▷ Final classes | 45 | 28.85% |
Methods | 588 | |
▷ Static methods | 125 | 21.26% |
▷ Public methods | 485 | 82.48% |
▷ Protected methods | 94 | 15.99% |
▷ Private methods | 9 | 1.53% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 73 | |
▷ Global constants | 9 | 12.33% |
▷ Class constants | 64 | 87.67% |
▷ Public constants | 64 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
elements/rzpSubscriptionButton/rzpSubscriptionButton/public/subscription-button-element-preview.png | 67.60KB | 25.25KB | ▼ 62.65% |
elements/rzpSubscriptionButton/rzpSubscriptionButton/public/subscription-button-element-thumbnail.png | 8.06KB | 4.49KB | ▼ 44.33% |
elements/rzpPaymentButton/rzpPaymentButton/public/payment-button-element-preview.png | 75.96KB | 24.95KB | ▼ 67.15% |
elements/rzpPaymentButton/rzpPaymentButton/public/payment-button-element-thumbnail.png | 8.06KB | 4.49KB | ▼ 44.33% |