Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼1.66ms] Passed 4 tests
This is a short check of server-side resources used by IMGspider - 图片采集抓取插件
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 43.43 ▲5.94 |
Dashboard /wp-admin | 3.65 ▲0.31 | 46.36 ▼10.64 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 50.76 ▲3.33 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 94.63 ▼2.42 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 35.19 ▲3.10 |
图片蜘蛛 /wp-admin/options-general.php?page=imgspider_pack | 3.61 | 39.95 |
Server storage [IO: ▲5.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by IMGspider - 图片采集抓取插件
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 14.14 ▼0.21 | 1.91 ▲0.40 | 41.42 ▲0.04 |
Dashboard /wp-admin | 2,200 ▲19 | 5.57 ▼0.04 | 90.62 ▼9.06 | 47.48 ▲8.30 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.97 ▼0.03 | 39.63 ▲4.11 | 40.67 ▲5.49 |
Add New Post /wp-admin/post-new.php | 1,546 ▲18 | 23.49 ▲0.39 | 640.83 ▼20.89 | 67.05 ▲9.22 |
Media Library /wp-admin/upload.php | 1,402 ▲8 | 4.22 ▼0.01 | 95.00 ▼5.54 | 47.83 ▲1.83 |
图片蜘蛛 /wp-admin/options-general.php?page=imgspider_pack | 1,923 | 7.29 | 97.90 | 201.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There were no tags found
imgspider/index.php 85% from 13 tests
"IMGspider - 图片采集抓取插件" version 2.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("imgspider.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,372 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 541 | 199 | 2,355 |
JavaScript | 9 | 0 | 44 | 13 |
CSS | 2 | 0 | 6 | 3 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 151)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 91.83 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 167.00 |
Average method complexity | 9.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 151.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 61 | 100.00% |
▷ Public methods | 59 | 96.72% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.28% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 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 compressed PNG files occupy 0.09MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/imgspider_pro_icon.png | 24.64KB | 24.63KB | 0.02% |
assets/img/icons.png | 28.97KB | 28.95KB | 0.06% |
setting/assets/img/icons.abf3bf80.png | 28.97KB | 28.95KB | 0.06% |
assets/img/imgspider_icon.png | 10.23KB | 10.23KB | 0.02% |