Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.91MB] [CPU: ▲6.61ms] Passed 4 tests
Server-side resources used by Advanced Media Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 45.14 ▲4.44 |
Dashboard /wp-admin | 4.22 ▲0.91 | 59.05 ▲9.45 |
Posts /wp-admin/edit.php | 4.33 ▲0.98 | 55.49 ▲11.84 |
Add New Post /wp-admin/post-new.php | 6.80 ▲0.91 | 91.06 ▲0.72 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 42.17 ▲11.99 |
Advanced Media Manager /wp-admin/admin.php?page=advanced-media-manager | 4.11 | 40.37 |
Cloud Images /wp-admin/admin.php?page=cloud-images | 4.11 | 38.67 |
Server storage [IO: ▲27.30MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
It is recommended to fix the following issues
- The filesystem usage should be lower than 25MB (currently using 27.30MB)
Filesystem: 2,425 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_amazon_bucket_manager |
wp_digital_bucket_manager |
wp_storage_bucket_manager |
wp_bucket_broken_images |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Media Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.21 ▼0.74 | 1.82 ▼0.02 | 39.68 ▼4.70 |
Dashboard /wp-admin | 2,236 ▲48 | 4.80 ▼0.07 | 103.45 ▼11.55 | 40.50 ▼3.71 |
Posts /wp-admin/edit.php | 2,113 ▲21 | 2.07 ▲0.06 | 39.33 ▲4.90 | 34.17 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 17.45 ▼3.60 | 625.41 ▼55.71 | 54.17 ▼7.62 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.23 ▼0.02 | 92.24 ▼19.26 | 40.77 ▼4.46 |
Advanced Media Manager /wp-admin/admin.php?page=advanced-media-manager | 985 | 6.15 | 143.03 | 81.33 |
Cloud Images /wp-admin/admin.php?page=cloud-images | 895 | 5.74 | 119.78 | 40.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_digital_bucket_manager
- wp_bucket_broken_images
- wp_amazon_bucket_manager
- wp_storage_bucket_manager
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/advanced-media-manager/composer-setup.php
- > /wp-content/plugins/advanced-media-manager/vendor/mtdowling/jmespath.php/bin/jp.php
- 1011× 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/aws/aws-sdk-php/src/KinesisVideo/KinesisVideoClient.php:47
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Emr/Exception/EmrException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/KinesisVideo/Exception/KinesisVideoException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/Aws/Redshift/RedshiftClient.php:136
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/Aws/StorageGateway/StorageGatewayClient.php:136
- > PHP Fatal error
Uncaught Error: Interface 'Aws\\MonitoringEventsInterface' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/S3/RegionalEndpoint/Exception/ConfigurationException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/CodeCommit/Exception/CodeCommitException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/MediaConnect/MediaConnectClient.php:43
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/advanced-media-manager/vendor/sociallydev/spaces-api/aws/Aws/XRay/XRayClient.php:21
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\Serializer\\RestSerializer' not found in wp-content/plugins/advanced-media-manager/vendor/aws/aws-sdk-php/src/Api/Serializer/RestXmlSerializer.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cloud-images
- > Console-api (severe) in unknown
webpack://wp-csv-importer-app/./node_modules/react-dom/cjs/react-dom.development.js? 66:29 "Warning: Invalid DOM property `%s`. Did you mean `%s`?%s" "class" "className" "\n at ul\n at div\n at div\n at App (webpack://wp-csv-importer-app/./admin/app.js?:46:86)\n at AppProvider (webpack://wp-csv-importer-app/./provider.js?:32:86)\n at AppProvider (webpack://wp-csv-importer-app/./providerNew.js?:33:86)\n at div"
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=advanced-media-manager
- > Console-api (severe) in unknown
webpack://wp-csv-importer-app/./node_modules/react-dom/cjs/react-dom.development.js? 66:29 "Warning: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.%s" "\n at input\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at MediaDisplay (webpack://wp-csv-importer-app/./admin/media/mediaoptions/mediaDisplay.js?:42:86)\n at App (webpack://wp-csv-importer-app/./admin/app.js?:46:86)\n at AppProvider (webpack://wp-csv-importer-app/./provider.js?:32:86)\n at AppProvider (webpack://wp-csv-importer-app/./providerNew.js?:33:86)\n at div"
- > GET request to /wp-admin/admin.php?page=advanced-media-manager
- > Console-api (severe) in unknown
webpack://wp-csv-importer-app/./node_modules/react-dom/cjs/react-dom.development.js? 66:29 "Warning: Invalid DOM property `%s`. Did you mean `%s`?%s" "for" "htmlFor" "\n at label\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at MediaDisplay (webpack://wp-csv-importer-app/./admin/media/mediaoptions/mediaDisplay.js?:42:86)\n at App (webpack://wp-csv-importer-app/./admin/app.js?:46:86)\n at AppProvider (webpack://wp-csv-importer-app/./provider.js?:32:86)\n at AppProvider (webpack://wp-csv-importer-app/./providerNew.js?:33:86)\n at div"
- > GET request to /wp-admin/admin.php?page=advanced-media-manager
- > Console-api (severe) in unknown
webpack://wp-csv-importer-app/./node_modules/react-dom/cjs/react-dom.development.js? 66:29 "Warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.%s" "\n at select\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at div\n at MediaDisplay (webpack://wp-csv-importer-app/./admin/media/mediaoptions/mediaDisplay.js?:42:86)\n at App (webpack://wp-csv-importer-app/./admin/app.js?:46:86)\n at AppProvider (webpack://wp-csv-importer-app/./provider.js?:32:86)\n at AppProvider (webpack://wp-csv-importer-app/./providerNew.js?:33:86)\n at div"
- > GET request to /wp-admin/admin.php?page=cloud-images
- > Console-api (severe) in unknown
webpack://wp-csv-importer-app/./node_modules/react-dom/cjs/react-dom.development.js? 66:29 "Warning: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.%s" "\n at input\n at div\n at div\n at div\n at div\n at div\n at CloudImage (webpack://wp-csv-importer-app/./admin/media/mediaoptions/cloudImages.js?:43:86)\n at App (webpack://wp-csv-importer-app/./admin/app.js?:46:86)\n at AppProvider (webpack://wp-csv-importer-app/./provider.js?:32:86)\n at AppProvider (webpack://wp-csv-importer-app/./providerNew.js?:33:86)\n at div"
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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Cloud Storage Provider Configuration.), #2 (Bucket Section.), #3 (Storage Settings.), #4 (Sync Media.), #5 (Download Media from CDN)
advanced-media-manager/advanced-media-manager.php Passed 13 tests
"Advanced Media Manager" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin77,168 lines of code in 1,945 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,885 | 10,895 | 48,624 | 59,812 |
JSON | 32 | 16 | 0 | 6,818 |
CSS | 5 | 338 | 56 | 6,418 |
Markdown | 14 | 1,089 | 0 | 3,438 |
JavaScript | 2 | 220 | 264 | 407 |
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 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 483 | |
Interfaces | 67 | |
Traits | 28 | |
Classes | 1,229 | |
▷ Abstract classes | 21 | 1.71% |
▷ Concrete classes | 1,208 | 98.29% |
▷ Final classes | 43 | 3.56% |
Methods | 4,389 | |
▷ Static methods | 622 | 14.17% |
▷ Public methods | 3,110 | 70.86% |
▷ Protected methods | 223 | 5.08% |
▷ Private methods | 1,056 | 24.06% |
Functions | 869 | |
▷ Named functions | 206 | 23.71% |
▷ Anonymous functions | 663 | 76.29% |
Constants | 354 | |
▷ Global constants | 9 | 2.54% |
▷ Class constants | 345 | 97.46% |
▷ Public constants | 345 | 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
43 PNG files occupy 0.43MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/file/music.png | 0.38KB | 0.61KB | 0.00% |
screenshot-2.png | 39.00KB | 9.65KB | ▼ 75.24% |
assets/images/warning.png | 0.56KB | 0.24KB | ▼ 57.02% |
assets/images/check-circle.png | 0.87KB | 0.38KB | ▼ 55.83% |
assets/css/images/file/file-lock.png | 0.60KB | 0.58KB | ▼ 2.77% |