Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.55ms] Passed 4 tests
This is a short check of server-side resources used by 新浪微博头条
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.35 ▼6.42 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.27 ▲0.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.00 ▼4.35 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.82 ▼3.49 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.85 ▲5.88 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
traum_toutiao_setting_cover |
traum_toutiao_setting_password |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
traum_toutiao_setting_appkey |
traum_toutiao_setting_check_box_enble |
traum_toutiao_setting_log_enble |
... |
Browser metrics Passed 4 tests
Checking browser requirements for 新浪微博头条
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.28 ▼1.09 | 1.71 ▼0.11 | 41.12 ▼7.10 |
Dashboard /wp-admin | 2,221 ▲29 | 5.86 ▲0.97 | 102.84 ▼8.80 | 74.26 ▲31.79 |
Posts /wp-admin/edit.php | 2,107 ▲14 | 2.01 ▲0.01 | 33.64 ▼2.62 | 37.02 ▲3.73 |
Add New Post /wp-admin/post-new.php | 1,681 ▲135 | 22.01 ▼1.28 | 761.77 ▲94.75 | 55.50 ▼26.76 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▲0.06 | 99.23 ▼3.28 | 86.22 ▲41.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/traum-toutiao/functions.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/traum-toutiao/options.php:15
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: toutiao, sina toutiao, sina
traum-toutiao/functions.php 92% from 13 tests
The entry point to "新浪微博头条" version 1.0.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("traum-toutiao.php" instead of "functions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin328 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 98 | 328 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected