Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/changyan/sohuchangyan.php+12
Constant WP_DEBUG already defined
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.94ms] Passed 4 tests
This is a short check of server-side resources used by 畅言评论系统
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.12 ▼44.57 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.78 ▼62.32 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.91 ▼44.78 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.81 ▼88.10 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.51 ▼31.99 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for 畅言评论系统
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.74 ▲0.43 | 1.92 ▲0.01 | 46.24 ▲1.46 |
Dashboard /wp-admin | 2,227 ▲21 | 5.79 ▲0.93 | 109.31 ▲4.69 | 85.38 ▲41.73 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 2.00 ▼0.01 | 39.69 ▼3.13 | 45.93 ▲8.92 |
Add New Post /wp-admin/post-new.php | 1,696 ▲170 | 22.50 ▲5.00 | 726.19 ▲21.40 | 53.17 ▼9.33 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.27 ▲0.04 | 108.11 ▲6.06 | 87.76 ▲39.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/changyan/sohuchangyan.php+12
Constant WP_DEBUG already defined
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 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 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require_once(CHANGYAN_PLUGIN_PATH/Handler.php): failed to open stream: No such file or directory in wp-content/plugins/changyan/setup.php on line 3
- > PHP Warning
Use of undefined constant CHANGYAN_PLUGIN_PATH - assumed 'CHANGYAN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/changyan/audit.php on line 2
- > PHP Warning
Use of undefined constant CHANGYAN_PLUGIN_PATH - assumed 'CHANGYAN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/changyan/Handler.php on line 4
- > PHP Warning
Use of undefined constant CHANGYAN_PLUGIN_PATH - assumed 'CHANGYAN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/changyan/comments_sohu.php on line 2
- > PHP Notice
Undefined variable: wp_version in wp-content/plugins/changyan/sohuchangyan.php on line 29
- > PHP Warning
require_once(CHANGYAN_PLUGIN_PATH/Handler.php): failed to open stream: No such file or directory in wp-content/plugins/changyan/audit.php on line 2
- > PHP Warning
require_once(CHANGYAN_PLUGIN_PATH/Synchronizer.php): failed to open stream: No such file or directory in wp-content/plugins/changyan/Handler.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_comment_pages_count() in wp-content/plugins/changyan/comments_seo.php:43
- > PHP Warning
require_once(CHANGYAN_PLUGIN_PATH/Handler.php): failed to open stream: No such file or directory in wp-content/plugins/changyan/comments_sohu.php on line 2
- > PHP Warning
require_once(CHANGYAN_PLUGIN_PATH/Handler.php): failed to open stream: No such file or directory in wp-content/plugins/changyan/settings.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (文章/页面下的评论框,支持用新浪微博、QQ、人人、搜狐等社交账号登录。), #2 (评论一键同步至社交网络,为您的网站带来更多流量。), #3 (评论列表多级回复样式简洁明快。)
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
changyan/sohuchangyan.php 85% from 13 tests
"畅言评论系统" version 2.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("changyan.php" instead of "sohuchangyan.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 206 characters long)
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
No dangerous file extensions were detected2,388 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 266 | 450 | 1,918 |
HTML | 3 | 41 | 0 | 470 |
PHP code Passed 2 tests
An overview 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.34 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 2 | 2.82% |
▷ Public methods | 54 | 76.06% |
▷ Protected methods | 2 | 2.82% |
▷ Private methods | 15 | 21.13% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 41 | |
▷ Global constants | 16 | 39.02% |
▷ Class constants | 25 | 60.98% |
▷ Public constants | 25 | 100.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
5 PNG files occupy 0.42MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 33.61KB | 16.61KB | ▼ 50.57% |
logo.png | 3.22KB | 0.49KB | ▼ 84.89% |
changyan.png | 2.29KB | 1.15KB | ▼ 49.87% |
screenshot-2.png | 90.36KB | 41.78KB | ▼ 53.77% |
screenshot-3.png | 300.73KB | 131.54KB | ▼ 56.26% |