Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲3.64MB] [CPU: ▲2.69ms] Passed 4 tests
Analyzing server-side resources used by WP-Stateless - Google Cloud Storage
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.02 ▲3.56 | 51.24 ▲10.81 |
Dashboard /wp-admin | 6.96 ▲3.66 | 58.07 ▲9.64 |
Posts /wp-admin/edit.php | 7.07 ▲3.72 | 54.33 ▲3.22 |
Add New Post /wp-admin/post-new.php | 9.57 ▲3.68 | 92.28 ▼12.90 |
Media Library /wp-admin/upload.php | 6.88 ▲3.66 | 50.67 ▲17.88 |
Stateless Settings /wp-admin/upload.php?page=stateless-settings | 7.00 | 46.49 |
Stateless Setup /wp-admin/upload.php?page=stateless-setup | 6.86 | 40.43 |
Dashboard /wp-admin/plugins.php?page=meta-box | 6.90 | 45.20 |
Licenses /wp-admin/upload.php?page=stateless-settings&page=wpcloud/wp-stateless_licenses | 6.57 | 45.15 |
Server storage [IO: ▲10.30MB] [DB: ▲0.05MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2,145 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_sm_sync |
New WordPress options |
---|
can_compress_scripts |
sm_sync_db_version |
sm_mode |
wp-stateless-current-version |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
dismissed_notice_stateless_cache_busting |
udl_wpcloud/wp-stateless-url |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Stateless - Google Cloud Storage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.38 ▼0.27 | 1.72 ▼0.05 | 44.34 ▲0.24 |
Dashboard /wp-admin | 2,235 ▲61 | 5.66 ▲0.09 | 92.48 ▲0.87 | 38.57 ▲2.10 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 2.05 ▲0.11 | 34.80 ▼1.65 | 32.20 ▲1.07 |
Add New Post /wp-admin/post-new.php | 1,541 ▲6 | 22.01 ▲3.77 | 688.95 ▲62.60 | 53.24 ▼11.74 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.28 ▲0.07 | 101.51 ▲4.36 | 45.56 ▲1.96 |
Stateless Settings /wp-admin/upload.php?page=stateless-settings | 3,696 | 4.29 | 134.98 | 36.79 |
Stateless Setup /wp-admin/upload.php?page=stateless-setup | 810 | 2.18 | 23.37 | 18.18 |
Dashboard /wp-admin/plugins.php?page=meta-box | 1,756 | 13.02 | 264.33 | 63.59 |
Licenses /wp-admin/upload.php?page=stateless-settings&page=wpcloud/wp-stateless_licenses | 28 | 0.42 | 0.09 | 4.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 50% 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
- Zombie tables were found after uninstall: 1 table
- wp_sm_sync
- The uninstall procedure has failed, leaving 13 options in the database
- wp-stateless-current-version
- ud_ping_wpcloudwp-stateless
- wp_sm_version
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- udl_wpcloud/wp-stateless-url
- dismissed_notice_stateless_cache_busting
- db_upgraded
- ...
Smoke tests 25% 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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-stateless/vendor/udx/lib-ud-api-client/static/templates/admin-notice.php
- > /wp-content/plugins/wp-stateless/vendor/deliciousbrains/wp-background-processing/tests/bootstrap.php
- > /wp-content/plugins/wp-stateless/vendor/wpmetabox/meta-box/inc/templates/audio.php
- > /wp-content/plugins/wp-stateless/vendor/wpmetabox/meta-box/inc/templates/media.php
- > /wp-content/plugins/wp-stateless/vendor/wpmetabox/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/wp-stateless/vendor/wpmetabox/meta-box/inc/templates/upload.php
- > /wp-content/plugins/wp-stateless/vendor/wpmetabox/meta-box/inc/templates/video.php
- 923× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:25
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-stateless/lib/Google/vendor/monolog/monolog/src/Monolog/Handler/MailHandler.php:24
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wp-stateless/lib/Google/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/wp-stateless/lib/Google/src/Service/Storage/Notification.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Console\\Formatter\\WrappableOutputFormatterInterface' not found in wp-content/plugins/wp-stateless/vendor/symfony/console/Formatter/OutputFormatter.php:22
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\BadResponseException' not found in wp-content/plugins/wp-stateless/lib/Google/vendor/guzzlehttp/guzzle/src/Exception/ServerException.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-stateless/vendor/wpmetabox/meta-box/tests/009-datetime.php:2
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/wp-stateless/lib/Google/src/Service/Storage/TestIamPermissionsResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib3\\Crypt\\EC\\Curves\\secp192r1' not found in wp-content/plugins/wp-stateless/lib/Google/vendor/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/prime192v1.php:16
- > PHP Fatal error
Trait 'phpseclib3\\System\\SSH\\Common\\Traits\\ReadBytes' not found in wp-content/plugins/wp-stateless/lib/Google/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php on line 49
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/upload.php?page=stateless-settings&page=wpcloud/wp-stateless_licenses
- > Network (severe)
wp-admin/upload.php?page=stateless-settings&page=wpcloud/wp-stateless_licenses - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: stateless, media, cdn, backup, uploads...
wp-stateless/wp-stateless-media.php 85% from 13 tests
"WP-Stateless - Google Cloud Storage" version 3.2.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-stateless.php" instead of "wp-stateless-media.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/wp-stateless/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,549 | 27,385 | 84,467 | 133,878 |
JavaScript | 245 | 3,511 | 4,358 | 12,514 |
JSON | 62 | 0 | 0 | 10,030 |
Markdown | 77 | 3,216 | 0 | 8,794 |
CSS | 48 | 284 | 188 | 3,507 |
HTML | 2 | 14 | 0 | 358 |
YAML | 10 | 63 | 2 | 353 |
XML | 7 | 7 | 18 | 198 |
Bourne Shell | 3 | 29 | 27 | 164 |
XHTML | 3 | 31 | 6 | 162 |
C | 2 | 35 | 70 | 144 |
LESS | 1 | 1 | 0 | 132 |
Bourne Again Shell | 1 | 10 | 14 | 60 |
SVG | 2 | 0 | 1 | 56 |
make | 2 | 17 | 16 | 56 |
m4 | 1 | 11 | 14 | 38 |
C/C++ Header | 1 | 10 | 18 | 25 |
Dockerfile | 1 | 3 | 0 | 14 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 670.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 189 | |
Interfaces | 128 | |
Traits | 76 | |
Classes | 1,271 | |
▷ Abstract classes | 259 | 20.38% |
▷ Concrete classes | 1,012 | 79.62% |
▷ Final classes | 139 | 13.74% |
Methods | 8,432 | |
▷ Static methods | 1,438 | 17.05% |
▷ Public methods | 6,794 | 80.57% |
▷ Protected methods | 693 | 8.22% |
▷ Private methods | 945 | 11.21% |
Functions | 558 | |
▷ Named functions | 203 | 36.38% |
▷ Anonymous functions | 355 | 63.62% |
Constants | 866 | |
▷ Global constants | 35 | 4.04% |
▷ Class constants | 831 | 95.96% |
▷ Public constants | 724 | 87.12% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
33 PNG files occupy 0.32MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
static/scripts/jquery-ui/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.12KB | 0.16KB | 0.00% |
vendor/wpmetabox/meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
static/images/ficon3.png | 0.54KB | 0.29KB | ▼ 46.01% |
static/scripts/jquery-ui/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 3.38KB | 1.68KB | ▼ 50.10% |
static/images/tick.png | 0.20KB | 0.19KB | ▼ 3.50% |