72% wp-migrate-2-aws

Code Review | WP on AWS

WordPress plugin WP on AWS scored72%from 54 tests.

About plugin

  • Plugin page: wp-migrate-2-aws
  • Plugin version: 5.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 64
  • Update frequency: every 22.0 days
  • Top authors: wpseahorse (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /17,606 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.77MB] [CPU: ▲1.15ms] Passed 4 tests

An overview of server-side resources used by WP on AWS
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.31 ▲3.92
Dashboard /wp-admin4.32 ▲1.0252.01 ▲2.12
Posts /wp-admin/edit.php4.43 ▲1.0855.49 ▲3.73
Add New Post /wp-admin/post-new.php6.92 ▲1.0386.05 ▼5.17
Media Library /wp-admin/upload.php4.24 ▲1.0141.23 ▲9.77
Create Clone /wp-admin/admin.php?page=wpm2aws4.1943.92
WP on AWS /wp-admin/admin.php?page=wpm2aws-actions4.2243.43

Server storage [IO: ▲20.79MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,906 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
wpm2aws-redirect-home-name
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP on AWS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6513.75 ▼0.591.70 ▼0.1441.88 ▼0.86
Dashboard /wp-admin2,232 ▲555.61 ▼0.0595.71 ▼0.1794.26 ▲51.21
Posts /wp-admin/edit.php2,140 ▲402.52 ▲0.5542.17 ▲0.6539.81 ▲3.31
Add New Post /wp-admin/post-new.php1,565 ▲3123.63 ▼1.57582.17 ▼29.8631.99 ▼40.94
Media Library /wp-admin/upload.php1,437 ▲374.91 ▲0.68100.56 ▲4.4277.25 ▲35.82
Create Clone /wp-admin/admin.php?page=wpm2aws1,0282.5931.5943.33
WP on AWS /wp-admin/admin.php?page=wpm2aws-actions1,0242.5031.6247.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • wpm2aws-redirect-home-name
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wpm2aws
    • > Notice in wp-content/plugins/wp-migrate-2-aws/admin/includes/adminPages/adminPagesGeneral.php+234
    Undefined index: field_placeholder

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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-migrate-2-aws/settings.php
    • > /wp-content/plugins/wp-migrate-2-aws/vendor/bin/jp.php
  • 675× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/ElasticTranscoder/ElasticTranscoderClient.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/MarketplaceCommerceAnalytics/MarketplaceCommerceAnalyticsClient.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/GlobalAccelerator/GlobalAcceleratorClient.php:59
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/MTurk/MTurkClient.php:87
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/Support/SupportClient.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Crypto\\AbstractCryptoClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/S3/Crypto/S3EncryptionClient.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/MarketplaceEntitlementService/MarketplaceEntitlementServiceClient.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/Firehose/Exception/FirehoseException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/EKS/EKSClient.php:51
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/wp-migrate-2-aws/vendor/aws/aws-sdk-php/src/SSOOIDC/SSOOIDCClient.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
  • Screenshots: Please describe screenshot #7 in wp-migrate-2-aws/assets to your readme.txt
Please take inspiration from this readme.txt

wp-migrate-2-aws/wp-migrate-2-aws.php 85% from 13 tests

Analyzing the main PHP file in "WP on AWS" version 5.0.1
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected87,704 lines of code in 1,799 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,50910,92638,07551,864
JavaScript32,5052,37111,805
Markdown173,04208,445
SVG240006,733
JSON22206,181
CSS319592,568
reStructuredText1352959
make210022
XML13014
YAML14013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.20
▷ Minimum class complexity1.00
▷ Maximum class complexity415.00
Average method complexity2.84
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces487
Interfaces53
Traits21
Classes835
▷ Abstract classes172.04%
▷ Concrete classes81897.96%
▷ Final classes232.81%
Methods3,632
▷ Static methods55015.14%
▷ Public methods2,44267.24%
▷ Protected methods1825.01%
▷ Private methods1,00827.75%
Functions659
▷ Named functions19629.74%
▷ Anonymous functions46370.26%
Constants363
▷ Global constants5515.15%
▷ Class constants30884.85%
▷ Public constants308100.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
23 PNG files occupy 0.47MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/aws-welcome-image.png9.82KB4.65KB▼ 52.68%
admin/assets/images/staging-icon.png0.92KB0.32KB▼ 65.64%
admin/assets/images/diskSystem.png18.68KB6.64KB▼ 64.43%
admin/assets/images/launch-instance.png44.25KB14.93KB▼ 66.25%
admin/assets/images/manage-icon.png4.36KB1.71KB▼ 60.65%