Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.34ms] Passed 4 tests
Analyzing server-side resources used by Realtimehot Weibo(微博热搜榜)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.16 ▼5.90 |
Dashboard /wp-admin | 3.53 ▲0.23 | 1,220.16 ▲1,166.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.91 ▲1.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.36 ▼16.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.00 ▲4.20 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Realtimehot Weibo(微博热搜榜)
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲169 | 14.46 ▲0.09 | 1.89 ▲0.13 | 40.62 ▼3.86 |
Dashboard /wp-admin | 2,285 ▲108 | 5.12 ▲0.23 | 110.85 ▲0.37 | 54.01 ▲8.28 |
Posts /wp-admin/edit.php | 2,089 ▲11 | 2.12 ▲0.13 | 35.44 ▼0.54 | 31.30 ▼3.56 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.28 ▲0.10 | 669.71 ▼27.08 | 55.56 ▼1.63 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.17 ▲0.02 | 100.75 ▲3.61 | 42.44 ▼0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/realtimehot-weibo/realtimehot-weibo.php:62
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png)
realtimehot-weibo/realtimehot-weibo.php Passed 13 tests
This is the main PHP file of "Realtimehot Weibo(微博热搜榜)" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
在WordPress的仪表盘、小工具、文章、页面等地方加入微博热搜榜,随时随地 get 实时微博热搜,一键直达!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin117 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 9 | 81 |
Markdown | 1 | 29 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.28MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 62.54KB | 14.15KB | ▼ 77.37% |
screenshot-1.png | 154.91KB | 48.23KB | ▼ 68.86% |
screenshot-2.png | 67.69KB | 18.46KB | ▼ 72.73% |