Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.77ms] Passed 4 tests
Server-side resources used by 今日头条搜索自动收录
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.71 ▼2.80 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.77 ▼4.08 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.52 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.49 ▼5.58 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.16 ▲1.37 |
settings /wp-admin/options-general.php?page=apoyl-toutiaopush-settings | 3.24 | 33.63 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
apoyl-toutiaopush-settings |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by 今日头条搜索自动收录
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.34 ▼0.00 | 1.71 ▲0.09 | 43.21 ▼5.71 |
Dashboard /wp-admin | 2,199 ▲19 | 5.59 ▼0.03 | 91.21 ▼8.41 | 38.37 ▼6.84 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.06 | 38.40 ▼2.49 | 36.98 ▲0.19 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.98 ▲0.28 | 608.51 ▼25.65 | 48.43 ▼3.16 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.06 | 95.94 ▼9.88 | 41.16 ▼1.74 |
settings /wp-admin/options-general.php?page=apoyl-toutiaopush-settings | 866 | 2.00 | 28.09 | 30.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: scanningtips in wp-content/plugins/apoyl-toutiaopush/admin/partials/admin-display.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-toutiaopush/admin/partials/admin-display.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/apoyl-toutiaopush/public/partials/public-display.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in apoyl-toutiaopush/assets to your readme.txt
apoyl-toutiaopush/apoyl-toutiaopush.php Passed 13 tests
"今日头条搜索自动收录" version 1.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
实现文章推送到今日头条搜索里,让今日头条搜索第一时间抓取你的内容
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin286 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 94 | 142 | 283 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin