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
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼3.35ms] Passed 4 tests
An overview of server-side resources used by RY WooCommerce Tools
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.05 ▼6.22 |
Dashboard /wp-admin | 3.39 ▲0.09 | 45.38 ▼1.71 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.29 ▲1.26 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 88.48 ▼6.74 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.30 ▲4.10 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 135 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
RY_WT_smilepay_shipping_auto_order_status |
widget_theysaidso_widget |
can_compress_scripts |
RY_WT_ecpay_shipping_auto_order_status |
RY_WT_ecpay_shipping_pickup_time |
RY_WT_ecpay_shipping_box_size |
RY_WT_version |
theysaidso_admin_options |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
RY WooCommerce Tools: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲58 | 14.31 ▲0.02 | 1.81 ▲0.07 | 37.81 ▼6.44 |
Dashboard /wp-admin | 2,197 ▲19 | 5.59 ▼0.04 | 96.23 ▼19.85 | 43.62 ▼0.22 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.95 ▼0.07 | 39.09 ▼5.25 | 38.41 ▲3.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.35 ▲0.10 | 669.71 ▲45.40 | 44.86 ▼1.46 |
Media Library /wp-admin/upload.php | 1,405 ▲11 | 4.19 ▲0.01 | 96.22 ▲0.66 | 43.54 ▲1.95 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 11 options
- RY_WT_smilepay_shipping_auto_order_status
- RY_WT_ecpay_shipping_box_size
- RY_WT_version
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- RY_WT_ecpay_shipping_auto_order_status
- can_compress_scripts
- RY_WT_ecpay_shipping_pickup_time
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ry-woocommerce-tools/woocommerce/admin/settings/html/pro-info.php
- > /wp-content/plugins/ry-woocommerce-tools/ry-woocommerce-tools.php
- 142× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
include(RY_WT_PLUGIN_DIRwoocommerce/gateways/global-setting.php): failed to open stream: No such file or directory in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/smilepay/includes/settings/cvs.php on line 3
- > PHP Warning
include(RY_WT_PLUGIN_DIRwoocommerce/gateways/global-setting.php): failed to open stream: No such file or directory in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/smilepay/includes/settings/barcode.php on line 3
- > PHP Warning
include(RY_WT_PLUGIN_DIRwoocommerce/gateways/global-setting.php): failed to open stream: No such file or directory in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/smilepay/includes/settings/webatm.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'RY_WT_WC_NewebPay_Payment_Gateway' not found in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/newebpay/gateway-atm.php:3
- > PHP Fatal error
Uncaught Error: Class 'RY_WT_WC_ECPay_Shipping_Method' not found in wp-content/plugins/ry-woocommerce-tools/woocommerce/shipping/ecpay/shipping-home-post.php:3
- > PHP Warning
include(): Failed opening 'RY_WT_PLUGIN_DIRwoocommerce/gateways/global-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/newebpay/includes/settings/barcode.php on line 3
- > PHP Warning
include(RY_WT_PLUGIN_DIRwoocommerce/gateways/global-setting.php): failed to open stream: No such file or directory in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/newebpay/includes/settings/atm.php on line 3
- > PHP Warning
Use of undefined constant RY_WT_PLUGIN_DIR - assumed 'RY_WT_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/smilepay/includes/settings/webatm.php on line 3
- > PHP Warning
include(): Failed opening 'RY_WT_PLUGIN_DIRwoocommerce/shipping/global-setting.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/ry-woocommerce-tools/woocommerce/shipping/ecpay/includes/settings/cvs.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'RY_WT_WC_Model' not found in wp-content/plugins/ry-woocommerce-tools/woocommerce/gateways/smilepay/gateway.php:3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: gateway, shipping, newebpay, smilepay, payment...
ry-woocommerce-tools/ry-woocommerce-tools.php Passed 13 tests
"RY WooCommerce Tools" version 3.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
37 characters long description:
WooCommerce paymet and shipping tools
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,415 lines of code in 121 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 117 | 1,200 | 238 | 8,245 |
JavaScript | 2 | 7 | 0 | 142 |
CSS | 2 | 4 | 0 | 28 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 14 | 17.72% |
▷ Concrete classes | 65 | 82.28% |
▷ Final classes | 22 | 33.85% |
Methods | 371 | |
▷ Static methods | 47 | 12.67% |
▷ Public methods | 285 | 76.82% |
▷ Protected methods | 85 | 22.91% |
▷ Private methods | 1 | 0.27% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 48 | |
▷ Global constants | 5 | 10.42% |
▷ Class constants | 43 | 89.58% |
▷ Public constants | 43 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon/ecpay_logo.png | 1.98KB | 2.21KB | 0.00% |
icon/smilepay_logo.png | 4.81KB | 3.53KB | ▼ 26.73% |
icon/newebpay_logo.png | 3.78KB | 2.76KB | ▼ 27.17% |