90% woocommerce-chinese-style

Code Review | WooCommerce Chinese Style

WordPress plugin WooCommerce Chinese Style scored 90% from 54 tests.

About plugin

  • Plugin page: woocommerce-chine...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2014
  • Latest release: Oct 9, 2014
  • Number of updates: 8
  • Update frequency: every 6.1 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.00ms] Passed 4 tests

An overview of server-side resources used by WooCommerce Chinese Style
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.32 ▼4.00
Dashboard /wp-admin3.31 ▲0.0046.82 ▲0.41
Posts /wp-admin/edit.php3.36 ▲0.0047.73 ▲0.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.45 ▼2.90
Media Library /wp-admin/upload.php3.23 ▲0.0031.73 ▼1.47

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Chinese Style
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.161.62 ▼0.1039.77 ▼0.32
Dashboard /wp-admin2,206 ▲184.84 ▼1.0398.42 ▼2.0937.62 ▼7.93
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0334.98 ▼0.9832.62 ▼1.08
Add New Post /wp-admin/post-new.php1,520 ▼1323.22 ▼0.13642.30 ▼18.4950.68 ▼17.27
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.1193.16 ▼1.2142.37 ▲0.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: chinese, china, woocommerce

woocommerce-chinese-style/woocommerce-chinese-style.php Passed 13 tests

The main PHP file in "WooCommerce Chinese Style" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
57 characters long description:
Let Woocommerce more suitable for Chinese people to use !

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin317 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36130317

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin