Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▲0.57ms] Passed 4 tests
Server-side resources used by WP-Chinese-Optimize
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.50 ▲1.93 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.24 ▼1.86 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 46.56 ▲1.16 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.84 ▲1.05 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.37 ▲3.65 |
网站优化 /wp-admin/admin.php?page=xh_wp_optimize | 3.27 | 31.37 |
WP-Chinese-Optimize /wp-admin/admin.php?page=xh_wp_optimize_base | 3.11 | 31.17 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
WP-Chinese-Optimize: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲22 | 14.28 ▼0.25 | 1.74 ▼0.14 | 37.43 ▼2.80 |
Dashboard /wp-admin | 2,217 ▲39 | 5.59 ▼0.04 | 84.09 ▼18.57 | 41.00 ▼3.84 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 2.00 ▼0.02 | 39.99 ▲4.93 | 41.48 ▲4.61 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.23 ▲0.08 | 594.71 ▼81.30 | 52.70 ▼1.52 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.18 ▼0.02 | 97.89 ▼4.98 | 47.12 ▲2.90 |
网站优化 /wp-admin/admin.php?page=xh_wp_optimize | 917 | 2.00 | 21.89 | 73.10 |
WP-Chinese-Optimize /wp-admin/admin.php?page=xh_wp_optimize_base | 28 | 0.42 | 0.12 | 4.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Gettext_Translations' not found in wp-content/plugins/wp-chinese-optimize/class-xh-mo.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=xh_wp_optimize_base
- > Network (severe)
wp-admin/admin.php?page=xh_wp_optimize_base - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in wp-chinese-optimize/assets to your readme.txt
wp-chinese-optimize/init.php 85% from 13 tests
Analyzing the main PHP file in "WP-Chinese-Optimize" version 1.0.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-chinese-optimize.php" instead of "init.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected990 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 184 | 171 | 990 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 15.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 3.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 3 | 27.27% |
▷ Concrete classes | 8 | 72.73% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 66 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin