Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▲2.03ms] Passed 4 tests
Server-side resources used by s3 cloud File Manager
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 50.57 ▲6.89 |
Dashboard /wp-admin | 3.56 ▲0.21 | 61.80 ▼5.29 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 70.70 ▲21.14 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 102.34 ▼8.39 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 51.92 ▲14.91 |
S3 Cloud /wp-admin/tools.php?page=s3cloud_admin_page | 3.46 | 40.88 |
Server storage [IO: ▲29.47MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- Total filesystem usage must be limited to 25MB (currently using 29.47MB)
Filesystem: 3,135 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_s3cloud_copy_files |
wp_s3cloud_copy |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
s3cloud_was_activated |
can_compress_scripts |
bill_show_warnings |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for s3 cloud File Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲130 | 14.35 ▼0.08 | 2.16 ▲0.39 | 41.62 ▼1.63 |
Dashboard /wp-admin | 2,258 ▲81 | 5.78 ▲0.18 | 91.57 ▼0.46 | 41.92 ▲1.86 |
Posts /wp-admin/edit.php | 2,160 ▲60 | 2.28 ▲0.31 | 43.62 ▲5.63 | 33.85 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.11 ▼0.04 | 665.72 ▼35.15 | 50.89 ▼2.87 |
Media Library /wp-admin/upload.php | 1,457 ▲57 | 4.41 ▲0.10 | 114.47 ▲7.14 | 47.75 ▲2.46 |
S3 Cloud /wp-admin/tools.php?page=s3cloud_admin_page | 929 | 2.69 | 66.03 | 56.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_s3cloud_copy
- wp_s3cloud_copy_files
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- db_upgraded
- s3cloud_was_activated
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- bill_show_warnings
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/s3cloud/functions/tree_data_filesys_cloud.php
- > /wp-content/plugins/s3cloud/functions/tree_data_filesys.php
- > /wp-content/plugins/s3cloud/dashboard/contabo.php
- > /wp-content/plugins/s3cloud/includes/checkup/class_bill_catch_errors.php
- > /wp-content/plugins/s3cloud/s3api/download.php
- > /wp-content/plugins/s3cloud/dashboard/dashboard.php
- > /wp-content/plugins/s3cloud/s3cloud.php
- > /wp-content/plugins/s3cloud/functions/functions.php
- > /wp-content/plugins/s3cloud/dashboard/debug.php
- > /wp-content/plugins/s3cloud/dashboard/transf.php
- 194× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Trait 'Aws\\Crypto\\Polyfill\eedsTrait' not found in wp-content/plugins/s3cloud/vendor/Aws/Crypto/Polyfill/AesGcm.php on line 20
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/s3cloud/vendor/GuzzleHttp/Psr7/LazyOpenStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/s3cloud/vendor/Aws/S3/BatchDelete.php:37
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/s3cloud/vendor/Aws/Exception/IncalculablePayloadException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AbstractConfigurationProvider' not found in wp-content/plugins/s3cloud/vendor/Aws/Endpoint/UseDualstackEndpoint/ConfigurationProvider.php:44
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\MultipartUploader' not found in wp-content/plugins/s3cloud/vendor/Aws/S3/Crypto/S3EncryptionMultipartUploaderV2.php:20
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AbstractConfigurationProvider' not found in wp-content/plugins/s3cloud/vendor/Aws/Retry/ConfigurationProvider.php:45
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/s3cloud/vendor/GuzzleHttp/Promise/CancellationException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/s3cloud/vendor/Psr/Http/Message/ServerRequestInterface.php:43
- > PHP Fatal error
Trait 'Aws\\S3\\Crypto\\CryptoParamsTrait' not found in wp-content/plugins/s3cloud/vendor/Aws/S3/Crypto/CryptoParamsTraitV2.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Dashboard), #2 (Dashboard Settings Tab), #3 (Debug Tab), #4 (S3 Browse Tab), #5 (Transfer Folders to/from Server and Cloud)
s3cloud/s3cloud.php Passed 13 tests
The entry point to "s3 cloud File Manager" version 2.21 is a PHP file that has certain tags in its header comment area
115 characters long description:
Browser for Contabo S3 Cloud. This plugin connect you with your Contabo S3 Object Storage, using S3-compatible API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin109,648 lines of code in 3,110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,233 | 6,893 | 18,582 | 39,398 |
JSON | 7 | 0 | 0 | 23,934 |
JavaScript | 35 | 3,833 | 2,298 | 15,614 |
CSS | 8 | 768 | 62 | 12,719 |
HTML | 1 | 5 | 0 | 7,286 |
SVG | 1,812 | 0 | 0 | 6,230 |
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
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 47 | |
Traits | 24 | |
Classes | 287 | |
▷ Abstract classes | 13 | 4.53% |
▷ Concrete classes | 274 | 95.47% |
▷ Final classes | 23 | 8.39% |
Methods | 2,285 | |
▷ Static methods | 394 | 17.24% |
▷ Public methods | 1,579 | 69.10% |
▷ Protected methods | 123 | 5.38% |
▷ Private methods | 583 | 25.51% |
Functions | 489 | |
▷ Named functions | 144 | 29.45% |
▷ Anonymous functions | 345 | 70.55% |
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/file.png | 0.56KB | 0.81KB | 0.00% |
images/folder.png | 0.50KB | 0.56KB | 0.00% |
images/logo.png | 13.20KB | 6.54KB | ▼ 50.47% |
includes/checkup/bell.png | 1.07KB | 0.27KB | ▼ 74.45% |