=== Featherstar Widget for Google Reviews ===
Contributors: featherstar
Tags: google reviews, review widget, review slider, google business profile, testimonials
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.4.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show your Google reviews as a grid, slider or badge, printed as real HTML. About 9 KB, no cookies, no trial, no view limits.

== Description ==

Featherstar puts your Google reviews on your WordPress site without slowing it down.

* **Real HTML, readable by search engines.** Reviews are printed by your own server as normal HTML, then styled by a tiny script that ships with the plugin.
* **About 9 KB.** No jQuery, no frameworks, no external script. The styled widget lives in a Shadow DOM, so your theme's CSS can't break it.
* **No request per page view.** Your site downloads the reviews once a day and serves them from its own database.
* **No cookies, no tracking.**
* **Honest numbers.** Your real average rating and total review count are always shown, even if you choose to display only some reviews.
* **Nine layouts:** grid, list, masonry wall, carousel, a slider with one review at a time, a compact badge (optionally floating), one line of stars, a “Review us” button and a small popup in a corner. Light, dark or automatic theme.
* **38 languages.** Pick one, or let the widget follow your site's language (or each visitor's browser language). Reviews always stay in the reviewer's own words.
* **No trial, no view limits, no banners** on your site, and no “powered by” link unless you switch one on.

Add the **Featherstar Reviews** block, or use the shortcode:

`[featherstar]`
`[featherstar layout="carousel" max="6"]`

Shortcode options: `id` (widget ID, defaults to the one in settings), `layout` (grid, list, masonry, carousel, slider, badge, inline, button, popup), `theme` (light, dark, auto), `lang` (a language code such as en, de, hu, fr, es, pl or zh-TW, 38 in all; `auto` follows the page language, `visitor` the visitor's browser), `max` (1–50). The shortcode works in any page builder that accepts shortcodes, such as Elementor's Shortcode widget.

= How it works =

You connect your Google Business Profile (formerly Google My Business) and create a free widget at [featherstar.app](https://featherstar.app/), then paste the widget ID under Settings → Featherstar. Your reviews, star rating and owner replies appear on your site, and update once a day. To try the plugin first, use the widget ID `demo_en` (fictional demo reviews).

== External services ==

This plugin connects to the Featherstar service to download your review widget data.

* **What:** your site's server requests `https://cdn.featherstar.app/w/{widget-id}.json` once a day (and when you save the settings or click "Refresh now"). The request sends the widget ID and a User-Agent containing the plugin version and your site's address. Visitors' browsers do not contact Featherstar.
* **What it contains:** your business name, average rating and review count, and recent reviews (reviewer display name, profile photo URL, rating, text, date and your reply) as provided by Google for the Business Profile you connected.
* **Reviewer photos:** unless privacy mode is enabled in your widget, reviewer profile pictures are loaded by visitors' browsers from Google's servers (googleusercontent.com).
* Featherstar Terms of Service: https://featherstar.app/terms/
* Featherstar Privacy Policy: https://featherstar.app/privacy/

Google is a trademark of Google LLC. Featherstar is not affiliated with or endorsed by Google.

== Source code ==

The widget script `assets/featherstar.js` is minified. It is built, together with the language files in `assets/i18n/`, from readable TypeScript source that ships with the plugin in the `source` folder:

* `source/src/`: the widget (TypeScript, no runtime dependencies)
* `source/i18n/packs.json`: the interface texts in every language
* `source/build.mjs`: the build script, using esbuild

To rebuild, install Node.js 18 or later and run `npm install` and then `npm run build` in the `source` folder. The output in `source/dist/` (`v1.js` and `i18n/`) is identical to the shipped files. The block editor script `blocks/reviews/index.js` is plain JavaScript with no build step. All of this code is GPLv2 or later, like the rest of the plugin.

== Installation ==

1. Install and activate the plugin.
2. Create a widget at featherstar.app and copy its widget ID (or use `demo_en` to try it).
3. Go to Settings → Featherstar, paste the ID and save.
4. Add the Featherstar Reviews block or the `[featherstar]` shortcode to any page.

== Frequently Asked Questions ==

= Is it really free? =

Yes. The free plan has one widget with up to 20 reviews, a daily update and no view limit. Nothing expires and nothing is switched off later. Pro (€19 a year for the first 100 customers, then €25; or €4.90 a month) adds more widgets, up to 50 reviews per widget and replying to reviews from an AI assistant. Details are at featherstar.app.

= Can I show Google reviews as a slider, carousel or badge? =

Yes. Choose a carousel, a slider that shows one review at a time, or a compact badge in the widget settings, or per page with the `layout` shortcode option. Grid, list, masonry, one line of stars, a “Review us” button and a corner popup are there too.

= Why do I need a Featherstar account? =

Google gives a business's full list of reviews only to its owner, after a Google sign-in. Featherstar does that sign-in once and keeps the access on its side, so no key or token is stored in your WordPress database. You need no Google API key and no Google Cloud billing account.

= Does it add a “powered by” link to my site? =

No. A small “by Featherstar” link appears only if you tick “Credit link” under Settings → Featherstar.

= Does it set cookies or track visitors? =

No. The reviews and the script come from your own site. The one outside request a visitor's browser can make is for reviewer profile pictures, which load from Google unless you enable privacy mode for the widget (it then shows initials instead).

= Will this slow down my site? =

No. Reviews come from your own database, and the script is about 9 KB, loaded with `defer` only on pages that show reviews.

= Do I get review stars in Google search results? =

Google does not show review stars for reviews a business publishes about itself on its own site, so this plugin does not add review markup. What helps is real, readable review text on your pages – which is exactly what Featherstar prints.

= What happens if Featherstar is unreachable? =

Your site keeps showing the last downloaded copy for up to 14 days. If you delete the widget at Featherstar, its reviews disappear from your site at the next daily download.

= Does it work with page caching plugins? =

Yes. The reviews are part of the page HTML.

== Screenshots ==

1. Grid layout in a standard theme.
2. Carousel layout.
3. The compact badge, and the list layout below it.

== Changelog ==

= 0.4.2 =
* An optional note under the reviews on whether and how you check that they come from real customers, as EU rules ask (in Germany section 5b UWG). You write it, or start from a template, in the widget settings at featherstar.app.

= 0.4.1 =
* The plugin includes the readable source of the widget script and the steps to rebuild it (`source` folder).

= 0.4.0 =
* The widget speaks 38 languages, and can follow your site's language or each visitor's browser language automatically.
* Anonymous reviewers are named in the language the widget shows.

= 0.3.1 =
* A business with no reviews yet shows “No reviews yet” and a link to leave the first one, instead of 0.0 stars.
* Five new layouts: masonry wall, slider (one review at a time), one line of stars, a “Review us” button and a corner popup.
* When you show only some reviews (a star minimum, text only) or order them by rating, a short line under the rating says so.

= 0.3.0 =
* The “by Featherstar” credit link is now off unless you switch it on under Settings → Featherstar.
* Fix: the “All reviews on …” link names Facebook for Facebook widgets.

= 0.2.1 =
* Reviews of a widget deleted at Featherstar are removed from the site at the next download.
* A copy that could not be refreshed for 14 days is no longer shown or stored.

= 0.2.0 =
* Facebook recommendations, privacy mode and "Write a review" link (from the snapshot).

= 0.1.0 =
* First version: settings page, daily download, server-rendered HTML, block, shortcode.
