Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.49ms] Passed 4 tests
Analyzing server-side resources used by Razorpay Subscription Button Elementor Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.70 ▼1.91 |
Dashboard /wp-admin | 3.44 ▲0.13 | 51.82 ▼1.22 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.44 ▲1.45 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 84.52 ▼4.26 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.50 ▲4.38 |
Settings /wp-admin/admin.php?page=razorpay_sub_elementor_settings | 3.33 | 31.36 |
Razorpay Subscription Buttons Elementor /wp-admin/admin.php?page=rzp_button_view_sub_elementor | 3.30 | 32.22 |
Razorpay Subscription Buttons Elementor /wp-admin/admin.php?page=razorpay_subs_button_elementor | 3.30 | 32.32 |
Server storage [IO: ▲2.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 254 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Razorpay Subscription Button Elementor Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.10 ▼0.25 | 1.75 ▼0.09 | 44.10 ▼0.28 |
Dashboard /wp-admin | 2,218 ▲38 | 5.65 ▲0.05 | 93.34 ▲2.02 | 43.25 ▼0.79 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.95 ▼0.04 | 33.15 ▼1.73 | 33.35 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.16 ▲0.00 | 633.25 ▲21.77 | 52.35 ▼5.68 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.19 ▼0.03 | 93.92 ▼3.72 | 39.44 ▼1.52 |
Settings /wp-admin/admin.php?page=razorpay_sub_elementor_settings | 903 | 2.00 | 23.89 | 27.12 |
Razorpay Subscription Buttons Elementor /wp-admin/admin.php?page=rzp_button_view_sub_elementor | 696 | 1.51 | 6.33 | 28.16 |
Razorpay Subscription Buttons Elementor /wp-admin/admin.php?page=razorpay_subs_button_elementor | 698 | 1.51 | 6.50 | 18.66 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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 everything seems fine, this is not an exhaustive test
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 items
- 163× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/src/Subscription.php:5
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status505.php:17
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/412.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/razorpay-subscription-button-elementor/widget/Widget.php:53
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/429.php:15
- > PHP Fatal error
Uncaught Error: Class 'WpOrg\\Requests\\Exception\\Http' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/libs/Requests-2.0.0/src/Exception/Http/Status410.php:17
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Entity' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/src/Order.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/razorpay-subscription-button-elementor/includes/rzp-subscription-buttons.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Errors\\Error' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/src/Errors/ServerError.php:5
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/razorpay-subscription-button-elementor/razorpay-sdk/libs/Requests-1.8.0/library/Requests/Exception/HTTP/408.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: subscription, india, payments, razorpay, ecommerce
razorpay-subscription-button-elementor/razorpay-subscription-buttons.php 92% from 13 tests
"Razorpay Subscription Button Elementor Plugin" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("razorpay-subscription-button-elementor.php" instead of "razorpay-subscription-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 plugin13,910 lines of code in 241 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 222 | 2,851 | 10,252 | 11,491 |
Markdown | 7 | 679 | 0 | 1,668 |
SVG | 1 | 0 | 0 | 233 |
CSS | 2 | 4 | 8 | 159 |
JSON | 3 | 0 | 0 | 153 |
JavaScript | 2 | 15 | 12 | 99 |
YAML | 3 | 11 | 6 | 66 |
XML | 1 | 2 | 0 | 41 |
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.46 |
Average class complexity | 10.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 209 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 209 | 100.00% |
▷ Final classes | 45 | 21.53% |
Methods | 764 | |
▷ Static methods | 178 | 23.30% |
▷ Public methods | 623 | 81.54% |
▷ Protected methods | 130 | 17.02% |
▷ Private methods | 11 | 1.44% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 95 | |
▷ Global constants | 7 | 7.37% |
▷ Class constants | 88 | 92.63% |
▷ Public constants | 88 | 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
PNG images were not found in this plugin