Title: Wp Post Rating
Author: shmidtelson
Published: <strong>2018 年 11 月 11 日</strong>
Last modified: 2026 年 6 月 1 日

---

搜索插件

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

![](https://ps.w.org/wp-post-rating/assets/icon-256x256.gif?rev=3556468)

# Wp Post Rating

 作者：[shmidtelson](https://profiles.wordpress.org/shmidtelson/)

[下载](https://downloads.wordpress.org/plugin/wp-post-rating.1.3.1.zip)

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

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

## 描述

Lightweight AJAX 5-star post ratings with Schema.org markup, shortcodes, a sidebar
widget, and admin vote management.

### WP-POST-RATING is powerful rating plugin with ajax security requests.

### Features:

 * Very faster
    _Plugin use OOP and Vanilla JS, svg icons and CSS variables_
 * Seo-friendly
    _Plugin use Schema for show stars rating in google search results_
 * Without jQuery (Native js)
    _Native js is very fast_
 * Customize color of stars
    _You can customize color of stars and the second color
   will generate automatic_
 * MultiLanguages
    +English (en_US) +Spanish (es_ES) +Russian (ru_RU)

### Functional:

 * Widget for show latest (any sort) votes in sidebar (other place)

#### Shortcodes:

 * `[wp_rating]` show rating
 * `[wp_rating_total]` show total votes for current post
 * `[wp_rating_avg]` show total votes for current post

## 屏幕截图

[⌊How to displaing on your site⌉⌊How to displaing on your site⌉[

How to displaing on your site

[⌊List of all votes⌉⌊List of all votes⌉[

List of all votes

[⌊Settings page⌉⌊Settings page⌉[

Settings page

[⌊Display widget on frontend⌉⌊Display widget on frontend⌉[

Display widget on frontend

[⌊Widget settings⌉⌊Widget settings⌉[

Widget settings

## 安装

 1. Upload the `wp-post-rating` directory to the `/wp-content/plugins/` directory on
    your web server
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. In settings copy shortcode and put it in your template.

## 评价

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

### 󠀁[Fatal error](https://wordpress.org/support/topic/fatal-error-3614/)󠁿

 [Enemy](https://profiles.wordpress.org/history73/) 2020 年 9 月 5 日 2 回复

Hello, after update (today) i have fatal error. Fatal error: Uncaught ReflectionException
This error you can read and in your site. Please fix it. Update: Now is ok, 5 stars
from me 🙂

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

### 󠀁[Good plugin](https://wordpress.org/support/topic/good-plugin-4137/)󠁿

 [shmidtelson](https://profiles.wordpress.org/shmidtelson/) 2020 年 3 月 20 日

This plugin have vanilla JS, dont use other libs (jQuery etc.) Seo-friendly, included
Schema.org. Have page with all votes for moderating.

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

## 贡献者及开发者

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

贡献者

 *   [ shmidtelson ](https://profiles.wordpress.org/shmidtelson/)

「Wp Post Rating」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-post-rating/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.1

 * Fixed: Release zip no longer includes dev files (`.editorconfig`, `.distignore`,
   source `assets/js/`) that could confuse installs on strict hosts

#### 1.3.0

 * Changed: Removed runtime Composer vendor (Twig, Symfony DI); plugin uses a lightweight
   PSR-4 autoloader and PHP templates
 * Added: `PluginBootstrap` service wiring, `.wordpress/` Docker dev stack with 
   plugin bind-mount, Playground blueprints (`.sandbox/`, root `blueprint.json`)
 * Fixed: Text domain loaded on `init` (WordPress 6.7+ notice); lazy loading for
   admin list table and widget classes
 * Note: Updating from 1.2.x removes thousands of old vendor files; on some hosts
   the dashboard update may fail once — delete the plugin folder and reinstall if
   you see “Could not copy file”

#### 1.2.5

 * Added: Makefile `plugin-remove` to deactivate and remove the plugin from local
   Docker installs
 * Improved: `.distignore` excludes dev tooling from WordPress.org packages (node_modules,
   Docker/Makefile, docs)

#### 1.2.4

 * Fixed: wordpress.org and incomplete installs missing `src/Compat/ListTableLoader.
   php` (fatal on activation)
 * Fixed: release package now always ships `src/Compat/` for `WPR\Compat\ListTableLoader`(
   Composer PSR-4 autoload)

#### 1.2.3

 * Requires WordPress 6.0+ and PHP 8.1+ (tested up to WordPress 6.8)
 * Added: display rating before or after single post content, or manual shortcode/
   PHP only
 * Added: English (en_US), Spanish (es_ES), and updated Russian (ru_RU) translations
 * Added: `make i18n` to compile language files; Docker/Makefile for local development
 * Added: WordPress Playground blueprint (`assets/blueprints/blueprint.json`) for
   plugin directory preview
 * Improved text domain loading with English (en_US) fallback
 * Improved activation and automatic `wpr_rating` table creation when missing after
   deploy
 * Improved admin settings sanitization, bulk actions, and SQL ORDER BY handling
 * Improved Twig translations and PSR-4 autoload; build uses Yarn and sass
 * Fixed WP_List_Table and admin ratings screen on newer WordPress
 * Fixed deprecated PHP filter usage (PHP 8.2+), ConfigService notices, and version-
   check deactivation
 * Fixed empty plugin options JSON decode and several admin UI strings
 * Security: removed hardcoded third-party API credentials from plugin code

#### 1.2.0

 * Stars rating library moved to @romua1d/star-rating-js library

#### 1.1.1.0

 * Global refactoring. Moved to Symfony DI

#### 1.1.0.4

 * Fix critical bug

#### 1.1.0.3

 * Fixed bug which blocked work with page builders, like as Divi, Beaver, Visual
   Composer, Themify, Elementor, Oxygen

#### 1.1.0.2

 * Fixed bug with ajax request
 * Fixed schema.org json

#### 1.1.0

 * Global refactoring
 * Added twig templates
 * Added checkbox for activating schema
 * Added shortcodes total and avg count votes

#### 1.0.5

 * Added full color constructor for rating view
 * Small refactoring

#### 1.0.4.2

 * Fix vote table default sort in admin area
 * Small refactoring

#### 1.0.4.1

 * Fix bug with pagination all votes in admin area

#### 1.0.4

 * Added color chooser support

#### 1.0.3.3

 * Optimize XHR to backend

#### 1.0.3.2

 * Fix ajax incorrect answer

#### 1.0.3.1

 * Fixes with loader and display data. Correct SEO schema

#### 1.0.3

 * Fix username in widget
 * Fix date in widget for multilang sites
 * Remove event click from star in widget
 * Add validator for ajax vote request
 * Chore code
 * Update language

#### 1.0.2

 * Visual fixes

#### 1.0.1

 * Change horizontal position

#### 1.0.0

Release.
 * Ajax voting * Votes in admin panel * Shortcode support

## 额外信息

 *  版本 **1.3.1**
 *  最后更新：**1 周前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-post-rating/) 和 [Russian](https://ru.wordpress.org/plugins/wp-post-rating/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-post-rating)
 * 标签
 * [ajax](https://cn.wordpress.org/plugins/tags/ajax/)[post rating](https://cn.wordpress.org/plugins/tags/post-rating/)
   [rating](https://cn.wordpress.org/plugins/tags/rating/)[schema](https://cn.wordpress.org/plugins/tags/schema/)
   [star rating](https://cn.wordpress.org/plugins/tags/star-rating/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-post-rating/advanced/)

## 评级

 5 星（最高 5 星）。

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

[Your review](https://wordpress.org/support/plugin/wp-post-rating/reviews/#new-post)

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

## 贡献者

 *   [ shmidtelson ](https://profiles.wordpress.org/shmidtelson/)

## 支持

有话要说吗？是否需要帮助？

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://github.com/shmidtelson/wp-post-rating)