99% wc-checkout-for-chinese

Code Review | WC Checkout For Chinese

WordPress plugin WC Checkout For Chinese scored 99% from 54 tests.

About plugin

  • Plugin page: wc-checkout-for-c...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 5.8.1
  • First release: Jan 23, 2018
  • Latest release: Jan 23, 2018
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,736 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.96 ▲0.1234.13 ▼0.35
Dashboard /wp-admin3.18 ▲0.1348.58 ▼5.27
Posts /wp-admin/edit.php3.29 ▲0.1945.94 ▼0.45
Add New Post /wp-admin/post-new.php5.54 ▲0.1190.22 ▼555.21
Media Library /wp-admin/upload.php3.12 ▲0.1231.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,815 ▲21916.41 ▲1.0012.88 ▲0.4844.20 ▼7.43
Dashboard /wp-admin2,973 ▲396.00 ▼0.08150.42 ▲7.83107.30 ▼2.15
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0170.25 ▲5.2288.39 ▲1.05
Add New Post /wp-admin/post-new.php1,604 ▲10618.61 ▼0.25427.95 ▲1.09106.77 ▼0.62
Media Library /wp-admin/upload.php1,822 ▲185.02 ▼0.00165.12 ▲13.08129.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:
LanguageFilesBlank linesComment linesLines of code
PHP2250204453
JavaScript215844

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 code0.44
Average class complexity26.00
▷ Minimum class complexity14.00
▷ Maximum class complexity38.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods25
▷ Static methods520.00%
▷ Public methods2496.00%
▷ Protected methods00.00%
▷ Private methods14.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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