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.03MB] [CPU: ▼3.17ms] Passed 4 tests
Server-side resources used by ChillPay WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.77 ▼2.97 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.08 ▼6.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.30 ▼1.14 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.52 ▼2.31 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.62 ▲4.69 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 127 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ChillPay WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.29 ▲0.01 | 1.59 ▼0.01 | 38.16 ▼3.18 |
Dashboard /wp-admin | 2,210 ▲33 | 5.62 ▼0.05 | 94.87 ▼5.94 | 43.57 ▼3.87 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 1.95 ▼0.05 | 41.37 ▲3.68 | 37.75 ▲1.92 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.35 ▼4.50 | 595.43 ▼80.75 | 75.61 ▲24.45 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.13 ▼0.03 | 94.04 ▼13.98 | 40.77 ▼5.82 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 24× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/chillpay-payment-gateway/includes/gateway/class-chillpay-payment-ewallet.php
- > /wp-content/plugins/chillpay-payment-gateway/templates/payment/main-script.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/class-chillpay-setting.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/class-chillpay-fee.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/classes/class-chillpay-card-image.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/gateway/class-chillpay-payment-installment.php
- > /wp-content/plugins/chillpay-payment-gateway/chillpay-util.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/gateway/class-chillpay-payment-mobilebanking.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/gateway/class-chillpay-payment-creditcard.php
- > /wp-content/plugins/chillpay-payment-gateway/includes/chillpay-config.php
- 101× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-installment.php on line 25
- > PHP Notice
Undefined variable: viewData in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-pay-with-points.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-ewallet.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-billpayment.php on line 6
- > PHP Notice
Undefined variable: viewData in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-ewallet.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-kiosk-machine.php on line 5
- > PHP Notice
Undefined variable: viewData in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-ewallet.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-kiosk-machine.php on line 4
- > PHP Notice
Undefined variable: viewData in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-creditcard.php on line 14
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/chillpay-payment-gateway/templates/payment/form-mobilebanking.php on line 4
- > PHP Notice
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #4, #5 in chillpay-payment-gateway/assets to your readme.txt
chillpay-payment-gateway/chillpay-woocommerce.php 77% from 13 tests
The principal PHP file in "ChillPay WooCommerce" v. 2.5.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 490 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("chillpay-payment-gateway.php" instead of "chillpay-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin8,764 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,477 | 2,065 | 7,880 |
CSS | 12 | 109 | 12 | 500 |
JavaScript | 4 | 44 | 13 | 279 |
Markdown | 2 | 79 | 0 | 105 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 127)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 19.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 149.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 127.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 1 | 2.38% |
▷ Concrete classes | 41 | 97.62% |
▷ Final classes | 0 | 0.00% |
Methods | 352 | |
▷ Static methods | 143 | 40.62% |
▷ Public methods | 295 | 83.81% |
▷ Protected methods | 49 | 13.92% |
▷ Private methods | 8 | 2.27% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
Constants | 60 | |
▷ Global constants | 25 | 41.67% |
▷ Class constants | 35 | 58.33% |
▷ Public constants | 26 | 74.29% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
52 PNG files occupy 0.28MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-bank/IconBank_KTB2.png | 10.21KB | 4.52KB | ▼ 55.71% |
assets/images/icon-bank/IconBank_KTC-Forever2.png | 7.93KB | 2.61KB | ▼ 67.07% |
assets/images/ChillPay_16x16.png | 2.27KB | 0.77KB | ▼ 66.05% |
assets/images/icon-line-pay/IconLinePay_RabbitLinePay.png | 3.34KB | 1.62KB | ▼ 51.71% |
assets/images/icon-epayment/Icon_ShopeePay.png | 2.87KB | 1.53KB | ▼ 46.73% |