78% syncs3

Code Review | SyncS3 Lite

WordPress plugin SyncS3 Lite scored 78% from 54 tests.

About plugin

  • Plugin page: syncs3
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 6, 2020
  • Latest release: Jun 15, 2020
  • Number of updates: 8
  • Update frequency: every 12.6 days
  • Top authors: elegantmodules (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,107 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.00ms] Passed 4 tests

Server-side resources used by SyncS3 Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.56 ▼2.12
Dashboard /wp-admin3.31 ▲0.0145.16 ▼0.78
Posts /wp-admin/edit.php3.36 ▲0.0049.17 ▲1.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.43 ▼9.84
Media Library /wp-admin/upload.php3.23 ▲0.0035.97 ▲0.75

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

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

Browser metrics Passed 4 tests

SyncS3 Lite: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.15 ▼1.141.88 ▼0.1639.22 ▼5.96
Dashboard /wp-admin2,209 ▲214.89 ▼1.00101.22 ▼4.0541.85 ▼1.40
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0435.00 ▼3.9535.43 ▼0.99
Add New Post /wp-admin/post-new.php1,533 ▼023.21 ▼0.30670.31 ▲32.2450.53 ▼6.44
Media Library /wp-admin/upload.php1,391 ▲64.18 ▼0.0696.69 ▼3.4944.01 ▲0.43

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/syncs3/lib/bin/jp.php
    • > /wp-content/plugins/syncs3/lib/mtdowling/jmespath.php/bin/jp.php
  • 684× 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/syncs3/lib/aws/aws-sdk-php/src/Cloud9/Cloud9Client.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/CostandUsageReportService/CostandUsageReportServiceClient.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/EBS/Exception/EBSException.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Stream\\StreamInterface' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/Handler/GuzzleV5/GuzzleStream.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/syncs3/lib/psr/http-message/src/RequestInterface.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/MachineLearning/Exception/MachineLearningException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/SesV2/Exception/SesV2Exception.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\Exception\\AwsException' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/WorkLink/Exception/WorkLinkException.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/SageMaker/SageMakerClient.php:275
    • > PHP Fatal error
      Uncaught Error: Class 'Aws\\AwsClient' not found in wp-content/plugins/syncs3/lib/aws/aws-sdk-php/src/Inspector/InspectorClient.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: sync, files, amazon, gravity forms, s3

syncs3/syncs3-lite.php 85% from 13 tests

"SyncS3 Lite" version 1.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: The principal plugin file should be the same as the plugin slug ("syncs3.php" instead of "syncs3-lite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected46,938 lines of code in 1,532 files:
LanguageFilesBlank linesComment linesLines of code
PHP1,4946,82131,29137,900
JSON22206,362
Markdown863102,504
reStructuredText1352959
YAML28044
XML25037
make210022
Dockerfile18010

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity5.11
▷ Minimum class complexity1.00
▷ Maximum class complexity153.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces479
Interfaces38
Traits17
Classes791
▷ Abstract classes131.64%
▷ Concrete classes77898.36%
▷ Final classes131.67%
Methods2,395
▷ Static methods35214.70%
▷ Public methods1,67369.85%
▷ Protected methods1446.01%
▷ Private methods57824.13%
Functions471
▷ Named functions12827.18%
▷ Anonymous functions34372.82%
Constants211
▷ Global constants94.27%
▷ Class constants20295.73%
▷ Public constants202100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin