Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼14.04ms] Passed 4 tests
Server-side resources used by SSU - WordPress Amazon S3 & Wasabi Smart File Uploads Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.35 | 45.80 ▼2.49 |
Dashboard /wp-admin | 3.66 ▲0.35 | 50.78 ▼12.94 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 48.07 ▼25.68 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 99.44 ▼15.03 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 37.31 ▲1.56 |
S3 Smart Upload /wp-admin/upload.php?page=s3-smart-upload-settings | 3.49 | 29.56 |
Server storage [IO: ▲25.52MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- Total filesystem usage should be limited to 25MB (currently using 25.52MB)
Filesystem: 1,171 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
SSU - WordPress Amazon S3 & Wasabi Smart File Uploads Plugin: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.72 ▲0.37 | 1.90 ▲0.27 | 40.36 ▼1.71 |
Dashboard /wp-admin | 2,202 ▲40 | 5.61 ▼0.08 | 98.65 ▼97.22 | 38.27 ▼72.52 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▲0.03 | 35.50 ▼18.20 | 34.68 ▼20.85 |
Add New Post /wp-admin/post-new.php | 1,540 ▼0 | 18.33 ▼2.58 | 632.67 ▼149.57 | 65.97 ▲3.65 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▲0.10 | 109.09 ▼13.45 | 44.70 ▼11.09 |
S3 Smart Upload /wp-admin/upload.php?page=s3-smart-upload-settings | 859 | 8.55 | 176.49 | 24.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-s3-smart-upload/admin/partials/s3-smart-upload-admin-display.php
- > /wp-content/plugins/wp-s3-smart-upload/public/partials/s3-smart-upload-public-display.php
- 175× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Trait 'BWPS\\SSU\\Aws3\\Aws\\Crypto\\Polyfill\eedsTrait' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Crypto/Polyfill/AesGcm.php on line 20
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Aws\\S3\\RegionalEndpoint\\ConfigurationInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/S3/RegionalEndpoint/Configuration.php:5
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Aws\\Crypto\\MaterialsProviderInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Crypto/MaterialsProvider.php:5
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Aws\\MonitoringEventsInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Exception/AwsException.php:18
- > PHP Fatal error
Uncaught Error: Class 'BWPS\\SSU\\Aws3\\Aws\\Arn\\Arn' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Arn/S3/OutpostsBucketArn.php:14
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Aws\\MonitoringEventsInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Retry/Exception/ConfigurationException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Aws\\MonitoringEventsInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Exception/InvalidRegionException.php:7
- > PHP Fatal error
Uncaught Error: Class 'BWPS\\SSU\\Aws3\\Aws\\Crypto\\MaterialsProviderV2' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/Crypto/KmsMaterialsProviderV2.php:12
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/HashingStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'BWPS\\SSU\\Aws3\\Aws\\AwsClientInterface' not found in wp-content/plugins/wp-s3-smart-upload/lib/aws3/Aws/MultiRegionClient.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Screenshot #7 (Upload files on the front-end) image not found
wp-s3-smart-upload/s3-smart-upload.php 77% from 13 tests
This is the main PHP file of "SSU - WordPress Amazon S3 & Wasabi Smart File Uploads Plugin" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-s3-smart-upload.php" instead of "s3-smart-upload.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected35,159 lines of code in 1,147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,129 | 2,065 | 18,131 | 28,056 |
Markdown | 6 | 2,518 | 0 | 6,734 |
JavaScript | 7 | 24 | 241 | 256 |
JSON | 2 | 0 | 0 | 97 |
XML | 1 | 0 | 0 | 14 |
CSS | 2 | 1 | 12 | 2 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 12.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 46 | |
Interfaces | 43 | |
Traits | 23 | |
Classes | 297 | |
▷ Abstract classes | 14 | 4.71% |
▷ Concrete classes | 283 | 95.29% |
▷ Final classes | 25 | 8.83% |
Methods | 2,362 | |
▷ Static methods | 402 | 17.02% |
▷ Public methods | 1,636 | 69.26% |
▷ Protected methods | 132 | 5.59% |
▷ Private methods | 594 | 25.15% |
Functions | 451 | |
▷ Named functions | 107 | 23.73% |
▷ Anonymous functions | 344 | 76.27% |
Constants | 308 | |
▷ Global constants | 42 | 13.64% |
▷ Class constants | 266 | 86.36% |
▷ Public constants | 266 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.52MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp-assets/screenshot-1.png | 73.08KB | 20.19KB | ▼ 72.38% |
wp-assets/screenshot-4.png | 59.77KB | 20.78KB | ▼ 65.23% |
wp-assets/icon-128x128.png | 51.93KB | 19.99KB | ▼ 61.50% |
wp-assets/banner-772x250.png | 127.07KB | 48.44KB | ▼ 61.88% |
wp-assets/screenshot-6.png | 34.28KB | 10.51KB | ▼ 69.35% |