Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.52MB] [CPU: ▼6.44ms] Passed 4 tests
An overview of server-side resources used by Amazon Web Services
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 45.66 ▲1.30 |
Dashboard /wp-admin | 3.84 ▲0.49 | 50.78 ▼17.16 |
Posts /wp-admin/edit.php | 3.95 ▲0.60 | 52.65 ▲2.67 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.53 | 84.75 ▼12.55 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 43.43 ▲5.24 |
Server storage [IO: ▲11.85MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 1,402 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Amazon Web Services
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.25 ▼0.31 | 1.81 ▼0.21 | 37.57 ▼7.40 |
Dashboard /wp-admin | 2,213 ▲36 | 5.59 ▲0.01 | 82.69 ▼19.08 | 44.22 ▼1.53 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.99 ▼0.05 | 33.62 ▼5.67 | 40.25 ▲5.22 |
Add New Post /wp-admin/post-new.php | 1,541 ▲3 | 23.15 ▲4.80 | 682.60 ▲31.71 | 54.76 ▼18.75 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.22 ▼0.04 | 103.92 ▲0.40 | 46.74 ▲2.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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-web-services/view/footer.php
- 1181× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Aws\\DynamoDb\\Model\\BatchRequest\\AbstractWriteRequest' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/DynamoDb/Model/BatchRequest/UnprocessedRequest.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Command\\JsonCommand' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/DynamoDb/DynamoDbCommand.php:12
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/S3/Exception/NoSuchCORSConfigurationException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Http\\Message\\MessageInterface' not found in wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Http/Message/AbstractMessage.php:15
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Exception\\ServiceResponseException' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/Ses/Exception/SesException.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Http\\ClientInterface' not found in wp-content/plugins/amazon-web-services/vendor/aws/Guzzle/Service/ClientInterface.php:16
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Redshift\\Exception\\RedshiftException' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/Redshift/Exception/ReservedNodeAlreadyExistsException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Enum' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/Common/Enum/Time.php:24
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/S3/Exception/AmbiguousGrantByEmailAddressException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\ImportExport\\Exception\\ImportExportException' not found in wp-content/plugins/amazon-web-services/vendor/aws/Aws/ImportExport/Exception/NoSuchBucketException.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: amazon web services, amazon
amazon-web-services/amazon-web-services.php Passed 13 tests
This is the main PHP file of "Amazon Web Services" version 1.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Includes the Amazon Web Services PHP libraries, stores access keys, and allows other plugins to hook into it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected231,843 lines of code in 1,390 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,374 | 10,195 | 43,806 | 230,276 |
Markdown | 6 | 345 | 0 | 1,411 |
Sass | 2 | 11 | 0 | 88 |
SVG | 3 | 1 | 2 | 35 |
JavaScript | 2 | 6 | 0 | 20 |
JSON | 1 | 0 | 0 | 11 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 219 | |
Interfaces | 86 | |
Traits | 2 | |
Classes | 1,261 | |
▷ Abstract classes | 42 | 3.33% |
▷ Concrete classes | 1,219 | 96.67% |
▷ Final classes | 1 | 0.08% |
Methods | 3,397 | |
▷ Static methods | 291 | 8.57% |
▷ Public methods | 2,698 | 79.42% |
▷ Protected methods | 567 | 16.69% |
▷ Private methods | 132 | 3.89% |
Functions | 100 | |
▷ Named functions | 3 | 3.00% |
▷ Anonymous functions | 97 | 97.00% |
Constants | 1,141 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1,141 | 100.00% |
▷ Public constants | 1,141 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon16.png | 1.47KB | 0.60KB | ▼ 59.39% |