Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼142.19ms] Passed 4 tests
This is a short check of server-side resources used by 蜘蛛-关键字
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▲0.16 | 37.26 ▼0.38 |
Dashboard /wp-admin | 3.22 ▲0.17 | 50.49 ▲2.73 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 46.60 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.58 ▲0.15 | 93.20 ▼569.64 |
Media Library /wp-admin/upload.php | 3.17 ▲0.17 | 32.28 ▲1.07 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 122 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_baiduseo_zhizhu |
wp_baiduseo_keywords |
wp_baiduseo_zhizhu_suoyin |
New WordPress options |
---|
keyspider_tongji |
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 / | 3,723 ▲127 | 16.36 ▲0.62 | 9.13 ▲0.56 | 44.85 ▼4.10 |
Dashboard /wp-admin | 2,987 ▲56 | 5.91 ▼0.08 | 158.46 ▲3.04 | 109.88 ▲1.80 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.02 | 67.32 ▼11.76 | 82.54 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,628 ▲34 | 21.09 ▲2.34 | 305.27 ▼90.12 | 101.11 ▼8.09 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.03 ▲0.01 | 151.61 ▼5.74 | 122.90 ▲2.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure failed, leaving 3 tables in the database
- wp_baiduseo_zhizhu
- wp_baiduseo_zhizhu_suoyin
- wp_baiduseo_keywords
- Zombie WordPress options detected upon uninstall: 1 option
- keyspider_tongji
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: The plugin tags were not defined
key-spider/key_spider.php 92% from 13 tests
The main file in "蜘蛛-关键字" v. 0.0.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("key-spider.php" instead of "key_spider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,657 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 268 | 42 | 2,423 |
SVG | 1 | 356 | 3 | 195 |
JavaScript | 23 | 0 | 0 | 34 |
CSS | 5 | 0 | 5 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
layui/css/modules/layer/default/icon-ext.png | 9.74KB | 3.05KB | ▼ 68.67% |
image/jianhao.png | 1.67KB | 0.29KB | ▼ 82.33% |
layui/css/modules/layer/default/icon.png | 12.83KB | 4.39KB | ▼ 65.77% |
image/jiahao.png | 2.48KB | 0.41KB | ▼ 83.44% |