Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.25MB] [CPU: ▲3,766.28ms] 75% from 4 tests
A check of server-side resources used by Workbench by Sovrn
Please fix the following
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 3,766.28ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.64 ▲1.18 | 64.43 ▲26.11 |
Dashboard /wp-admin | 4.64 ▲1.34 | 5,066.96 ▲5,019.65 |
Posts /wp-admin/edit.php | 4.69 ▲1.34 | 20,071.68 ▲20,016.18 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.26 | 5,100.51 ▲5,001.72 |
Media Library /wp-admin/upload.php | 4.46 ▲1.24 | 5,052.42 ▲5,017.63 |
Server storage [IO: ▲9.69MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 477 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
workbench_last_sent |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
sovrn_workbench_version |
sovrn_workbench_priority |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Workbench by Sovrn
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,185 ▲424 | 15.95 ▲1.60 | 32.11 ▲30.11 | 41.35 ▼1.36 |
Dashboard /wp-admin | 2,468 ▲262 | 7.17 ▲2.12 | 135.74 ▲28.14 | 95.72 ▲53.47 |
Posts /wp-admin/edit.php | 2,415 ▲315 | 3.97 ▲1.96 | 69.09 ▲27.32 | 79.90 ▲41.74 |
Add New Post /wp-admin/post-new.php | 1,660 ▲115 | 21.52 ▼1.90 | 611.17 ▼86.52 | 39.77 ▼25.98 |
Media Library /wp-admin/upload.php | 1,581 ▲178 | 4.86 ▲0.63 | 96.23 ▼7.89 | 92.49 ▲47.36 |
Uninstaller [IO: ▲9.69MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following itemsZombie WordPress options detected upon uninstall: 11 options
- Uninstall procedure had uncaught errors
- > Compile error in wp-content/plugins/sovrn-workbench/includes/class-sovrn_workbench.php+21
Cannot declare class Sovrn_Workbench, because the name is already in use
- Incomplete uninstall procedure, leaving 477 files (9.69MB) in the plugin directory
- (new file) LICENSE.txt
- (new file) admin/class-sovrn_workbench-admin.php
- (new file) admin/css/material-icons.css
- (new file) admin/css/countrySelect.min.css
- (new file) admin/css/dialog-polyfill.css
- (new file) LICENSE
- (new file) admin/css/countrySelect.css
- (new file) admin/css/font-awesome.min.css
- (new file) README.md
- (new file) README.txt
- ...
- can_compress_scripts
- sovrn_workbench_priority
- sovrn_workbench_version
- recovery_mode_email_last_sent
- sovrn_workbench-auth_token
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- workbench_last_sent
- ...
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sovrn-workbench/includes/vendor/mixpanel/mixpanel-php/examples/custom_consumer.php
- > /wp-content/plugins/sovrn-workbench/admin/layouts/layout-workbench-banner.php
- > /wp-content/plugins/sovrn-workbench/admin/layouts/dialogs/dialog-terms-and-conditions.php
- > /wp-content/plugins/sovrn-workbench/admin/layouts/layout-api-down.php
- > /wp-content/plugins/sovrn-workbench/includes/mixpanel/examples/error_handling.php
- > /wp-content/plugins/sovrn-workbench/includes/mixpanel/examples/custom_consumer.php
- > /wp-content/plugins/sovrn-workbench/includes/vendor/mixpanel/mixpanel-php/examples/error_handling.php
- 357× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > [ Base_MixpanelBase - line 194 ]
Queued message: {"event":"test_event","properties":{"mp_lib":"php","color":"red","token":"MIXPANEL_PROJECT_TOKEN","time":1697205504}}
- > [ Base_MixpanelBase - line 94 ]
destruct flush attempt #1
- > [ Base_MixpanelBase - line 94 ]
destruct flush attempt #1
- > [ Base_MixpanelBase - line 133 ]
Batch of 1 consumed, queue size is now 0
- > [ Base_MixpanelBase - line 76 ]
Using token: MIXPANEL_PROJECT_TOKEN
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/sovrn-workbench/includes/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:7
- > [ Base_MixpanelBase - line 94 ]
destruct flush attempt #1
- > [ Base_MixpanelBase - line 133 ]
Batch of 2 consumed, queue size is now 0
- > [ Base_MixpanelBase - line 121 ]
Batch consumption failed!
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/sovrn-workbench/includes/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:16
- > [ Base_MixpanelBase - line 194 ]
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: twitter, distribute, fbia, share, apple news...
sovrn-workbench/sovrn_workbench.php 77% from 13 tests
The main PHP file in "Workbench by Sovrn" ver. 1.3.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sovrn-workbench.php" instead of "sovrn_workbench.php")
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
Good job! No executable or dangerous file extensions detected39,765 lines of code in 354 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 250 | 7,073 | 11,549 | 25,083 |
CSS | 9 | 599 | 174 | 3,733 |
Markdown | 21 | 1,068 | 0 | 3,465 |
YAML | 29 | 162 | 93 | 3,309 |
JavaScript | 7 | 421 | 559 | 2,417 |
SVG | 18 | 0 | 10 | 994 |
JSON | 13 | 0 | 0 | 618 |
XML | 5 | 6 | 0 | 115 |
make | 2 | 11 | 0 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 80.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 17 | |
Traits | 2 | |
Classes | 201 | |
▷ Abstract classes | 6 | 2.99% |
▷ Concrete classes | 195 | 97.01% |
▷ Final classes | 4 | 2.05% |
Methods | 1,878 | |
▷ Static methods | 74 | 3.94% |
▷ Public methods | 1,607 | 85.57% |
▷ Protected methods | 82 | 4.37% |
▷ Private methods | 189 | 10.06% |
Functions | 375 | |
▷ Named functions | 68 | 18.13% |
▷ Anonymous functions | 307 | 81.87% |
Constants | 75 | |
▷ Global constants | 24 | 32.00% |
▷ Class constants | 51 | 68.00% |
▷ Public constants | 51 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
51 PNG files occupy 3.42MB with 1.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/close-icon.png | 2.09KB | 0.82KB | ▼ 60.73% |
admin/img/google-plus.png | 3.79KB | 2.21KB | ▼ 41.89% |
assets/images/placeholder-icon.png | 0.85KB | 0.82KB | ▼ 3.12% |
admin/img/twitter@2x.png | 6.74KB | 3.16KB | ▼ 53.04% |
admin/img/google-a-m-p-logo.png | 4.15KB | 2.27KB | ▼ 45.19% |