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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.17ms] Passed 4 tests
This is a short check of server-side resources used by Razorpay Payment Button Elementor Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.98 ▼0.39 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.46 ▼1.14 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 48.27 ▼3.04 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 91.92 ▼11.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.94 ▼0.91 |
Settings /wp-admin/admin.php?page=razorpay_elementor_settings | 3.23 | 32.45 |
Razorpay Buttons Elementor /wp-admin/admin.php?page=rzp_button_view_elementor | 3.21 | 32.40 |
Razorpay Buttons Elementor /wp-admin/admin.php?page=razorpay_button_elementor | 3.21 | 29.73 |
Server storage [IO: ▲2.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 216 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Razorpay Payment Button Elementor Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.21 ▼0.04 | 1.64 ▲0.08 | 44.28 ▲3.49 |
Dashboard /wp-admin | 2,218 ▲41 | 5.59 ▼0.06 | 81.75 ▼6.63 | 37.96 ▼4.40 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.02 ▼0.12 | 35.60 ▼5.64 | 33.91 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 18.23 ▼5.29 | 597.04 ▼86.35 | 62.69 ▲6.92 |
Media Library /wp-admin/upload.php | 1,423 ▲32 | 4.21 ▼0.01 | 92.97 ▼13.29 | 41.42 ▼14.55 |
Settings /wp-admin/admin.php?page=razorpay_elementor_settings | 914 | 2.00 | 21.37 | 28.33 |
Razorpay Buttons Elementor /wp-admin/admin.php?page=rzp_button_view_elementor | 696 | 1.51 | 6.33 | 30.12 |
Razorpay Buttons Elementor /wp-admin/admin.php?page=razorpay_button_elementor | 698 | 1.12 | 7.14 | 17.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 121× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Transport/fsockopen.php:15
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status411.php:17
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Errors\\Error' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/src/Errors/GatewayError.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/razorpay-payment-button-elementor/widget/Widget.php:54
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Utility\\CaseInsensitiveDictionary' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-2.0.0/src/Response/Headers.php:20
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status502.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/403.php:13
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status500.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/502.php:13
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Errors\\Error' not found in wp-content/plugins/razorpay-payment-button-elementor/razorpay-sdk/src/Errors/ServerError.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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: india, donate button, payment gateway, upicreditdebit card, payment plugin
razorpay-payment-button-elementor/razorpay-payment-buttons.php 92% from 13 tests
Analyzing the main PHP file in "Razorpay Payment Button Elementor Plugin" version 1.2.5
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("razorpay-payment-button-elementor.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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin17,949 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 31 | 1,541 | 0 | 8,730 |
PHP | 167 | 2,180 | 7,208 | 8,534 |
SVG | 1 | 0 | 0 | 233 |
CSS | 2 | 4 | 8 | 159 |
JSON | 3 | 0 | 0 | 146 |
JavaScript | 2 | 15 | 12 | 99 |
YAML | 2 | 9 | 5 | 48 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 10 | |
Traits | 0 | |
Classes | 155 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 155 | 100.00% |
▷ Final classes | 45 | 29.03% |
Methods | 585 | |
▷ Static methods | 126 | 21.54% |
▷ Public methods | 482 | 82.39% |
▷ Protected methods | 93 | 15.90% |
▷ Private methods | 10 | 1.71% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin