mageplaza / module-better-product-reviews-graphql

mageplaza/module-better-product-reviews-graphql

Magento 2 Better Product Reviews GraphQl Extension

magento2-module Compatibility: Not compatible Code Quality: Fail Tests: N/A Security: Pass proprietary

Better Product Reviews GraphQl

This module provides type and resolver information for the GraphQl module to generate catalog reviews information endpoints.

1. How to install

Run the following command in Magento 2 root folder:

composer require mageplaza/module-better-product-reviews-graphql
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

2. How to use

To start working with GraphQl in Magento, you need the following:

  • Use Magento 2.3.x. Returns site to developer mode
  • Install chrome extension (currently does not support other browsers)
  • Set GraphQL endpoint as http://<magento2-3-server>/graphql in url box, click Set endpoint. (e.g. http://develop.mageplaza.com/graphql/ce232/graphql)
  • Mageplaza-supported queries are fully written in the Description section of Query.productreviews.Products

3. Devdocs

Magento 2 Product Reviews GraphQL

Magento 2 Better Product Reviews GraphQL is now a part of Mageplaza Better Product Reviews extension that adds GraphQL features. This is helpful for PWA compatibility. The module provides type and resolver information for the GraphQl module to generate catalog reviews information endpoints.

Mageplaza Better Product Reviews for Magento 2 is an effective solution for online stores to showcase product reviews.

The extension enables online stores to display reviews not only because it’ll help promote the products with good reviews but also to provide customers or first-time visitors with useful information about the products. The previous customers’ reviews are great sources to help customers understand the products better to make the right purchasing decisions.

Each product will have an overall assessment which shows the number of reviews, the average rate, recommendation percentage, and star ratings. Customers can quickly compare products via their overall assessment, therefore come into the purchasing decision more quickly.

Showing the reviews is great but it'll be even better if the reviews are authentic and the one who writes the reviews is trustworthy. Magento 2 Better Product Reviews enables showing the verified purchase badge to prove that the reviews are totally written by a real purchaser. Customers can also add images to illustrate what they say more vividly. The visual review combined with a verified reviewer will be a more persuasive incentive for customers to spend money on your product.

The extension also enables you to display product reviews on the search engine results. These SEO-friendly reviews draw the customers’ attention to your page and click to view more details of products with good reviews.

The extension also enables you to display a review reminder right on the customer account page to remind those who haven’t left the reviews yet. This review reminder slide will appear after the list of products waiting for the reviews. Customers can add reviews quickly with a simple click on the “Write a review” button.

Versions
Version Stability QA Status Compatibility Released
1.1.0 stable Fail Not compatible Details 2024-11-28 08:55:55
1.0.1 stable Not tested Not yet tested Details 2020-08-20 10:22:47
1.0.0 stable Not tested Not yet tested Details 2019-12-18 02:22:23

No dependencies declared

This package's composer.json doesn't declare any required, suggested, replaced, or conflicting packages.

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Fail di error Fail di error
2.4.8 Fail di error Fail di error
2.4.9 Fail di error Fail di error

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — 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.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 15 15 warnings (ruleset: Magento2) — 13 auto-fixable with phpcbf
PHPMD Warning 3 3 rule violations (UnusedFormalParameter:1, CyclomaticComplexity:1, NPathComplexity:1)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 83 83
2.4.8 83 93
2.4.9 93 93

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
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

Integration tests results by Magento and PHP version
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

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
proprietary
Authors

More from mageplaza

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.