Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▼296.69ms] Passed 4 tests
Analyzing server-side resources used by Advanced Media Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.68 | 65.96 ▲13.70 |
Dashboard /wp-admin | 4.10 ▲0.69 | 41.42 ▲8.98 |
Posts /wp-admin/edit.php | 4.33 ▲0.68 | 45.52 ▲6.97 |
Add New Post /wp-admin/post-new.php | 7.56 ▲0.59 | 106.15 ▼1,208.47 |
Media Library /wp-admin/upload.php | 3.98 ▲0.68 | 31.20 ▲5.76 |
Server storage [IO: ▲25.93MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Filesystem usage must be lower than 25MB (currently using 25.93MB)
Filesystem: 2,425 new files
Database: 3 new tables, no new options
New tables |
---|
wp_digital_bucket_manager |
wp_amazon_bucket_manager |
wp_storage_bucket_manager |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Media Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,815 ▲61 | 15.19 ▼0.45 | 7.50 ▲1.25 | 3.38 ▼0.36 |
Dashboard /wp-admin | 2,912 ▲51 | 6.13 ▼0.04 | 131.56 ▼2.59 | 163.09 ▲5.77 |
Posts /wp-admin/edit.php | 2,711 ▲23 | 3.24 ▲0.00 | 66.73 ▲2.03 | 192.81 ▲45.10 |
Add New Post /wp-admin/post-new.php | 1,773 ▲112 | 22.24 ▲4.85 | 455.67 ▲68.66 | 186.28 ▲2.51 |
Media Library /wp-admin/upload.php | 1,718 ▲20 | 5.55 ▲0.08 | 148.14 ▲10.29 | 195.79 ▲7.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 3 tables
- wp_digital_bucket_manager
- wp_storage_bucket_manager
- wp_amazon_bucket_manager
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/advanced-media-manager/vendor/mtdowling/jmespath.php/bin/jp.php
- 1010× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/Aws/MachineLearning/MachineLearningClient.php:69
- > PHP Fatal error
Trait 'Aws\\Api\\Parser\\PayloadParserTrait' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/Aws/Api/ErrorParser/XmlErrorParser.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Acm/AcmClient.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/advanced-media-manager/vendor/mtdowling/jmespath.php/tests/TreeInterpreterTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/AutoScalingPlans/AutoScalingPlansClient.php:21
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/GuzzleHttp/Exception/ConnectException.php:11
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Kinesis/Exception/KinesisException.php:9
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\TransferException' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/GuzzleHttp/Exception/RequestException.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/IoTThingsGraph/IoTThingsGraphClient.php:79
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/Aws/ApplicationDiscoveryService/Exception/ApplicationDiscoveryServiceException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Cloud Storage Provider Configuration.), #2 (Bucket Section.), #3 (Storage Settings.)
advanced-media-manager/advanced-media-manager.php Passed 13 tests
Analyzing the main PHP file in "Advanced Media Manager" version 0.1
74 characters long description:
Automatically store wp media uploads to Amazon S3 and DigitalOcean Spaces.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin74,898 lines of code in 1,947 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,884 | 10,573 | 48,199 | 57,862 |
JSON | 32 | 16 | 0 | 6,818 |
CSS | 8 | 437 | 56 | 6,497 |
Markdown | 14 | 1,089 | 0 | 3,438 |
SVG | 1 | 0 | 0 | 143 |
reStructuredText | 1 | 35 | 29 | 59 |
YAML | 1 | 4 | 0 | 27 |
make | 2 | 10 | 0 | 22 |
XML | 1 | 3 | 0 | 14 |
Dockerfile | 1 | 8 | 0 | 10 |
JavaScript | 2 | 0 | 47 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 483 | |
Interfaces | 67 | |
Traits | 28 | |
Classes | 1,225 | |
▷ Abstract classes | 21 | 1.71% |
▷ Concrete classes | 1,204 | 98.29% |
▷ Final classes | 43 | 3.57% |
Methods | 4,331 | |
▷ Static methods | 598 | 13.81% |
▷ Public methods | 3,072 | 70.93% |
▷ Protected methods | 203 | 4.69% |
▷ Private methods | 1,056 | 24.38% |
Functions | 849 | |
▷ Named functions | 186 | 21.91% |
▷ Anonymous functions | 663 | 78.09% |
Constants | 350 | |
▷ Global constants | 5 | 1.43% |
▷ Class constants | 345 | 98.57% |
▷ Public constants | 345 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
41 compressed PNG files occupy 0.25MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/file/zip.png | 0.38KB | 0.53KB | 0.00% |
assets/css/images/file/db.png | 0.57KB | 0.58KB | 0.00% |
assets/images/wp-ultimate-csv-importer.png | 1.25KB | 0.95KB | ▼ 23.53% |
assets/css/images/file/old/folder_open.png | 0.57KB | 0.60KB | 0.00% |
assets/images/google-cloud.png | 2.11KB | 1.15KB | ▼ 45.23% |