Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.91MB] [CPU: ▲8.96ms] Passed 4 tests
A check of server-side resources used by WC China Checkout 物流通知插件
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.22 ▲1.75 | 50.07 ▲10.56 |
Dashboard /wp-admin | 4.26 ▲0.95 | 59.19 ▲12.67 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 59.79 ▲15.35 |
Add New Post /wp-admin/post-new.php | 6.77 ▲0.88 | 99.94 ▲1.93 |
Media Library /wp-admin/upload.php | 4.10 ▲0.86 | 45.04 ▲10.66 |
WC China Checkout /wp-admin/admin.php?page=wc-sinic | 3.96 | 30.44 |
Settings /wp-admin/admin.php?page=woo_ch_page_default | 4.09 | 39.62 |
Server storage [IO: ▲2.69MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 92 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_xh_sessions |
New WordPress options |
---|
widget_recent-posts |
woocommerce_allowed_countries |
can_compress_scripts |
widget_recent-comments |
woocommerce_specific_allowed_countries |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WC China Checkout 物流通知插件: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,340 ▲594 | 16.12 ▲1.70 | 5.56 ▲4.00 | 44.53 ▲8.95 |
Dashboard /wp-admin | 2,645 ▲459 | 7.45 ▲2.52 | 148.92 ▲34.09 | 49.26 ▲7.67 |
Posts /wp-admin/edit.php | 2,561 ▲472 | 4.05 ▲2.07 | 66.81 ▲31.89 | 40.85 ▲10.86 |
Add New Post /wp-admin/post-new.php | 1,406 ▼127 | 17.48 ▼5.38 | 519.35 ▼133.84 | 29.71 ▼21.52 |
Media Library /wp-admin/upload.php | 1,697 ▲309 | 5.23 ▲1.02 | 94.74 ▼1.90 | 52.20 ▲11.20 |
WC China Checkout /wp-admin/admin.php?page=wc-sinic | 28 | 0.44 | 0.07 | 3.42 |
Settings /wp-admin/admin.php?page=woo_ch_page_default | 1,308 | 3.59 | 56.75 | 33.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_xh_sessions
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- woocommerce_allowed_countries
- widget_recent-comments
- woocommerce_specific_allowed_countries
- theysaidso_admin_options
- can_compress_scripts
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 everything seems fine, this is not 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'Gregwar\\Captcha\\CaptchaBuilderInterface' not found in wp-content/plugins/wc-china-checkout/includes/captcha/CaptchaBuilder.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Gregwar\\Captcha\\PhraseBuilderInterface' not found in wp-content/plugins/wc-china-checkout/includes/captcha/PhraseBuilder.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wc-sinic
- > Network (severe)
wp-admin/admin.php?page=wc-sinic - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: chinese checkout, woocommerce
wc-china-checkout/init.php 85% from 13 tests
The principal PHP file in "WC China Checkout 物流通知插件" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wc-china-checkout.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin28,146 lines of code in 71 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 3,915 | 2,487 | 15,042 |
PHP | 37 | 1,087 | 2,179 | 9,712 |
CSS | 11 | 335 | 42 | 2,830 |
PO File | 1 | 776 | 1,511 | 516 |
HTML | 1 | 4 | 0 | 46 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 18.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 42 | |
▷ Abstract classes | 14 | 33.33% |
▷ Concrete classes | 28 | 66.67% |
▷ Final classes | 1 | 3.57% |
Methods | 361 | |
▷ Static methods | 74 | 20.50% |
▷ Public methods | 321 | 88.92% |
▷ Protected methods | 19 | 5.26% |
▷ Private methods | 21 | 5.82% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 11 | |
▷ Global constants | 7 | 63.64% |
▷ Class constants | 4 | 36.36% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.05MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/empty.png | 0.96KB | 0.10KB | ▼ 89.95% |
assets/My97DatePicker/skin/twoer/img.png | 48.15KB | 0.79KB | ▼ 98.37% |