79% amazon-web-services

Code Review | Amazon Web Services

WordPress plugin Amazon Web Services scored79%from 54 tests.

About plugin

  • Plugin page: amazon-web-services
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Feb 20, 2018
  • Number of updates: 40
  • Update frequency: every 40.4 days
  • Top authors: deliciousbrains (52.5%)bradt (50%)

Code review

54 tests

User reviews

7 reviews

Install metrics

10,000+ active /721,298 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5445.66 ▲1.30
Dashboard /wp-admin3.84 ▲0.4950.78 ▼17.16
Posts /wp-admin/edit.php3.95 ▲0.6052.65 ▲2.67
Add New Post /wp-admin/post-new.php6.42 ▲0.5384.75 ▼12.55
Media Library /wp-admin/upload.php3.76 ▲0.5343.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

Browser metrics Passed 4 tests

A check of browser resources used by Amazon Web Services
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6114.25 ▼0.311.81 ▼0.2137.57 ▼7.40
Dashboard /wp-admin2,213 ▲365.59 ▲0.0182.69 ▼19.0844.22 ▼1.53
Posts /wp-admin/edit.php2,118 ▲181.99 ▼0.0533.62 ▼5.6740.25 ▲5.22
Add New Post /wp-admin/post-new.php1,541 ▲323.15 ▲4.80682.60 ▲31.7154.76 ▼18.75
Media Library /wp-admin/upload.php1,415 ▲184.22 ▼0.04103.92 ▲0.4046.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

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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.33
Average class complexity3.86
▷ Minimum class complexity1.00
▷ Maximum class complexity86.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes423.33%
▷ Concrete classes1,21996.67%
▷ Final classes10.08%
▷ Static methods2918.57%
▷ Public methods2,69879.42%
▷ Protected methods56716.69%
▷ Private methods1323.89%
▷ Named functions33.00%
▷ Anonymous functions9797.00%
▷ Global constants00.00%
▷ Class constants1,141100.00%
▷ Public constants1,141100.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
FileSize - originalSize - compressedSavings
assets/img/icon16.png1.47KB0.60KB▼ 59.39%