Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.14MB] [CPU: ▼4.56ms] Passed 4 tests
A check of server-side resources used by Razorpay Subscription Button Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.85 ▲4.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.08 ▼5.21 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 47.06 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.23 ▼0.65 | 66.96 ▼17.53 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 36.97 ▲2.85 |
Razorpay Subscription Buttons /wp-admin/admin.php?page=rzp_subscription_button_view | 3.21 | 32.50 |
Settings /wp-admin/admin.php?page=razorpay_subscription_settings | 3.23 | 31.00 |
Razorpay Subscription Buttons /wp-admin/admin.php?page=razorpay_Subscription_button | 3.21 | 32.31 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 217 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Razorpay Subscription Button Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.35 ▼0.02 | 1.92 ▲0.19 | 39.61 ▼2.05 |
Dashboard /wp-admin | 2,217 ▲40 | 5.63 ▼0.02 | 88.95 ▲1.05 | 42.90 ▲4.99 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.16 ▲0.18 | 38.83 ▲1.63 | 44.12 ▲6.57 |
Add New Post /wp-admin/post-new.php | 32 ▼1,494 | 0.42 ▼23.30 | 0.08 ▼683.92 | 4.07 ▼51.55 |
Media Library /wp-admin/upload.php | 1,422 ▲19 | 4.15 ▼0.01 | 95.10 ▼5.59 | 72.76 ▲26.75 |
Razorpay Subscription Buttons /wp-admin/admin.php?page=rzp_subscription_button_view | 696 | 1.12 | 6.76 | 25.44 |
Settings /wp-admin/admin.php?page=razorpay_subscription_settings | 898 | 2.13 | 25.04 | 29.99 |
Razorpay Subscription Buttons /wp-admin/admin.php?page=razorpay_Subscription_button | 700 | 1.51 | 6.31 | 23.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 117× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Transport.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/razorpay-subscription-button/razorpay-subscription-buttons.php:21
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/501.php:13
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/src/Collection.php:7
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP/405.php:13
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/src/Order.php:5
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status405.php:17
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/src/Webhook.php:6
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status407.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception' not found in wp-content/plugins/razorpay-subscription-button/razorpay-sdk/libs/Requests-1.7.0/library/Requests/Exception/HTTP.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: payments, ecommerce, razorpay, india
razorpay-subscription-button/razorpay-subscription-buttons.php 92% from 13 tests
This is the main PHP file of "Razorpay Subscription Button Plugin" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("razorpay-subscription-button.php" instead of "razorpay-subscription-buttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin18,335 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 31 | 1,541 | 0 | 8,730 |
PHP | 165 | 2,156 | 7,090 | 8,442 |
SVG | 1 | 1 | 0 | 494 |
JavaScript | 2 | 67 | 83 | 292 |
CSS | 2 | 4 | 8 | 175 |
JSON | 3 | 0 | 0 | 146 |
YAML | 3 | 9 | 5 | 56 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.69 |
▷ 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 | 153 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 153 | 100.00% |
▷ Final classes | 45 | 29.41% |
Methods | 575 | |
▷ Static methods | 125 | 21.74% |
▷ Public methods | 476 | 82.78% |
▷ Protected methods | 90 | 15.65% |
▷ Private methods | 9 | 1.57% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin