Product Reviews XML for Google Merchant Center

Description

This plugin generates a strictly formatted XML feed of your product reviews that meets Google Merchant Center requirements. By submitting this feed to Google, you can enable โ€œProduct Ratingsโ€ (stars) on your Google Shopping PLAs (Product Listing Ads).

Key Features:
* Universal Support: Works with native WooCommerce reviews, Customer Reviews for WooCommerce (CusRev), YITH Advanced Reviews, and Site Reviews.
* Strict Schema: Generates the specific nested XML structure Google requires (GTINs, MPNs, Namespaces).
* Smart Caching: Caches the XML feed to reduce server load. Default refresh is weekly (recommended by Google).
* Product Identifiers: Maps your GTIN, MPN, and Brand fields to ensure reviews match your products in Google.

Performance & Limits:
By default, this plugin includes your 2,500 most recent reviews. This safety cap ensures that generating the XML file does not crash your server due to memory exhaustion.
* Developers: You can increase or remove this limit using the prxml_review_limit filter.

Installation

  1. Upload the plugin files to the /wp-content/plugins/product-reviews-xml-for-google directory.
  2. Activate the plugin through the โ€˜Pluginsโ€™ screen in WordPress.
  3. Go to Settings > GMC Reviews XML to configure.
  4. Copy the generated Feed URL.
  5. Log in to Google Merchant Center > Analytics > Reviews > Product Reviews > Feeds.
  6. Add a new feed using โ€œScheduled Fetchโ€ and paste your URL.

FAQ

Which review plugins are supported?

We natively support:
1. WooCommerce Standard Reviews
2. Customer Reviews for WooCommerce (CusRev)
3. YITH WooCommerce Advanced Reviews
4. Site Reviews
5. Judge.me / Yotpo (Only if โ€œSync to WooCommerceโ€ is enabled in their settings).

My feed is showing a 404 error?

Go to the plugin settings and click โ€œSave Changesโ€. This will flush your permalinks and fix the URL.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Product Reviews XML for Google Merchant Center” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

2.0.8

  • Fixed sanitization to use sanitize_title_with_dashes() as recommended by WordPress.org review.
  • Improved DONOTCACHEPAGE constant scoping to only affect feed rendering.
  • Added preg_quote() for regex security in rewrite rules.
  • Added WooCommerce dependency check with admin notice.
  • Fixed all escaping to use esc_html_e() instead of _e().
  • Changed prefix from โ€˜grfโ€™ to โ€˜prxmlโ€™ (5 characters) to meet WordPress requirements.
  • Moved JavaScript to external file with proper wp_enqueue_script().
  • Added comprehensive error handling and PHPDoc blocks.

2.0.6

  • Increased safety limit to 2,500 reviews (Generous Free Tier).

2.0.5

  • Updated Author description.

2.0.4

  • Added โ€œCopy URLโ€ button.
  • Added connection instructions.

2.0.3

  • Updated default feed slug.
  • Updated default refresh rate to Weekly.

2.0.0

  • Full security hardening.
  • Added proper uninstaller.
  • Trademark-safe slug update.

1.0.0

  • Initial release.