90% wp-accelerator-for-chinese

Code Review | WP Accelerator for Chinese

WordPress plugin WP Accelerator for Chinese scored 90% from 54 tests.

About plugin

  • Plugin page: wp-accelerator-fo...
  • Plugin version: 0.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: WP 3.8-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2016
  • Latest release: Feb 21, 2016
  • Number of updates: 25
  • Update frequency: every 0.7 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 5,370 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲0.75ms] Passed 4 tests

This is a short check of server-side resources used by WP Accelerator for Chinese
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.68 ▲1.77
Dashboard /wp-admin3.41 ▲0.1046.99 ▼1.16
Posts /wp-admin/edit.php3.52 ▲0.1649.00 ▼1.27
Add New Post /wp-admin/post-new.php5.99 ▲0.1095.73 ▲3.68
Media Library /wp-admin/upload.php3.33 ▲0.1041.41 ▲5.11
静态加速 /wp-admin/options-general.php?page=speedup4cn3.3031.58

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Accelerator for Chinese
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,451 ▼29514.01 ▼0.371.73 ▼0.1934.13 ▼11.60
Dashboard /wp-admin1,860 ▼3285.39 ▼0.50119.72 ▲12.1942.21 ▼5.28
Posts /wp-admin/edit.php2,096 ▲42.00 ▼0.0344.75 ▲3.8041.63 ▲5.83
Add New Post /wp-admin/post-new.php1,523 ▼1023.33 ▲0.14666.93 ▲49.8969.83 ▲10.57
Media Library /wp-admin/upload.php1,395 ▲104.29 ▲0.1099.93 ▼5.6047.18 ▲2.42
静态加速 /wp-admin/options-general.php?page=speedup4cn1,0382.0330.7585.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
2 plugin tags: accelerator, speedup

wp-accelerator-for-chinese/wp-accelerator-for-chinese.php 92% from 13 tests

The main PHP file in "WP Accelerator for Chinese" ver. 0.9.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 3.8")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected555 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3102144555

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity19.33
▷ Minimum class complexity3.00
▷ Maximum class complexity51.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods2464.86%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin