Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.49ms] Passed 4 tests
An overview of server-side resources used by Wechat Crossborder for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 39.45 ▼4.26 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.22 ▼5.15 |
Posts /wp-admin/edit.php | 3.41 ▲0.01 | 50.84 ▲0.59 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.01 | 99.55 ▼5.14 |
Media Library /wp-admin/upload.php | 3.28 ▲0.01 | 40.68 ▲3.34 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wechat Crossborder for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.72 ▲0.19 | 2.00 ▲0.33 | 44.50 ▲6.13 |
Dashboard /wp-admin | 2,198 ▲18 | 5.62 ▲0.03 | 82.49 ▼6.71 | 41.55 ▲1.51 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.00 | 33.57 ▼1.11 | 33.05 ▼2.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.10 ▲0.06 | 666.57 ▼22.12 | 61.74 ▲8.65 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▼0.02 | 100.09 ▼6.09 | 45.27 ▼3.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #3 (Order pay screen, including QR code of wechat and payment amount.), #4 (Pay screen in weChat)
woo-wechat-crossborder/init.php 77% from 13 tests
The entry point to "Wechat Crossborder for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 239 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-wechat-crossborder.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,035 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 370 | 1,668 | 2,215 |
JavaScript | 2 | 81 | 128 | 750 |
PO File | 1 | 19 | 19 | 70 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 382 | |
▷ Static methods | 17 | 4.45% |
▷ Public methods | 372 | 97.38% |
▷ Protected methods | 1 | 0.26% |
▷ Private methods | 9 | 2.36% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
images/weixin.png | 3.57KB | 2.02KB | ▼ 43.49% |
images/ep_new_sprites1.png | 2.89KB | 0.20KB | ▼ 92.93% |
images/logo.png | 3.09KB | 2.47KB | ▼ 20.10% |