Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.91ms] Passed 4 tests
Server-side resources used by Razorpay Subscriptions for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 37.40 ▼4.85 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.53 ▼4.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.93 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.98 ▼9.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.05 ▲0.22 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Razorpay Subscriptions for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.63 ▼0.67 | 1.81 ▼0.08 | 40.16 ▼3.18 |
Dashboard /wp-admin | 2,206 ▲21 | 5.90 ▲0.10 | 105.64 ▼3.80 | 37.33 ▼7.02 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.04 | 40.73 ▼0.73 | 35.46 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,542 ▲6 | 18.04 ▼5.08 | 602.27 ▼53.04 | 53.04 ▼6.66 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.15 ▼0.04 | 94.86 ▼9.25 | 40.42 ▼7.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'RZP_Webhook' not found in wp-content/plugins/razorpay-subscriptions-for-woocommerce/includes/razorpay-subscription-webhook.php:5
- > PHP Fatal error
Uncaught Error: Class 'Razorpay\\Api\\Errors\\ErrorCode' not found in wp-content/plugins/razorpay-subscriptions-for-woocommerce/includes/Errors/SubscriptionErrorCode.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
7 plugin tags: india, payments, ecommerce, razorpay, recurring...
razorpay-subscriptions-for-woocommerce/razorpay-subscriptions.php 92% from 13 tests
The entry point to "Razorpay Subscriptions for WooCommerce" version 2.3.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("razorpay-subscriptions-for-woocommerce.php" instead of "razorpay-subscriptions.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
No dangerous file extensions were detected976 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 312 | 335 | 976 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 23.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 15 | 28.85% |
▷ Protected methods | 33 | 63.46% |
▷ Private methods | 4 | 7.69% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 3 | 18.75% |
▷ Class constants | 13 | 81.25% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 5.62KB | 3.25KB | ▼ 42.17% |
images/payment.png | 2.21KB | 1.64KB | ▼ 25.45% |