StarBadge - Google Reviews
Display Google Business reviews and ratings as a customizable badge on your website.
by Dragi Postolovski · github.com/dragipostolovski/starbadge
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/dragipostolovski/starbadge/archive/refs/heads/master.zipStarBadge - Google Reviews Badge Plugin
Display Google Business reviews and ratings as a customizable badge on your WordPress website.
Features
- ⭐ Fetch reviews from Google Business Profile
- 🎨 Multiple display styles (default, minimal, card)
- 📱 Fully responsive design
- ⚡ Built-in caching for performance
- 🔧 Easy configuration via WordPress admin
- 🛠 Shortcode and Widget support
- 🌍 Translation-ready
Installation
- Download and extract the plugin to
/wp-content/plugins/starbadge/ - Activate the plugin from the WordPress Admin > Plugins
- Go to StarBadge in the admin menu to configure settings
Setup
Step 1: Get Google API Key
- Go to Google Cloud Console
- Create a new project
- Enable the Places API
- Create a new API Key (type: Restrict to application)
- Copy the API key
Step 2: Get Google Place ID
- Go to Google Business Profile
- Find your business and get the Place ID
- Alternatively, use this tool to find your Place ID
Step 3: Configure Plugin
- In WordPress Admin, go to StarBadge
- Enter your Google API Key
- Enter your Google Place ID
- Save changes
Usage
Via Shortcode
Add to any page or post:
[starbadge style="default" show_reviews="true" limit="3"]
Via Widget
- Go to Appearance > Widgets
- Add the StarBadge - Google Reviews widget to your sidebar
- Configure the widget options
Shortcode Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
style |
string | default |
Badge style: default, minimal, or card |
show_reviews |
boolean | true |
Display individual reviews |
limit |
integer | 3 |
Number of reviews to display |
Examples
Minimal badge (rating only):
[starbadge style="minimal" show_reviews="false"]
Card style with 5 reviews:
[starbadge style="card" show_reviews="true" limit="5"]
Styles
Default
Clean, professional design with rating, review count, and individual reviews.
Minimal
Compact rating badge, perfect for headers or sidebars.
Card
Eye-catching card style with accent color and highlighted design.
Caching
The plugin caches reviews for 1 hour by default to reduce API calls and improve performance. To clear the cache manually, use:
delete_transient( 'starbadge_reviews_' . PLACE_ID );
Troubleshooting
"API key and Google Place ID not configured"
- Go to StarBadge settings and enter your credentials
- Verify the API key and Place ID are correct
Reviews not showing
- Check that the Google Places API is enabled in Google Cloud Console
- Ensure your API key has the correct restrictions
- Verify the Place ID is correct
Styling issues
- Check if another plugin or theme is overriding the CSS
- Use browser DevTools to inspect the badge element
Requirements
- WordPress 5.0+
- PHP 7.4+
- Google API Key with Places API enabled
- Google Business Profile
Support
For issues or feature requests, please check the plugin documentation or contact support.
License
GPL v2 or later - See LICENSE file for details