Benchmarks
Plugin footprint 81% 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: ▲10.66MB] [CPU: ▼270.38ms] 25% from 4 tests
This is a short check of server-side resources used by AWS for WordPress
Please fix the following
- RAM: Total memory usage must be kept under 10MB (currently 13.95MB on /wp-admin/admin.php?page=amazon_ai)
- CPU: The total CPU usage must kept under 500.00ms (currently 5,243.38ms on /wp-admin/admin.php?page=amazon_ai_podcast)
- Extra RAM: The extra memory usage must be under 5MB (currently 10.66MB on /wp-admin/admin.php?page=amazon_ai)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 14.21 ▲10.69 | 86.88 ▲37.30 |
Dashboard /wp-admin | 14.09 ▲10.68 | 69.60 ▲31.48 |
Posts /wp-admin/edit.php | 14.32 ▲10.68 | 70.47 ▲30.91 |
Add New Post /wp-admin/post-new.php | 17.56 ▲10.58 | 127.86 ▼1,177.44 |
Media Library /wp-admin/upload.php | 13.98 ▲10.68 | 56.32 ▲33.52 |
CloudFront /wp-admin/admin.php?page=amazon_cloudfront | 14.40 | 5,124.05 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 16.89 | 86.27 |
Translate /wp-admin/admin.php?page=amazon_ai_translate | 14.41 | 5,115.11 |
Text-To-Speech /wp-admin/admin.php?page=amazon_ai_polly | 14.41 | 5,220.22 |
Podcast /wp-admin/admin.php?page=amazon_ai_podcast | 14.41 | 5,243.38 |
Alexa Integration /wp-admin/admin.php?page=amazon_ai_alexa | 13.95 | 52.98 |
General /wp-admin/admin.php?page=amazon_ai | 13.95 | 53.30 |
Server storage [IO: ▲36.00MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please try to fix the following items
- Total filesystem usage should be limited to 25MB (currently using 36.00MB)
Filesystem: 3,292 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
amazon_polly_region |
amazon_polly_trans_enabled |
aws_cloudfront_logfile |
widget_recent-comments |
amazon_polly_podcast_enabled |
amazon_polly_valid_keys |
amazon_ai_polly_enable |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AWS for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,007 ▲285 | 16.90 ▲1.18 | 10.77 ▲5.15 | 2.41 ▼0.28 |
Dashboard /wp-admin | 2,979 ▲121 | 6.31 ▲0.02 | 124.06 ▼17.57 | 156.82 ▼1.67 |
Posts /wp-admin/edit.php | 2,771 ▲87 | 3.21 ▲0.16 | 68.95 ▼6.20 | 142.34 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,728 ▲67 | 18.25 ▲2.03 | 479.78 ▲52.36 | 160.61 ▲3.50 |
Media Library /wp-admin/upload.php | 1,778 ▲80 | 5.63 ▲0.17 | 130.17 ▼17.34 | 191.50 ▲5.00 |
CloudFront /wp-admin/admin.php?page=amazon_cloudfront | 1,050 | 2.83 | 58.24 | 100.35 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7,475 | 20.27 | 511.96 | 157.68 |
Translate /wp-admin/admin.php?page=amazon_ai_translate | 1,319 | 2.81 | 64.72 | 147.03 |
Text-To-Speech /wp-admin/admin.php?page=amazon_ai_polly | 1,322 | 2.81 | 58.17 | 135.75 |
Podcast /wp-admin/admin.php?page=amazon_ai_podcast | 1,081 | 2.83 | 59.08 | 125.33 |
Alexa Integration /wp-admin/admin.php?page=amazon_ai_alexa | 1,061 | 2.83 | 58.20 | 104.64 |
General /wp-admin/admin.php?page=amazon_ai | 1,171 | 2.84 | 59.40 | 115.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- amazon_polly_valid_keys
- amazon_ai_polly_enable
- amazon_polly_podcast_enabled
- aws_cloudfront_logfile
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/amazon-polly/vendor/mtdowling/jmespath.php/bin/jp.php
- 1096× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/TimestreamWrite/TimestreamWriteClient.php:39
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/amazon-polly/vendor/aws/Aws/SecretsManager/Exception/SecretsManagerException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Api\\Parser\\AbstractParser' not found in wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/Api/Parser/AbstractRestParser.php:14
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/amazon-polly/vendor/aws/Aws/MTurk/Exception/MTurkException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/amazon-polly/vendor/aws/Aws/Appstream/Exception/AppstreamException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/KinesisAnalytics/Exception/KinesisAnalyticsException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/Honeycode/Exception/HoneycodeException.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/amazon-polly/vendor/psr/http-client/src/RequestExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/amazon-polly/vendor/aws/Aws/WafRegional/Exception/WafRegionalException.php:9
- > PHP Fatal error
Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/amazon-polly/vendor/aws/aws-sdk-php/src/Sqs/SqsClient.php:55
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Network (severe)
wp-admin/image.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
amazon-polly/amazonpolly.php 77% from 13 tests
"AWS for WordPress" version 4.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 277 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("amazon-polly.php" instead of "amazonpolly.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin90,888 lines of code in 2,265 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,189 | 12,923 | 57,748 | 67,604 |
SVG | 3 | 0 | 12 | 8,891 |
JSON | 35 | 8 | 0 | 6,659 |
Markdown | 22 | 2,391 | 0 | 6,606 |
JavaScript | 3 | 100 | 106 | 747 |
CSS | 4 | 20 | 13 | 198 |
YAML | 4 | 22 | 0 | 78 |
reStructuredText | 1 | 35 | 29 | 59 |
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
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 191.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 568 | |
Interfaces | 77 | |
Traits | 38 | |
Classes | 1,338 | |
▷ Abstract classes | 22 | 1.64% |
▷ Concrete classes | 1,316 | 98.36% |
▷ Final classes | 35 | 2.66% |
Methods | 4,790 | |
▷ Static methods | 684 | 14.28% |
▷ Public methods | 3,434 | 71.69% |
▷ Protected methods | 220 | 4.59% |
▷ Private methods | 1,136 | 23.72% |
Functions | 858 | |
▷ Named functions | 192 | 22.38% |
▷ Anonymous functions | 666 | 77.62% |
Constants | 363 | |
▷ Global constants | 3 | 0.83% |
▷ Class constants | 360 | 99.17% |
▷ Public constants | 360 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 2.02MB with 1.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-255x158.png | 27.14KB | 12.36KB | ▼ 54.48% |
public/images/Voiced_by_Amazon_Polly_EN.png | 5.11KB | 3.12KB | ▼ 39.03% |
assets/screenshot-2.png | 381.80KB | 111.58KB | ▼ 70.77% |
assets/icon-128x128.png | 7.94KB | 3.44KB | ▼ 56.66% |
img/amazon-polly-logo-white.png | 92.07KB | 34.78KB | ▼ 62.22% |