Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲2.09MB] [CPU: ▲15.96ms] Passed 4 tests
Analyzing server-side resources used by Servebolt Optimizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.93 ▲1.47 | 54.32 ▲11.20 |
Dashboard /wp-admin | 5.61 ▲2.30 | 65.97 ▲15.46 |
Posts /wp-admin/edit.php | 5.66 ▲2.30 | 70.02 ▲21.59 |
Add New Post /wp-admin/post-new.php | 8.20 ▲2.32 | 107.08 ▲15.57 |
Media Library /wp-admin/upload.php | 5.53 ▲2.30 | 61.30 ▲29.43 |
/wp-admin/options.php?page=servebolt-cf-image-resizing | 5.55 | 51.01 |
/wp-admin/options.php?page=servebolt-performance-optimizer-database | 5.58 | 57.58 |
/wp-admin/options.php?page=servebolt-fpc | 5.54 | 51.74 |
Performance Optimizer /wp-admin/admin.php?page=servebolt-performance-optimizer | 5.51 | 50.43 |
/wp-admin/options.php?page=servebolt-cf-cache-control | 5.54 | 49.32 |
/wp-admin/options.php?page=servebolt-performance-tools | 5.54 | 49.92 |
General Settings /wp-admin/admin.php?page=servebolt-general-settings | 5.52 | 49.49 |
/wp-admin/options.php?page=servebolt-menu-optimizer | 5.57 | 59.00 |
/wp-admin/options.php?page=servebolt-menu-cache | 5.54 | 49.22 |
Cache /wp-admin/admin.php?page=servebolt-cache-purge-control | 5.60 | 54.69 |
Server storage [IO: ▲2.33MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 576 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_sb_queue |
New WordPress options |
---|
servebolt_ajax_nonce |
widget_recent-posts |
widget_theysaidso_widget |
servebolt_migration_version |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Servebolt Optimizer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,038 ▲291 | 13.42 ▼0.86 | 11.31 ▲9.65 | 41.51 ▼2.49 |
Dashboard /wp-admin | 2,334 ▲160 | 5.65 ▼0.03 | 82.77 ▼16.02 | 75.74 ▲34.19 |
Posts /wp-admin/edit.php | 2,219 ▲116 | 2.39 ▲0.44 | 36.95 ▼3.03 | 33.53 ▼2.69 |
Add New Post /wp-admin/post-new.php | 1,875 ▲349 | 22.86 ▼0.30 | 777.83 ▲70.22 | 38.27 ▼17.43 |
Media Library /wp-admin/upload.php | 1,546 ▲143 | 4.30 ▲0.11 | 86.09 ▼7.59 | 94.81 ▲52.56 |
/wp-admin/options.php?page=servebolt-cf-image-resizing | 977 | 2.31 | 24.45 | 36.39 |
/wp-admin/options.php?page=servebolt-performance-optimizer-database | 1,082 | 2.21 | 22.46 | 32.26 |
/wp-admin/options.php?page=servebolt-fpc | 794 | 1.52 | 7.16 | 24.58 |
Performance Optimizer /wp-admin/admin.php?page=servebolt-performance-optimizer | 998 | 2.31 | 23.45 | 31.82 |
/wp-admin/options.php?page=servebolt-cf-cache-control | 2,007 | 2.66 | 30.66 | 51.30 |
/wp-admin/options.php?page=servebolt-performance-tools | 1,717 | 2.91 | 27.56 | 60.58 |
General Settings /wp-admin/admin.php?page=servebolt-general-settings | 1,003 | 2.18 | 22.60 | 32.07 |
/wp-admin/options.php?page=servebolt-menu-optimizer | 1,128 | 2.18 | 29.41 | 33.01 |
/wp-admin/options.php?page=servebolt-menu-cache | 1,850 | 2.72 | 29.37 | 53.81 |
Cache /wp-admin/admin.php?page=servebolt-cache-purge-control | 1,285 | 2.24 | 26.82 | 29.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options.php?page=servebolt-menu-optimizer
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 172× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Servebolt\\Optimizer\\Dependencies\\GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/servebolt-optimizer/src/Dependencies/GuzzleHttp/Promise/AggregateException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servebolt-optimizer/vendor/composer/installers/src/Composer/Installers/MiaoxingInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servebolt-optimizer/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Servebolt\\Optimizer\\Dependencies\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/servebolt-optimizer/src/Dependencies/GuzzleHttp/Psr7/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Servebolt\\Optimizer\\Dependencies\\Servebolt\\Sdk\\Endpoints\\AbstractEndpoint' not found in wp-content/plugins/servebolt-optimizer/src/Dependencies/Servebolt/Sdk/Endpoints/Environment.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Servebolt\\Optimizer\\Dependencies\\Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/servebolt-optimizer/src/Dependencies/Psr/Http/Client/NetworkExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/servebolt-optimizer/vendor/composer/installers/src/Composer/Installers/TuskInstaller.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Servebolt\\Optimizer\\Dependencies\\Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/servebolt-optimizer/src/Dependencies/Psr/Http/Message/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'Servebolt\\Optimizer\\Exceptions\\ApiError' not found in wp-content/plugins/servebolt-optimizer/src/Servebolt/Exceptions/ServeboltApiError.php:9
- > PHP Fatal error
Uncaught Error: Class 'Servebolt\\Optimizer\\Dependencies\\GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/servebolt-optimizer/src/Dependencies/GuzzleHttp/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/options.php?page=servebolt-fpc
- > Network (severe)
wp-admin/admin.php?page=servebolt-html-cache - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: cache, wp-cli, performance, optimization, html cache...
servebolt-optimizer/servebolt-optimizer.php 92% from 13 tests
The main file in "Servebolt Optimizer" v. 3.5.25 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin39,597 lines of code in 557 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 528 | 6,348 | 18,208 | 35,880 |
JavaScript | 14 | 191 | 659 | 2,389 |
JSON | 1 | 0 | 0 | 888 |
CSS | 5 | 65 | 25 | 351 |
Markdown | 4 | 24 | 0 | 54 |
XML | 1 | 0 | 0 | 21 |
YAML | 1 | 2 | 0 | 11 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 9.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 114.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 108 | |
Interfaces | 34 | |
Traits | 22 | |
Classes | 393 | |
▷ Abstract classes | 13 | 3.31% |
▷ Concrete classes | 380 | 96.69% |
▷ Final classes | 35 | 9.21% |
Methods | 2,472 | |
▷ Static methods | 539 | 21.80% |
▷ Public methods | 1,736 | 70.23% |
▷ Protected methods | 109 | 4.41% |
▷ Private methods | 627 | 25.36% |
Functions | 413 | |
▷ Named functions | 155 | 37.53% |
▷ Anonymous functions | 258 | 62.47% |
Constants | 93 | |
▷ Global constants | 24 | 25.81% |
▷ Class constants | 69 | 74.19% |
▷ Public constants | 58 | 84.06% |
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.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/cancel.png | 1.21KB | 1.23KB | 0.00% |
assets/dist/images/servebolt-logo.png | 14.35KB | 7.51KB | ▼ 47.63% |
assets/dist/images/servebolt-icon.png | 3.34KB | 2.34KB | ▼ 30.10% |
assets/dist/images/checked.png | 0.75KB | 0.76KB | 0.00% |