Benchmarks
Plugin footprint 82% 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.23MB] [CPU: ▲0.62ms] 75% from 4 tests
Server-side resources used by 胖鼠采集(Fat Rat Collect) 微信知乎简书腾讯新闻列表分页采集, 还有自动采集、自动发布、自动标签、等多项功能。开源插件
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 3,056.30ms on /wp-admin/admin.php?page=frc-spider)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 41.96 ▲0.05 |
Dashboard /wp-admin | 3.57 ▲0.27 | 51.12 ▲3.07 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 51.19 ▼2.35 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 98.68 ▲5.49 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 40.55 ▲1.71 |
采集中心 /wp-admin/admin.php?page=frc-spider | 3.73 | 3,056.30 |
数据桶中心 /wp-admin/admin.php?page=frc-data | 3.41 | 35.82 |
胖鼠工具箱 /wp-admin/admin.php?page=frc-kit | 3.41 | 37.08 |
添加/修改(配置) /wp-admin/admin.php?page=frc-options-add-edit | 3.41 | 35.98 |
数据列表 /wp-admin/admin.php?page=frc-data-detail | 3.41 | 33.05 |
配置中心 /wp-admin/admin.php?page=frc-options | 3.41 | 37.37 |
Debugging /wp-admin/admin.php?page=frc-debugging | 3.41 | 35.37 |
Server storage [IO: ▲4.86MB] [DB: ▲0.08MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 642 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_frc_options |
wp_frc_post |
New WordPress options |
---|
widget_recent-comments |
frc_validation_notice |
widget_theysaidso_widget |
can_compress_scripts |
fat_rat_collect_api_code |
frc_install_time |
widget_recent-posts |
theysaidso_admin_options |
frc_db_version |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by 胖鼠采集(Fat Rat Collect) 微信知乎简书腾讯新闻列表分页采集, 还有自动采集、自动发布、自动标签、等多项功能。开源插件
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.25 ▼0.24 | 1.73 ▲0.02 | 40.35 ▼18.02 |
Dashboard /wp-admin | 2,240 ▲63 | 5.56 ▼0.11 | 80.95 ▼16.09 | 85.87 ▲42.52 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.00 ▼0.07 | 38.18 ▼4.42 | 43.90 ▲6.72 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 23.23 ▼0.09 | 685.77 ▼14.71 | 55.49 ▲0.34 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.18 ▼0.03 | 105.24 ▲5.77 | 77.10 ▲32.49 |
采集中心 /wp-admin/admin.php?page=frc-spider | 1,909 | 1.84 | 25.59 | 182.54 |
数据桶中心 /wp-admin/admin.php?page=frc-data | 1,081 | 1.93 | 25.98 | 47.27 |
胖鼠工具箱 /wp-admin/admin.php?page=frc-kit | 1,267 | 1.82 | 26.18 | 118.74 |
添加/修改(配置) /wp-admin/admin.php?page=frc-options-add-edit | 1,266 | 1.83 | 28.17 | 104.07 |
数据列表 /wp-admin/admin.php?page=frc-data-detail | 1,747 | 2.88 | 32.47 | 60.51 |
配置中心 /wp-admin/admin.php?page=frc-options | 1,088 | 1.93 | 29.20 | 64.63 |
Debugging /wp-admin/admin.php?page=frc-debugging | 1,010 | 1.82 | 26.15 | 82.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- widget_theysaidso_widget
- fat_rat_collect_api_code
- widget_recent-comments
- can_compress_scripts
- frc_report_permissions_time
- frc_install_time
- frc_validation_notice
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=frc-spider
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% from 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
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fat-rat-collect/views/frc-spider.php
- 244× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Process\\Pipes\\AbstractPipes' not found in wp-content/plugins/fat-rat-collect/vendor/symfony/process/Pipes/WindowsPipes.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Cache\\Adapter\\Common\\PhpCachePool' not found in wp-content/plugins/fat-rat-collect/vendor/cache/adapter-common/AbstractCachePool.php:26
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/fat-rat-collect/vendor/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/fat-rat-collect/vendor/symfony/var-dumper/Caster/EnumStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'League\\Flysystem\\Exception' not found in wp-content/plugins/fat-rat-collect/vendor/league/flysystem/src/FileExistsException.php:7
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/fat-rat-collect/vendor/guzzlehttp/guzzle/src/Exception/ClientException.php:8
- > PHP Fatal error
Uncaught Error: Class 'vierbergenlars\\LibJs\\JObject' not found in wp-content/plugins/fat-rat-collect/vendor/vierbergenlars/php-semver/src/vierbergenlars/LibJs/JSArray.php:29
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/fat-rat-collect/vendor/psr/cache/src/CacheItemInterface.php on line 104
- > PHP Fatal error
Uncaught Error: Interface 'Tightenco\\Collect\\Contracts\\Support\\CanBeEscapedWhenCastToString' not found in wp-content/plugins/fat-rat-collect/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Process\\Exception\\ExceptionInterface' not found in wp-content/plugins/fat-rat-collect/vendor/symfony/process/Exception/RuntimeException.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: caiji, pangshu, seo
fat-rat-collect/fatratcollect.php 85% from 13 tests
The main PHP script in "胖鼠采集(Fat Rat Collect) 微信知乎简书腾讯新闻列表分页采集, 还有自动采集、自动发布、自动标签、等多项功能。开源插件" version 2.6.6 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 401 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("fat-rat-collect.php" instead of "fatratcollect.php")
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 plugin65,959 lines of code in 583 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 446 | 7,691 | 19,777 | 42,079 |
CSS | 5 | 1,708 | 33 | 9,272 |
Markdown | 55 | 1,995 | 0 | 5,958 |
JavaScript | 22 | 1,353 | 973 | 4,657 |
JSON | 37 | 1 | 0 | 3,469 |
HTML | 4 | 3 | 0 | 280 |
YAML | 9 | 29 | 1 | 142 |
XML | 3 | 5 | 0 | 53 |
Bourne Shell | 1 | 17 | 10 | 40 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 586.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 73 | |
Interfaces | 67 | |
Traits | 26 | |
Classes | 335 | |
▷ Abstract classes | 14 | 4.18% |
▷ Concrete classes | 321 | 95.82% |
▷ Final classes | 46 | 14.33% |
Methods | 2,967 | |
▷ Static methods | 563 | 18.98% |
▷ Public methods | 2,559 | 86.25% |
▷ Protected methods | 208 | 7.01% |
▷ Private methods | 200 | 6.74% |
Functions | 532 | |
▷ Named functions | 205 | 38.53% |
▷ Anonymous functions | 327 | 61.47% |
Constants | 256 | |
▷ Global constants | 50 | 19.53% |
▷ Class constants | 206 | 80.47% |
▷ Public constants | 169 | 82.04% |
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
11 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 10.23KB | 4.53KB | ▼ 55.73% |
images/fat-rat-nav-v-yellow.png | 0.88KB | 0.68KB | ▼ 23.34% |
images/fat-rat-kit.png | 0.89KB | 0.85KB | ▼ 4.70% |
images/fat-rat-128x128.png | 8.08KB | 3.97KB | ▼ 50.86% |
vendor/jaeger/querylist/logo.png | 15.24KB | 5.24KB | ▼ 65.62% |