Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼0.93ms] Passed 4 tests
An overview of server-side resources used by WPSpeed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.46 | 45.09 ▲6.18 |
Dashboard /wp-admin | 3.65 ▲0.30 | 48.66 ▼11.30 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 53.10 ▲8.61 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 92.43 ▼2.16 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 37.05 ▲3.56 |
WPSpeed Settings /wp-admin/options-general.php?page=wpspeed | 5.47 | 49.63 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- The plugin illegally modified 36 files (1,398.71KB) outside of "wp-content/plugins/wpspeed/" and "wp-content/uploads/"
- (new file) wp-content/cache/wpspeed/412cf65f1050d0700a95b45eaab38773.wpc
- (new file) wp-content/cache/wpspeed/25373ec61baf57c006e0566f2b19c81a.wpc
- (new file) wp-content/cache/wpspeed/07b1b3353c8423d364c28d3764ac4647.wpc
- (new file) wp-content/cache/wpspeed/429d0f2647681554e91d8258e9b2060f.wpc
- (new file) wp-content/cache/wpspeed/008f9c2c1d9ff319c09a9c6b61bbc15a.wpc
- (new file) wp-content/cache/wpspeed/3ad932f6e141a72fe653a5f9ed8a75b6.wpc
- (new file) wp-content/cache/wpspeed/10531e46d7b5f7883ea825104dfca023.wpc
- (new file) wp-content/cache/wpspeed/3c3a5dff2cfa0aaae135d83a8ed60b56.wpc
- (new file) wp-content/cache/wpspeed/14064270ec3f4e33152463234dbad782.wpc
- (new file) wp-content/cache/wpspeed/131d01f9716b7b3609436487bf439376.wpc
- ...
Filesystem: 274 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPSpeed
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,765 ▲18 | 14.28 ▲0.07 | 2.21 ▲0.61 | 37.46 ▼6.03 |
Dashboard /wp-admin | 2,221 ▲47 | 5.58 ▼0.07 | 94.16 ▼8.56 | 42.44 ▼2.74 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.95 ▲0.01 | 39.75 ▼0.19 | 36.50 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.64 ▲0.44 | 667.30 ▼7.58 | 53.90 ▼4.41 |
Media Library /wp-admin/upload.php | 1,426 ▲32 | 4.21 ▼0.06 | 94.87 ▼2.76 | 39.91 ▼0.59 |
WPSpeed Settings /wp-admin/options-general.php?page=wpspeed | 7,393 | 3.65 | 152.01 | 67.85 |
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 were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 76× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wpspeed/src/Core/LightImages.php
- > /wp-content/plugins/wpspeed/src/Core/Css/CssSearchObject.php
- > /wp-content/plugins/wpspeed/src/Core/Interfaces/Utility.php
- > /wp-content/plugins/wpspeed/src/Core/Html/LinkBuilder.php
- > /wp-content/plugins/wpspeed/src/Core/Css/Sprite/CssSpriteGen.php
- > /wp-content/plugins/wpspeed/src/Core/Css/Callbacks/HandleAtRules.php
- > /wp-content/plugins/wpspeed/src/Core/Combiner.php
- > /wp-content/plugins/wpspeed/src/Core/Css/Sprite/Handlers/Imagick.php
- > /wp-content/plugins/wpspeed/src/Core/Css/Callbacks/CallbackBase.php
- > /wp-content/plugins/wpspeed/src/Core/Http2.php
- 48× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPSFramework\\Document\\Document' not found in wp-content/plugins/wpspeed/vendor/wpspeed/framework/src/Document/Csv.php:19
- > PHP Fatal error
Uncaught Error: Interface 'WPSFramework\\Session\\SegmentInterface' not found in wp-content/plugins/wpspeed/vendor/wpspeed/framework/src/Session/Segment.php:18
- > PHP Fatal error
Trait 'WPSpeed\\RegexTokenizer\\Base' not found in wp-content/plugins/wpspeed/src/Core/Optimizers/RegexTokenizer/Html.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WPSpeed\\Platform\\Plugin' not found in wp-content/plugins/wpspeed/src/Admin/templates/compiled/b3b6c12f77754b3a89c70f20feca8ffdd4f5082e.php:18
- > PHP Fatal error
Uncaught Error: Class 'WPSFramework\\Registry\\AbstractRegistryFormat' not found in wp-content/plugins/wpspeed/vendor/wpspeed/framework/src/Registry/Format/Json.php:17
- > PHP Fatal error
Uncaught Error: Interface 'WPSFramework\\Mvc\\Compiler\\CompilerInterface' not found in wp-content/plugins/wpspeed/vendor/wpspeed/framework/src/Mvc/Compiler/Blade.php:14
- > PHP Fatal error
Uncaught Error: Interface 'WPSFramework\\Filesystem\\FilesystemInterface' not found in wp-content/plugins/wpspeed/vendor/wpspeed/framework/src/Filesystem/Hybrid.php:16
- > PHP Fatal error
Trait 'WPSpeed\\RegexTokenizer\\Base' not found in wp-content/plugins/wpspeed/src/Core/Optimizers/Minify/Base.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WPSFramework\\Application\\Application' not found in wp-content/plugins/wpspeed/src/Admin/Application.php:17
- > PHP Fatal error
Uncaught Error: Class 'WPSFramework\\Mvc\\Controller' not found in wp-content/plugins/wpspeed/src/Admin/Controller/Utility.php:22
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Contributors: Plugin contributors not specified
wpspeed/wpspeed.php 92% from 13 tests
"WPSpeed" version 2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 499 characters long)
Code Analysis 97% from 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
There were no executable files found in this plugin25,494 lines of code in 208 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 186 | 5,801 | 11,783 | 23,841 |
JavaScript | 13 | 281 | 227 | 1,101 |
CSS | 4 | 86 | 28 | 429 |
Markdown | 1 | 26 | 0 | 59 |
JSON | 1 | 0 | 0 | 54 |
XML | 1 | 0 | 0 | 8 |
HTML | 2 | 0 | 0 | 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 125)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 223.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 125.00 |
Code structure | ||
---|---|---|
Namespaces | 43 | |
Interfaces | 20 | |
Traits | 7 | |
Classes | 148 | |
▷ Abstract classes | 18 | 12.16% |
▷ Concrete classes | 130 | 87.84% |
▷ Final classes | 2 | 1.54% |
Methods | 1,566 | |
▷ Static methods | 577 | 36.85% |
▷ Public methods | 1,323 | 84.48% |
▷ Protected methods | 179 | 11.43% |
▷ Private methods | 64 | 4.09% |
Functions | 72 | |
▷ Named functions | 28 | 38.89% |
▷ Anonymous functions | 44 | 61.11% |
Constants | 43 | |
▷ Global constants | 35 | 81.40% |
▷ Class constants | 8 | 18.60% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
32 compressed PNG files occupy 0.07MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/images/wpspeed-logo.png | 14.57KB | 5.27KB | ▼ 63.81% |
media/core/icons/sprite_gen.png | 1.57KB | 1.59KB | 0.00% |
media/images/bkg_tooltip_left.png | 0.74KB | 0.76KB | 0.00% |
media/core/icons/deluxe.png | 1.96KB | 2.01KB | 0.00% |
media/core/icons/lazyload.png | 1.73KB | 1.73KB | 0.00% |