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.01MB] [CPU: ▼8.64ms] Passed 4 tests
This is a short check of server-side resources used by Return Refund and Exchange For WooCommerce - Return Management System, RMA Exchange, Wallet And Cancel Order Features
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.70 ▼5.96 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.56 ▼15.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.47 ▲2.82 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.04 ▼16.00 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.94 ▲4.12 |
Server storage [IO: ▲7.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 191 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Return Refund and Exchange For WooCommerce - Return Management System, RMA Exchange, Wallet And Cancel Order Features
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.37 ▲0.02 | 1.58 ▼0.30 | 41.15 ▼0.92 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.05 | 94.04 ▼5.91 | 41.63 ▼3.61 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.02 | 39.13 ▲2.24 | 35.97 ▲0.55 |
Add New Post /wp-admin/post-new.php | 1,525 ▼10 | 20.99 ▼4.14 | 619.68 ▼17.72 | 40.07 ▼20.20 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.17 ▼0.03 | 99.79 ▲4.64 | 44.47 ▼0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-refund-and-exchange-lite/common/partials/woo-refund-and-exchange-lite-common-display.php
- > /wp-content/plugins/woo-refund-and-exchange-lite/public/partials/woo-refund-and-exchange-lite-public-display.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/pro_setting_templates/rma-return-refund-exchange-for-woocommerce-pro-returnship-label.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-refund-and-exchange-lite/public/index.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wps_rma_get_meta_data() in wp-content/plugins/woo-refund-and-exchange-lite/common/partials/email_template/woo-refund-and-exchange-lite-refund-request-email.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/email_template/woo-refund-and-exchange-lite-refund-request-cancel-email.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-refund-and-exchange-lite/includes/index.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-refund-and-exchange-lite/onboarding/templates/woo-refund-and-exchange-lite-onboarding-template.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-refund-and-exchange-lite/wp-bakery-widgets/class-wps-rma-vc-widgets.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woo-refund-and-exchange-lite/index.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wps_rma_get_meta_data() in wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/email_template/woo-refund-and-exchange-lite-refund-request-accept-email.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/woo-refund-and-exchange-lite/admin/partials/woo-refund-and-exchange-lite-overview.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Requires php: Invalid version format
woo-refund-and-exchange-lite/woocommerce-refund-and-exchange-lite.php 85% from 13 tests
"Return Refund and Exchange For WooCommerce - Return Management System, RMA Exchange, Wallet And Cancel Order Features" version 4.3.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 499 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woo-refund-and-exchange-lite.php" instead of "woocommerce-refund-and-exchange-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin51,337 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 10,219 | 12,865 | 34,751 |
PHP | 57 | 707 | 2,259 | 8,129 |
CSS | 20 | 713 | 185 | 4,519 |
Sass | 27 | 331 | 8 | 2,689 |
PO File | 1 | 417 | 648 | 919 |
JSON | 3 | 0 | 0 | 202 |
Markdown | 3 | 76 | 0 | 83 |
XML | 1 | 0 | 0 | 24 |
SVG | 5 | 1 | 0 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 37.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 4.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 98.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 13 | 7.22% |
▷ Public methods | 169 | 93.89% |
▷ Protected methods | 2 | 1.11% |
▷ Private methods | 9 | 5.00% |
Functions | 29 | |
▷ Named functions | 27 | 93.10% |
▷ Anonymous functions | 2 | 6.90% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/lib/datatables/media/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
admin/image/WPS_Grey.png | 0.88KB | 0.81KB | ▼ 7.92% |
admin/image/Send-Email-Notification.png | 9.82KB | 4.23KB | ▼ 56.93% |
admin/image/Set-Return-Refund-Conditions.png | 6.06KB | 3.00KB | ▼ 50.45% |
package/lib/datatables/media/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |