Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.60ms] Passed 4 tests
Server-side resources used by Checkpay – WeChat Pay & Alipay for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.12 ▼3.63 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.37 ▼2.24 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.71 ▼8.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.32 ▼12.15 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.54 ▼0.55 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Checkpay – WeChat Pay & Alipay for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.00 | 1.73 ▲0.06 | 44.67 ▼2.30 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.07 | 95.57 ▼2.19 | 41.75 ▼5.19 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 33.66 ▼0.33 | 36.06 ▲0.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.55 ▲0.41 | 673.22 ▲28.10 | 61.39 ▲12.05 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.15 ▼0.03 | 95.50 ▼8.22 | 43.42 ▼1.32 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_atts() in wp-content/plugins/checkpay-payment-gateway-for-woocommerece/views/pay.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires php: Version format is invalid
checkpay-payment-gateway-for-woocommerece/checkpay-payment-gateway-for-woocommerece.php Passed 13 tests
The primary PHP file in "Checkpay – WeChat Pay & Alipay for WooCommerce" version 1.0 is used by WordPress to initiate all plugin functionality
41 characters long description:
Checkpay Payment Gateway for Woocommerece
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
Everything looks great! No dangerous files found in this plugin710 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 139 | 11 | 641 |
PO File | 1 | 15 | 17 | 60 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Analyzing 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.32 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 9 | 31.03% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.26MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wechat.png | 45.78KB | 18.02KB | ▼ 60.64% |
assets/images/alipayout.png | 31.74KB | 15.34KB | ▼ 51.67% |
assets/images/alipay.png | 42.07KB | 14.76KB | ▼ 64.91% |
views/alipay-english.png | 73.48KB | 40.70KB | ▼ 44.61% |
views/alipay.png | 72.22KB | 39.79KB | ▼ 44.90% |