Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.40ms] Passed 4 tests
A check of server-side resources used by Tools For S3 Amazon AWS Web Services
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.34 ▲2.18 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.93 ▼4.53 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.33 ▼0.00 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 83.27 ▼11.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.48 ▲6.22 |
Tools for S3 /wp-admin/tools.php?page=toolsfors3_admin_page | 3.28 | 34.40 |
Server storage [IO: ▲28.76MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Please try to fix the following items
- Total filesystem usage must be limited to 25MB (currently using 28.76MB)
Filesystem: 3,128 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_toolsfors3_copy |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
toolsfors3_was_activated |
widget_recent-posts |
theysaidso_admin_options |
bill_show_warnings |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tools For S3 Amazon AWS Web Services
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 13.21 ▼1.14 | 2.01 ▲0.31 | 40.32 ▼3.19 |
Dashboard /wp-admin | 2,255 ▲74 | 5.71 ▼0.00 | 87.58 ▼19.25 | 40.79 ▼1.42 |
Posts /wp-admin/edit.php | 2,160 ▲81 | 2.29 ▲0.27 | 40.36 ▲4.80 | 34.91 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.19 ▼0.32 | 687.96 ▲4.90 | 66.64 ▲9.49 |
Media Library /wp-admin/upload.php | 1,460 ▲60 | 4.35 ▲0.19 | 100.80 ▲0.79 | 41.35 ▼5.84 |
Tools for S3 /wp-admin/tools.php?page=toolsfors3_admin_page | 919 | 2.67 | 65.04 | 61.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_toolsfors3_copy
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- bill_show_warnings
- toolsfors3_was_activated
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/toolsfors3/functions/tree_data_filesys_cloud.php
- > /wp-content/plugins/toolsfors3/s3api/download.php
- > /wp-content/plugins/toolsfors3/dashboard/dashboard_container.php
- > /wp-content/plugins/toolsfors3/dashboard/amazon.php
- > /wp-content/plugins/toolsfors3/functions/tree_data_filesys.php
- > /wp-content/plugins/toolsfors3/toolsfors3.php
- > /wp-content/plugins/toolsfors3/functions/transfer_to_cloud.php
- > /wp-content/plugins/toolsfors3/functions/functions.php
- > /wp-content/plugins/toolsfors3/assets/js/tree_data_filesys.php
- > /wp-content/plugins/toolsfors3/includes/checkup/bill_class_diagnose.php
- 190× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AbstractConfigurationProvider' not found in wp-content/plugins/toolsfors3/vendor/Aws/Endpoint/UseDualstackEndpoint/ConfigurationProvider.php:44
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Signature\\SignatureInterface' not found in wp-content/plugins/toolsfors3/vendor/Aws/Signature/SignatureV4.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\CacheInterface' not found in wp-content/plugins/toolsfors3/vendor/Aws/DoctrineCacheAdapter.php:6
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\MultipartUploader' not found in wp-content/plugins/toolsfors3/vendor/Aws/S3/Crypto/S3EncryptionMultipartUploaderV2.php:20
- > PHP Fatal error
Trait 'Aws\\Crypto\\Polyfill\eedsTrait' not found in wp-content/plugins/toolsfors3/vendor/Aws/Crypto/Polyfill/Gmac.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/toolsfors3/vendor/Aws/Exception/CredentialsException.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/toolsfors3/vendor/GuzzleHttp/Psr7/LazyOpenStream.php:13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/toolsfors3/functions/tree_data_filesys.php on line 106
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractParser' not found in wp-content/plugins/toolsfors3/vendor/Aws/S3/ValidateResponseChecksumParser.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\Crypto\\AesStreamInterface' not found in wp-content/plugins/toolsfors3/vendor/Aws/Crypto/AesEncryptingStream.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: tools for s3, amazon web services, s3 aws amazon, amazon aws s3 object storage, aws amazon cloud browse...
toolsfors3/toolsfors3.php Passed 13 tests
Analyzing the main PHP file in "Tools For S3 Amazon AWS Web Services" version 2.06
116 characters long description:
Browser for Amazon s3 tool. This plugin connect you with your Amazon AWS S3 Object Storage, using S3-compatible API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin108,975 lines of code in 3,103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,228 | 6,030 | 17,045 | 38,734 |
JSON | 7 | 0 | 0 | 23,934 |
JavaScript | 35 | 3,833 | 2,303 | 15,611 |
CSS | 8 | 768 | 62 | 12,719 |
HTML | 1 | 5 | 0 | 7,286 |
SVG | 1,810 | 0 | 0 | 6,224 |
Sass | 1 | 4 | 0 | 3,734 |
Markdown | 7 | 154 | 0 | 535 |
Handlebars | 3 | 11 | 0 | 102 |
YAML | 3 | 8 | 0 | 96 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 51 | |
Interfaces | 46 | |
Traits | 24 | |
Classes | 283 | |
▷ Abstract classes | 13 | 4.59% |
▷ Concrete classes | 270 | 95.41% |
▷ Final classes | 23 | 8.52% |
Methods | 2,230 | |
▷ Static methods | 390 | 17.49% |
▷ Public methods | 1,527 | 68.48% |
▷ Protected methods | 122 | 5.47% |
▷ Private methods | 581 | 26.05% |
Functions | 483 | |
▷ Named functions | 143 | 29.61% |
▷ Anonymous functions | 340 | 70.39% |
Constants | 220 | |
▷ Global constants | 12 | 5.45% |
▷ Class constants | 208 | 94.55% |
▷ Public constants | 208 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 10.39KB | 5.71KB | ▼ 45.00% |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |
images/folder.png | 0.50KB | 0.56KB | 0.00% |
images/file.png | 0.56KB | 0.81KB | 0.00% |