Title: Stars Rating
Author: Fahid Javid
Published: <strong>2017 年 2 月 9 日</strong>
Last modified: 2026 年 3 月 21 日

---

搜索插件

![](https://ps.w.org/stars-rating/assets/banner-772x250.png?rev=1593052)

![](https://ps.w.org/stars-rating/assets/icon-256x256.png?rev=1593058)

# Stars Rating

 作者：[Fahid Javid](https://profiles.wordpress.org/fahidjavid/)

[下载](https://downloads.wordpress.org/plugin/stars-rating.4.1.0.zip)

 * [详情](https://cn.wordpress.org/plugins/stars-rating/#description)
 * [评价](https://cn.wordpress.org/plugins/stars-rating/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/stars-rating/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/stars-rating/#developers)

 [支持](https://wordpress.org/support/plugin/stars-rating/)

## 描述

Stars Rating transforms WordPress comments into a fully featured review system. 
It is simple to set up, highly configurable, and designed to keep your Media Library
and admin clean no matter how many reviews come in.

Its main features are as follows:

**Star Ratings**
 * Turns posts, pages and custom post types comments into star-
rated reviews. * Choose which post types have ratings enabled, globally and per 
post. * Option to require a star selection before a comment can be submitted. * 
Choose from two star styles (regular outline or solid filled) with a custom colour
picker. * Display the average rating above the comments section. * Offers a shortcode**[
stars_rating_avg]** to display the average rating anywhere. * Hide the average rating
text: **[stars_rating_avg show_text=”no”]**. * Hide an empty average rating: **[
stars_rating_avg show_empty_rating=”no”]**. * See each review’s star rating on the
WordPress comments screen (backend).

**Review Photos**
 * Allow reviewers to attach photos to their comments. * Photos
are stored in a dedicated folder (wp-content/uploads/sr-reviews/) — completely separate
from the WordPress Media Library to keep it clean. * Photos open in a per-review
lightbox gallery on the front end. * Manage and delete individual review photos 
from the comment edit screen in the admin. * Configure max number of photos, max
file size, and max image dimension per upload. * Restrict photo uploads to logged-
in users or allow everyone.

**Likes & Dislikes**
 * Add thumbs-up / thumbs-down buttons to posts on any post
type. * Show or hide vote counts next to each button. * Restrict voting to logged-
in users or allow everyone. * SVG icons ensure consistent rendering across all browsers
and devices.

**Negative Rating Alert**
 * Show a popup when a reviewer selects a low star rating,
giving them a chance to reach out before posting. * Set the rating threshold that
triggers the alert. * Configure a direct link to your contact page inside the alert.

**Google Rich Snippets**
 * Output JSON-LD structured data so star ratings can appear
directly in Google search results. * Set the review type (Product, Recipe, Book,
Course, etc.) to match your content.

**Labels & Messages**
 * Customise every user-facing string — prompts, button labels,
alert text, error messages — directly from the settings page without editing any
code.

**Settings**
 * Organised settings page with tabbed navigation (Stars & Reviews,
Likes & Dislikes, Labels & Messages) for quick access to each feature area.

## 屏幕截图

[⌊Plugin settings — Stars & Reviews tab covering General, Display, Google Rich Snippets,
Negative Rating Alert, and Review Photos configuration in one organised view.⌉⌊Plugin
settings — Stars & Reviews tab covering General, Display, Google Rich Snippets, 
Negative Rating Alert, and Review Photos configuration in one organised view.⌉[

Plugin settings — Stars & Reviews tab covering General, Display, Google Rich Snippets,
Negative Rating Alert, and Review Photos configuration in one organised view.

[⌊Likes & Dislikes settings tab — enable/disable the feature, select target post
types, restrict voting to logged-in users, and toggle vote count visibility.⌉⌊Likes&
Dislikes settings tab — enable/disable the feature, select target post types, restrict
voting to logged-in users, and toggle vote count visibility.⌉[

Likes & Dislikes settings tab — enable/disable the feature, select target post types,
restrict voting to logged-in users, and toggle vote count visibility.

[⌊Labels & Messages settings tab — customise every user-facing string for star ratings,
the negative rating alert popup, and likes & dislikes buttons without touching any
code.⌉⌊Labels & Messages settings tab — customise every user-facing string for star
ratings, the negative rating alert popup, and likes & dislikes buttons without touching
any code.⌉[

Labels & Messages settings tab — customise every user-facing string for star ratings,
the negative rating alert popup, and likes & dislikes buttons without touching any
code.

[⌊Per-post Stars Rating panel in the block editor sidebar — independently enable
or disable star ratings and likes & dislikes for each post or page.⌉⌊Per-post Stars
Rating panel in the block editor sidebar — independently enable or disable star 
ratings and likes & dislikes for each post or page.⌉[

Per-post Stars Rating panel in the block editor sidebar — independently enable or
disable star ratings and likes & dislikes for each post or page.

[⌊Adding the [stars_rating_avg] shortcode via the WordPress block editor to embed
the average rating anywhere in a post or page.⌉⌊Adding the [stars_rating_avg] shortcode
via the WordPress block editor to embed the average rating anywhere in a post or
page.⌉[

Adding the [stars_rating_avg] shortcode via the WordPress block editor to embed 
the average rating anywhere in a post or page.

[⌊Average rating shortcode rendered on the front end — displays star icons alongside
the rating score and total review count.⌉⌊Average rating shortcode rendered on the
front end — displays star icons alongside the rating score and total review count
.⌉[

Average rating shortcode rendered on the front end — displays star icons alongside
the rating score and total review count.

[⌊Review submission form with a five-star rating selector, photo upload button with
live thumbnail preview, and the standard comment field.⌉⌊Review submission form 
with a five-star rating selector, photo upload button with live thumbnail preview,
and the standard comment field.⌉[

Review submission form with a five-star rating selector, photo upload button with
live thumbnail preview, and the standard comment field.

[⌊Published review on the front end showing the star rating and reviewer-attached
photos displayed in a clean thumbnail grid.⌉⌊Published review on the front end showing
the star rating and reviewer-attached photos displayed in a clean thumbnail grid
.⌉[

Published review on the front end showing the star rating and reviewer-attached 
photos displayed in a clean thumbnail grid.

[⌊Likes & Dislikes buttons rendered on a post — shows the prompt label, thumbs-up/
thumbs-down SVG icons, and live vote counts.⌉⌊Likes & Dislikes buttons rendered 
on a post — shows the prompt label, thumbs-up/thumbs-down SVG icons, and live vote
counts.⌉[

Likes & Dislikes buttons rendered on a post — shows the prompt label, thumbs-up/
thumbs-down SVG icons, and live vote counts.

[⌊WordPress Posts admin list with the custom "Avg. Rating" column showing average
star rating and total review count per post.⌉⌊WordPress Posts admin list with the
custom "Avg. Rating" column showing average star rating and total review count per
post.⌉[

WordPress Posts admin list with the custom “Avg. Rating” column showing average 
star rating and total review count per post.

[⌊WordPress Comments admin screen with the custom "Stars Rating" column displaying
the individual star rating for each comment.⌉⌊WordPress Comments admin screen with
the custom "Stars Rating" column displaying the individual star rating for each 
comment.⌉[

WordPress Comments admin screen with the custom “Stars Rating” column displaying
the individual star rating for each comment.

[⌊Edit Comment screen in the WordPress admin — Stars Rating metabox shows the numeric
rating, and the Review Photos metabox displays all attached images with individual
delete buttons.⌉⌊Edit Comment screen in the WordPress admin — Stars Rating metabox
shows the numeric rating, and the Review Photos metabox displays all attached images
with individual delete buttons.⌉[

Edit Comment screen in the WordPress admin — Stars Rating metabox shows the numeric
rating, and the Review Photos metabox displays all attached images with individual
delete buttons.

## 安装

### Method 1: WordPress Admin Interface

 1. Navigate to your WordPress dashboard and go to **Plugins > Add New**.
 2. In the search bar, enter **Stars Rating** and press Enter.
 3. Look for the plugin in the search results and click on the **Install Now** button.
 4. Once installed, click on the **Activate** button to activate the plugin.

### Method 2: FTP Upload

 1. Download the plugin ZIP file and extract it.
 2. Connect to your server using an FTP client (e.g., FileZilla, Cyberduck or cPanel).
 3. Upload the extracted plugin folder to the `/wp-content/plugins/` directory on your
    server.
 4. Activate the plugin through the WordPress dashboard from **Plugins > Installed 
    Plugins** page.

**Note:** After installing & activating the plugin go to the **Dashboard > Stars
Rating** page to enable/disable features and configure related settings.

## 评价

![](https://secure.gravatar.com/avatar/e2484cf9a57b12a07c5507102bc541945f83ce0546fd0d5c272ce500d482bfc3?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-10632/)󠁿

 [casiana](https://profiles.wordpress.org/casiana/) 2025 年 1 月 15 日

It works perfect.

![](https://secure.gravatar.com/avatar/0937e2d413f243ac692f95da3ca8bffc779842e7d7eca0e7bcfcccdbbaa37976?
s=60&d=retro&r=g)

### 󠀁[Simple and Perfect](https://wordpress.org/support/topic/simple-and-perfect-232/)󠁿

 [mav0430](https://profiles.wordpress.org/mav0430/) 2024 年 5 月 23 日 1 回复

It’s the perfect star rating plugin for my website. It's not overloaded with features
but has just the right ones.

![](https://secure.gravatar.com/avatar/d1aa7aed6a6adb8c955288ee4323d21e7b5fcc63e85da1eb4f06b4dd20c491e9?
s=60&d=retro&r=g)

### 󠀁[need translation](https://wordpress.org/support/topic/need-translation/)󠁿

 [enthalpie](https://profiles.wordpress.org/enthalpie/) 2024 年 3 月 15 日 1 回复

hi where we can translate message ? for example " 4 based on 1 reviews" or "Be the
first to write a review"

![](https://secure.gravatar.com/avatar/43c2f2bd28c9087bafd9d2d23c183b10c2b0f3742a791ab26a49a11624cdf7cf?
s=60&d=retro&r=g)

### 󠀁[Perfect & Woking Well. Can i request extra featured?](https://wordpress.org/support/topic/perfect-woking-well-can-i-request-extra-featured/)󠁿

 [aculnetwork](https://profiles.wordpress.org/aculnetwork/) 2023 年 12 月 9 日 4
回复

It working really well to display post review and easy to use. Can the star & review
display even if no review by default. the review only show if the post have review.
No review post have grey star and 0 count. Thank you

![](https://secure.gravatar.com/avatar/0c176e0b2618a64457ac079473ac19f8e2bdd5461a6f4ac50032908c526d0460?
s=60&d=retro&r=g)

### 󠀁[[stars_rating_avg] is not work](https://wordpress.org/support/topic/stars_rating_avg-is-not-work/)󠁿

 [kader404](https://profiles.wordpress.org/kader404/) 2023 年 2 月 10 日 3 回复

why the shortcode is not work as well

![](https://secure.gravatar.com/avatar/dffdbb0a8414040ce41471ba6c5b910ba398cb1abb0e2563ff6f5588809c0029?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-12233/)󠁿

 [sroskylos](https://profiles.wordpress.org/sroskylo1/) 2022 年 10 月 19 日 1 回复

Great plugin with awesome support!!!

 [ 阅读所有23条评价 ](https://wordpress.org/support/plugin/stars-rating/reviews/)

## 贡献者及开发者

「Stars Rating」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Fahid Javid ](https://profiles.wordpress.org/fahidjavid/)

[帮助将「Stars Rating」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/stars-rating)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/stars-rating/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/stars-rating/)，或通过[RSS](https://plugins.trac.wordpress.org/log/stars-rating/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/stars-rating/)。

## 更新日志

= 4.1.0
 * New: Likes & Dislikes — let visitors like or dislike posts with configurable
voter permissions, post type targeting, and visible vote counts * New: Review Photos—
reviewers can now attach images to their comments; photos are stored in a dedicated
directory (wp-content/uploads/sr-reviews/) completely separate from the WordPress
Media Library to keep it uncluttered * New: Per-photo lightbox — clicking a review
photo opens a full-size lightbox gallery navigatable per review; photo paths are
not exposed in the browser status bar * New: Admin photo management — uploaded review
photos are visible in the comment edit screen with individual delete buttons * New:
Labels & Messages — all user-facing strings (rating prompts, alert text, button 
labels, likes/dislikes copy) are now fully customisable from the settings page without
touching code * New: Settings tab navigation — settings are now organised into three
focused tabs (Stars & Reviews, Likes & Dislikes, Labels & Messages) for easier navigation;
active tab is remembered across page visits * Improved: General code structure improvements
and refactoring * Updated: Translation files updated for multilingual support * 
WordPress 6.9.4 compatibility confirmed

= 4.0.7
 * WordPress 6.9 compatibility confirmed * Updated minimum WP requirement
to 6.0 * Updated minimum PHP requirement to 8.3 (recommended by WordPress.org) *
Updated translation files for multilingual support * General code improvements

= 4.0.6
 * Fixed average rating display logic based on enabled/disabled custom post
types (CPTs) * Resolved issue with rating display on individual comments * Improved
performance and optimized query handling * Refactored large portions of the codebase
for better readability and maintainability * Updated translation (.pot) file for
improved localization support * Tested compatibility with WordPress 6.8.1

= 4.0.5
 * Updated language file * Tested plugin with WordPress 6.7.1

= 4.0.4
 * Added average rating text show/hide support to shortcode * Added empty
average rating show/hide support to shortcode * Added independent settings page 
of the plugin * Removed settings from “Dashboard > Settings > Discussions” page *
Updated language file * Tested plugin with WordPress 6.6.1

= 4.0.3
 * Fixed a PHP warning on comments template * Displayed average rating only
if comments are open * Displayed empty stars for average rating if no rating found*
Improved code for average rating to work with posts/pages/CPTs list * Updated language
file * Tested plugin with WordPress 6.5.3

= 4.0.2
 * Fixed a PHP version specific fatal error on (backend) comments page *
Tested plugin with WordPress 6.4.3

= 4.0.1
 * Added “Negative Rating Alert” system to foster positive feedback * Improved“
Google Review Schema” display upon reviews availability * Updated language POT file*
Tested plugin with WordPress 6.4.2

= 4.0.0
 * Improved plugin resources management * Improved comments enable/disable
compatability * Improved plugin settings area styles * Improved whole plugin code
WRT the advance practices * Added comments stars rating column to the comments page(
dashboard) * Updated language file * Tested plugin with WordPress 6.4.1

= 3.5.5
 * Updated language file. * Tested plugin with WordPress 6.2

= 3.5.4
 * Added average rating fallback when there is no review * Improved average
rating display markup for better control * Updated language file. * Tested plugin
with WordPress 6.0.3

= 3.5.3
 * Tested plugin with WordPress 5.9.1

= 3.5.2
 * Minor sanitization functions update.

= 3.5.1
 * Improved plugin from security point of view. * Tested plugin with WordPress
5.8.2

= 3.5.0
 * Tested plugin with WordPress 5.7.1

= 3.4.0
 * Added translation missing strings to the translation.

= 3.3.0
 * Tested with WordPress 5.4.1

= 3.2.0
 * Added custom reviews type support for Google search results.

= 3.1.0
 * Added latest Gutenberg editor support. * Allowed reviews reply without
rating.

#### 3.0.0

 * Added an option to choose from two different rating stars style.
 * Added an option to display stars rating in Google search results.

#### 2.0.0

 * Tested plugin with WordPress 5.1.1 and PHP 7.3.3
 * Added an option to require rating selection

#### 1.3.1

 * Fixed styling issue

#### 1.3.0

 * Tested with WordPress 5.0
 * Fixed the default rating value

#### 1.2.0

 * Added show/hide support for average rating above comments section
 * Added “[stars_rating_avg]” shortcode support to display average rating in the
   post/page content area or loop
 * Set the rating option in the comment form to 5 stars by default

#### 1.1.0

 * Tested plugin up to WP V4.9.8

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **4.1.0**
 *  最后更新：**7 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.10**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/stars-rating/)
 * 标签
 * [comments](https://cn.wordpress.org/plugins/tags/comments/)[rating](https://cn.wordpress.org/plugins/tags/rating/)
   [reviews](https://cn.wordpress.org/plugins/tags/reviews/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [stars](https://cn.wordpress.org/plugins/tags/stars/)
 *  [高级视图](https://cn.wordpress.org/plugins/stars-rating/advanced/)

## 评级

 4.7 星（最高 5 星）。

 *  [  19 条 5 星评价     ](https://wordpress.org/support/plugin/stars-rating/reviews/?filter=5)
 *  [  3 条 4 星评价     ](https://wordpress.org/support/plugin/stars-rating/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/stars-rating/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/stars-rating/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/stars-rating/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/stars-rating/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/stars-rating/reviews/)

## 贡献者

 *   [ Fahid Javid ](https://profiles.wordpress.org/fahidjavid/)

## 支持

最近两个月解决的问题：

     总计 2，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/stars-rating/)