Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼140.85ms] Passed 4 tests
Server-side resources used by WC Checkout For Chinese
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 34.13 ▼0.35 |
Dashboard /wp-admin | 3.18 ▲0.13 | 48.58 ▼5.27 |
Posts /wp-admin/edit.php | 3.29 ▲0.19 | 45.94 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.11 | 90.22 ▼555.21 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 31.06 ▼2.45 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WC Checkout For Chinese
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,815 ▲219 | 16.41 ▲1.00 | 12.88 ▲0.48 | 44.20 ▼7.43 |
Dashboard /wp-admin | 2,973 ▲39 | 6.00 ▼0.08 | 150.42 ▲7.83 | 107.30 ▼2.15 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 70.25 ▲5.22 | 88.39 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,604 ▲106 | 18.61 ▼0.25 | 427.95 ▲1.09 | 106.77 ▼0.62 |
Media Library /wp-admin/upload.php | 1,822 ▲18 | 5.02 ▼0.00 | 165.12 ▲13.08 | 129.06 ▲18.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: chinese, woocommerce, checkoute
wc-checkout-for-chinese/wc-checkout-for-chinese.php 85% from 13 tests
The entry point to "WC Checkout For Chinese" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin497 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 250 | 204 | 453 |
JavaScript | 2 | 15 | 8 | 44 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 26.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 25 | |
▷ Static methods | 5 | 20.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin