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
Installer ran successfully
Server metrics [RAM: ▲0.52MB] [CPU: ▲2.38ms] Passed 4 tests
A check of server-side resources used by WPTurbo -WordPress性能优化插件
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.04 ▲0.57 | 46.61 ▲2.40 |
Dashboard /wp-admin | 3.86 ▲0.55 | 51.06 ▼0.58 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 56.78 ▲8.14 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 92.63 ▲0.85 |
Media Library /wp-admin/upload.php | 3.72 ▲0.48 | 41.85 ▲6.85 |
Server storage [IO: ▲13.89MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 866 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for WPTurbo -WordPress性能优化插件
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲52 | 14.58 ▲0.02 | 1.97 ▲0.27 | 43.28 ▼1.63 |
Dashboard /wp-admin | 2,207 ▲30 | 5.59 ▼0.02 | 89.87 ▼14.76 | 70.47 ▲24.70 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.00 ▲0.03 | 39.20 ▲3.34 | 34.15 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,551 ▲20 | 22.90 ▼0.24 | 711.94 ▲44.66 | 66.16 ▲7.90 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.24 ▲0.08 | 100.21 ▼8.69 | 73.12 ▲23.72 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 23× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/BucketWorm.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/Bucket.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/BucketEncryption.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/MultipartUpload.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/BucketTransferAcceleration.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/Signature.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/RunAll.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/BucketLogging.php
- > /wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/samples/Image.php
- > /wp-content/plugins/wpturbo/index.php
- 670× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wpturbo/vendor/obs/esdk-obs-php/examples/DeleteObjectsSample.php on line 25
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Command\\Guzzle\\ResponseLocation\\AbstractLocation' not found in wp-content/plugins/wpturbo/vendor/guzzlehttp/guzzle-services/src/ResponseLocation/ReasonPhraseLocation.php:11
- > PHP Warning
require(wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/getSnapshot.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wpturbo/vendor/guzzlehttp/guzzle-services/tests/ResponseLocation/JsonLocationTest.php:18
- > PHP Fatal error
require(): Failed opening required '../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpturbo/vendor/obs/esdk-obs-php/examples/ConcurrentUploadPartSample.php on line 25
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/deleteBucketDomain.php on line 3
- > PHP Fatal error
require(): Failed opening required 'wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/getBucketWebsite.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/wpturbo/vendor/aliyuncs/oss-sdk-php/tests/OSS/Tests/GetLifecycleResultTest.php:11
- > PHP Warning
require(wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/createMediaVideoMontageJobs.php on line 3
- > PHP Warning
require(wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/wpturbo/vendor/qcloud/cos-sdk-v5/sample/deleteBucketGuetzli.php on line 3
- > PHP Warning
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: optimize, speedup, mysql, oss, cache...
wpturbo/index.php 85% from 13 tests
Analyzing the main PHP file in "WPTurbo -WordPress性能优化插件" version 2.0.1
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wpturbo.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 188 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected105,137 lines of code in 829 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 748 | 10,956 | 21,781 | 97,161 |
Markdown | 29 | 1,906 | 0 | 5,392 |
JSON | 18 | 1 | 0 | 2,052 |
JavaScript | 12 | 72 | 40 | 240 |
YAML | 11 | 37 | 3 | 211 |
XML | 2 | 1 | 0 | 32 |
make | 2 | 9 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
HTML | 1 | 1 | 0 | 9 |
Bourne Shell | 1 | 4 | 4 | 5 |
SVG | 2 | 0 | 0 | 4 |
CSS | 2 | 0 | 3 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 232.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 57 | |
Interfaces | 37 | |
Traits | 10 | |
Classes | 491 | |
▷ Abstract classes | 12 | 2.44% |
▷ Concrete classes | 479 | 97.56% |
▷ Final classes | 27 | 5.64% |
Methods | 3,354 | |
▷ Static methods | 372 | 11.09% |
▷ Public methods | 2,722 | 81.16% |
▷ Protected methods | 285 | 8.50% |
▷ Private methods | 347 | 10.35% |
Functions | 448 | |
▷ Named functions | 247 | 55.13% |
▷ Anonymous functions | 201 | 44.87% |
Constants | 506 | |
▷ Global constants | 90 | 17.79% |
▷ Class constants | 416 | 82.21% |
▷ Public constants | 390 | 93.75% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
tpl/assets/img/icons.abf3bf80.png | 28.97KB | 28.95KB | 0.06% |