# trustpilot/module-reviews

> The Trustpilot Review extension makes it simple and easy for merchants to collect reviews from their customers to power their marketing efforts, increase sales conversion, build their online reputation and draw business insights.

`composer require trustpilot/module-reviews`

Canonical URL: https://packagento.com/trustpilot/module-reviews

## At a glance

- **Vendor**: trustpilot (https://packagento.com/trustpilot.md)
- **Latest version**: 2.6.580 — released 2023-01-18
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/trustpilot/module-reviews and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require trustpilot/module-reviews:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

The Trustpilot Review extension makes it simple and easy for merchants to collect reviews from their customers to power their marketing efforts, increase sales conversion, build their online reputation and draw business insights.

## README

Trustpilot is an open review platform that helps consumers make better choices while helping companies showcase and improve their customer service.

To install the Trustpilot plugin on your website, please follow the steps provided in this package. 

### How to install the Trustpilot extension

1.  Log in to your Magento server using SSH (Secure Shell) and run the  commands that follow.
2.  Create a system and database backup by navigating to the root directory of your Magento installation and execute this command:<pre>php bin/magento setup:backup --code --db --media</pre>(Please note that your website will be inaccessible during the backup process.)
3.  Enable maintenance mode.<pre>php bin/magento maintenance:enable</pre>
4.  Download and install the Trustpilot plugin using Composer.<pre>composer require “trustpilot/module-reviews”</pre>
5.  If this is the first time you install a plugin using Composer, Magento will ask you to provide your Magento Marketplace account credentials. To find your account information go to __https://marketplace.magento.com > My profile > Access Keys > Create A New Access Key.__ Note: Your __public key__ is your username, while your __private key__ is your password.
6.  Enable the Trustpilot plugin.<pre>php bin/magento module:enable Trustpilot_Reviews --clear-static-content</pre>
7.  Update the database schema. (Please proceed cautiously: This command is global and will enable all Magento plugins that you’ ve installed.)<pre>php bin/magento setup:upgrade</pre>
8.  Compile (This command is only required in production mode.)<pre>php bin/magento setup:di:compile</pre>
9.  Deploy static content (This command is only required in production mode.)<pre>php bin/magento setup:static-content:deploy</pre>
10. Disable maintenance mode.<pre>php bin/magento maintenance:disable</pre>

## Recent Versions

| Version | Released |
|---|---|
| 2.6.580 | 2023-01-18 |
| 2.6.576 | 2022-11-07 |
| 2.6.574 | 2022-05-16 |
| 2.6.572 | 2022-05-13 |
| 2.6.566 | 2022-01-20 |
| 2.6.564 | 2021-09-07 |
| 2.6.563 | 2021-08-10 |
| 2.6.562 | 2021-07-27 |
| 2.6.560 | 2021-06-30 |
| 2.6.557 | 2020-11-17 |

Showing 10 of 60 versions. Full release history on https://packagento.com/trustpilot/module-reviews.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| magento/framework | >=100.0.20 |
| magento/module-admin-notification | >=100.0.7 |
| magento/module-backend | >=100.0.12 |
| magento/module-catalog | >=100.0.17 |
| magento/module-checkout | >=100.0.16 |
| magento/module-configurable-product | >=100.0.12 |
| magento/module-eav | >=100.0.12 |
| magento/module-sales | >=100.0.16 |
| magento/module-store | >=100.0.9 |
| psr/log | >=1.0.0 |

## Quality

Latest release (2.6.580) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Fail | 501 | 24 errors, 477 warnings (ruleset: Magento2) — 268 auto-fixable with phpcbf |
| PHPMD | Warning | 17 | 17 rule violations (CyclomaticComplexity:4, UnusedLocalVariable:3, UnusedFormalParameter:2, ExcessiveClassComplexity:2, MissingImport:2) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 65 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 11 | valid; 11 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 53 | 53 | – | – |
| 2.4.8 | – | 53 | 53 | – |
| 2.4.9 | – | – | 53 | 53 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["trustpilot/module-reviews"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

trustpilot is a Magento 2 vendor on Packagento. See https://packagento.com/trustpilot.md for their full catalogue.

