Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼5.02ms] Passed 4 tests
Server-side resources used by AWS S3 Bucket Browser
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.29 | 43.36 ▲4.58 |
Dashboard /wp-admin | 3.65 ▲0.35 | 45.71 ▼13.01 |
Posts /wp-admin/edit.php | 3.70 ▲0.35 | 48.68 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 93.12 ▼10.02 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.59 ▲2.52 |
S3 Browser /wp-admin/tools.php?page=s3-browse-settings | 3.48 | 31.96 |
Server storage [IO: ▲2.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 299 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for AWS S3 Bucket Browser
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.64 ▼0.85 | 1.65 ▼0.24 | 40.32 ▼5.41 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.95 | 107.15 ▼4.25 | 41.08 ▲0.50 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.01 | 40.24 ▼2.46 | 36.60 ▼0.18 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 18.49 ▲0.24 | 597.32 ▼11.79 | 50.37 ▼2.37 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.03 | 95.95 ▼2.24 | 42.45 ▼3.19 |
S3 Browser /wp-admin/tools.php?page=s3-browse-settings | 886 | 2.02 | 22.91 | 27.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 116× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/WorkSpaces/Exception/WorkSpacesException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\ResultInterface' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/Result.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/GuzzleHttp/Psr7/Response.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Signature\\SignatureInterface' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/Signature/AnonymousSignature.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/DirectoryService/DirectoryServiceClient.php:54
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/GuzzleHttp/Promise/CancellationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/IotDataPlane/Exception/IotDataPlaneException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\CacheInterface' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/LruArrayCache.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/Waiter.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/bucket-browser-for-aws-s3/aws/Aws/Support/Exception/SupportException.php:9
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: aws, s3, download, amazon, folders...
bucket-browser-for-aws-s3/bucket-browser-for-aws-s3.php Passed 13 tests
The main PHP file in "AWS S3 Bucket Browser" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
A custom Amazon S3 File Browser
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin19,697 lines of code in 293 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 287 | 3,330 | 9,621 | 17,658 |
Markdown | 4 | 345 | 0 | 1,405 |
CSS | 1 | 72 | 17 | 407 |
JavaScript | 1 | 145 | 30 | 227 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 9.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 20 | |
Traits | 6 | |
Classes | 192 | |
▷ Abstract classes | 6 | 3.12% |
▷ Concrete classes | 186 | 96.88% |
▷ Final classes | 6 | 3.23% |
Methods | 1,340 | |
▷ Static methods | 141 | 10.52% |
▷ Public methods | 919 | 68.58% |
▷ Protected methods | 66 | 4.93% |
▷ Private methods | 355 | 26.49% |
Functions | 300 | |
▷ Named functions | 72 | 24.00% |
▷ Anonymous functions | 228 | 76.00% |
Constants | 95 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 95 | 100.00% |
▷ Public constants | 95 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected