{"id":93916,"date":"2018-11-11T09:10:21","date_gmt":"2018-11-11T09:10:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-post-rating\/"},"modified":"2026-06-01T11:37:57","modified_gmt":"2026-06-01T11:37:57","slug":"wp-post-rating","status":"publish","type":"plugin","link":"https:\/\/cn.wordpress.org\/plugins\/wp-post-rating\/","author":14023096,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.3.1","stable_tag":"1.3.1","tested":"6.8.5","requires":"6.0","requires_php":"8.1","requires_plugins":null,"header_name":"Wp Post Rating","header_author":"Romua1d","header_description":"Powerful post rating wordpress plugin.","assets_banners_color":"ffffff","last_updated":"2026-06-01 11:37:57","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/shmidtelson\/wp-post-rating","header_plugin_uri":"https:\/\/github.com\/shmidtelson\/wp-post-rating","header_author_uri":"https:\/\/romua1d.ru","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2276,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["installation","changelog","description"],"tags":{"1.1.0.4.1":{"tag":"1.1.0.4.1","author":"Shmidtelson","date":"2020-09-05 12:44:37"},"1.1.0.4.2":{"tag":"1.1.0.4.2","author":"Shmidtelson","date":"2020-09-05 12:50:18"},"1.1.0.4.3":{"tag":"1.1.0.4.3","author":"Shmidtelson","date":"2020-09-05 13:14:19"},"1.1.0.4.4":{"tag":"1.1.0.4.4","author":"Shmidtelson","date":"2020-09-05 14:15:28"},"1.1.0.4.5":{"tag":"1.1.0.4.5","author":"Shmidtelson","date":"2020-09-05 14:18:48"},"1.1.1.0":{"tag":"1.1.1.0","author":"Shmidtelson","date":"2020-11-28 16:14:41"},"1.2.0":{"tag":"1.2.0","author":"Shmidtelson","date":"2021-07-18 13:24:53"},"1.2.0.0":{"tag":"1.2.0.0","author":"Shmidtelson","date":"2021-07-18 13:33:04"},"1.2.0.1":{"tag":"1.2.0.1","author":"Shmidtelson","date":"2021-07-18 13:36:59"},"1.2.1":{"tag":"1.2.1","author":"Shmidtelson","date":"2021-07-18 14:01:06"},"1.2.2":{"tag":"1.2.2","author":"Shmidtelson","date":"2021-07-18 14:15:17"},"1.2.2.1":{"tag":"1.2.2.1","author":"Shmidtelson","date":"2021-07-26 11:51:20"},"1.2.3":{"tag":"1.2.3","author":"Shmidtelson","date":"2026-06-01 08:50:22"},"1.2.4":{"tag":"1.2.4","author":"Shmidtelson","date":"2026-06-01 09:00:14"},"1.2.5":{"tag":"1.2.5","author":"Shmidtelson","date":"2026-06-01 09:13:42"},"1.3.0":{"tag":"1.3.0","author":"Shmidtelson","date":"2026-06-01 11:23:19"},"1.3.1":{"tag":"1.3.1","author":"Shmidtelson","date":"2026-06-01 11:37:57"}},"upgrade_notice":{"1.3.1":"<p>Packaging fix for wordpress.org installs. If 1.3.0 failed with &quot;Could not copy file&quot;, delete <code>wp-content\/plugins\/wp-post-rating\/<\/code> and install again.<\/p>","1.3.0":"<p>If the update shows &quot;Could not copy file&quot;, deactivate the plugin, delete the <code>wp-post-rating<\/code> folder under <code>wp-content\/plugins\/<\/code> (FTP or hosting file manager), then install again. Your ratings and settings stay in the database.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":1972419,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.gif":{"filename":"icon-256x256.gif","revision":3556468,"resolution":"256x256","location":"assets","locale":"","width":950,"height":950}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2269472,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3556676,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"landingPage\":\"\\\/?p=1\",\"preferredVersions\":{\"php\":\"8.2\",\"wp\":\"latest\"},\"phpExtensionBundles\":[\"kitchen-sink\"],\"features\":{\"networking\":true},\"steps\":[{\"step\":\"login\",\"username\":\"admin\",\"password\":\"password\"},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"wp-post-rating\"},\"options\":{\"activate\":true}},{\"step\":\"runPHP\",\"code\":\"<?php require_once '\\\/wordpress\\\/wp-load.php'; $content = '<p>' . esc_html__( 'Try the star rating below.', 'wp-post-rating' ) . '<\\\/p>' . \\\"\\\\n\\\\n\\\" . '[wp_rating]'; $post_id = 1; if ( get_post( $post_id ) ) { wp_update_post( array( 'ID' => $post_id, 'post_content' => $content ) ); } else { wp_insert_post( array( 'post_title' => 'Post with star rating', 'post_content' => $content, 'post_status' => 'publish' ) ); } ?>\"}]}"}},"all_blocks":[],"tagged_versions":["1.1.0.4.1","1.1.0.4.2","1.1.0.4.3","1.1.0.4.4","1.1.0.4.5","1.1.1.0","1.2.0","1.2.0.0","1.2.0.1","1.2.1","1.2.2","1.2.2.1","1.2.3","1.2.4","1.2.5","1.3.0","1.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2269456,"resolution":"1","location":"assets","locale":"","width":732,"height":387},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2269456,"resolution":"2","location":"assets","locale":"","width":1710,"height":564},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2375732,"resolution":"3","location":"assets","locale":"","width":1298,"height":674},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2269456,"resolution":"4","location":"assets","locale":"","width":621,"height":619},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2269456,"resolution":"5","location":"assets","locale":"","width":728,"height":441}},"screenshots":{"1":"How to displaing on your site","2":"List of all votes","3":"Settings page","4":"Display widget on frontend","5":"Widget settings"}},"plugin_section":[],"plugin_tags":[221,2297,2295,1117,2293],"plugin_category":[53],"plugin_contributors":[164156],"plugin_business_model":[],"class_list":["post-93916","plugin","type-plugin","status-publish","hentry","plugin_tags-ajax","plugin_tags-post-rating","plugin_tags-rating","plugin_tags-schema","plugin_tags-star-rating","plugin_category-ratings-and-reviews","plugin_contributors-shmidtelson","plugin_committers-shmidtelson"],"banners":{"banner":"https:\/\/ps.w.org\/wp-post-rating\/assets\/banner-772x250.png?rev=2269472","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/wp-post-rating\/assets\/icon-128x128.png?rev=1972419","icon_2x":"https:\/\/ps.w.org\/wp-post-rating\/assets\/icon-256x256.gif?rev=3556468","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-post-rating\/assets\/screenshot-1.png?rev=2269456","caption":"How to displaing on your site"},{"src":"https:\/\/ps.w.org\/wp-post-rating\/assets\/screenshot-2.png?rev=2269456","caption":"List of all votes"},{"src":"https:\/\/ps.w.org\/wp-post-rating\/assets\/screenshot-3.png?rev=2375732","caption":"Settings page"},{"src":"https:\/\/ps.w.org\/wp-post-rating\/assets\/screenshot-4.png?rev=2269456","caption":"Display widget on frontend"},{"src":"https:\/\/ps.w.org\/wp-post-rating\/assets\/screenshot-5.png?rev=2269456","caption":"Widget settings"}],"raw_content":"<!--section=installation-->\n<ol>\n<li>Upload the <code>wp-post-rating<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory on your web server<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>In settings copy shortcode and put it in your template.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.3.1<\/h4>\n\n<ul>\n<li>Fixed: Release zip no longer includes dev files (<code>.editorconfig<\/code>, <code>.distignore<\/code>, source <code>assets\/js\/<\/code>) that could confuse installs on strict hosts<\/li>\n<\/ul>\n\n<h4>1.3.0<\/h4>\n\n<ul>\n<li>Changed: Removed runtime Composer vendor (Twig, Symfony DI); plugin uses a lightweight PSR-4 autoloader and PHP templates<\/li>\n<li>Added: <code>PluginBootstrap<\/code> service wiring, <code>.wordpress\/<\/code> Docker dev stack with plugin bind-mount, Playground blueprints (<code>.sandbox\/<\/code>, root <code>blueprint.json<\/code>)<\/li>\n<li>Fixed: Text domain loaded on <code>init<\/code> (WordPress 6.7+ notice); lazy loading for admin list table and widget classes<\/li>\n<li>Note: Updating from 1.2.x removes thousands of old vendor files; on some hosts the dashboard update may fail once \u2014 delete the plugin folder and reinstall if you see \"Could not copy file\"<\/li>\n<\/ul>\n\n<h4>1.2.5<\/h4>\n\n<ul>\n<li>Added: Makefile <code>plugin-remove<\/code> to deactivate and remove the plugin from local Docker installs<\/li>\n<li>Improved: <code>.distignore<\/code> excludes dev tooling from WordPress.org packages (node_modules, Docker\/Makefile, docs)<\/li>\n<\/ul>\n\n<h4>1.2.4<\/h4>\n\n<ul>\n<li>Fixed: wordpress.org and incomplete installs missing <code>src\/Compat\/ListTableLoader.php<\/code> (fatal on activation)<\/li>\n<li>Fixed: release package now always ships <code>src\/Compat\/<\/code> for <code>WPR\\Compat\\ListTableLoader<\/code> (Composer PSR-4 autoload)<\/li>\n<\/ul>\n\n<h4>1.2.3<\/h4>\n\n<ul>\n<li>Requires WordPress 6.0+ and PHP 8.1+ (tested up to WordPress 6.8)<\/li>\n<li>Added: display rating before or after single post content, or manual shortcode\/PHP only<\/li>\n<li>Added: English (en_US), Spanish (es_ES), and updated Russian (ru_RU) translations<\/li>\n<li>Added: <code>make i18n<\/code> to compile language files; Docker\/Makefile for local development<\/li>\n<li>Added: WordPress Playground blueprint (<code>assets\/blueprints\/blueprint.json<\/code>) for plugin directory preview<\/li>\n<li>Improved text domain loading with English (en_US) fallback<\/li>\n<li>Improved activation and automatic <code>wpr_rating<\/code> table creation when missing after deploy<\/li>\n<li>Improved admin settings sanitization, bulk actions, and SQL ORDER BY handling<\/li>\n<li>Improved Twig translations and PSR-4 autoload; build uses Yarn and sass<\/li>\n<li>Fixed WP_List_Table and admin ratings screen on newer WordPress<\/li>\n<li>Fixed deprecated PHP filter usage (PHP 8.2+), ConfigService notices, and version-check deactivation<\/li>\n<li>Fixed empty plugin options JSON decode and several admin UI strings<\/li>\n<li>Security: removed hardcoded third-party API credentials from plugin code<\/li>\n<\/ul>\n\n<h4>1.2.0<\/h4>\n\n<ul>\n<li>Stars rating library moved to @romua1d\/star-rating-js library<\/li>\n<\/ul>\n\n<h4>1.1.1.0<\/h4>\n\n<ul>\n<li>Global refactoring. Moved to Symfony DI<\/li>\n<\/ul>\n\n<h4>1.1.0.4<\/h4>\n\n<ul>\n<li>Fix critical bug<\/li>\n<\/ul>\n\n<h4>1.1.0.3<\/h4>\n\n<ul>\n<li>Fixed bug which blocked work with page builders, like as Divi, Beaver, Visual Composer, Themify, Elementor, Oxygen<\/li>\n<\/ul>\n\n<h4>1.1.0.2<\/h4>\n\n<ul>\n<li>Fixed bug with ajax request<\/li>\n<li>Fixed schema.org json<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>Global refactoring<\/li>\n<li>Added twig templates<\/li>\n<li>Added checkbox for activating schema<\/li>\n<li>Added shortcodes total and avg count votes<\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<ul>\n<li>Added full color constructor for rating view<\/li>\n<li>Small refactoring<\/li>\n<\/ul>\n\n<h4>1.0.4.2<\/h4>\n\n<ul>\n<li>Fix vote table default sort in admin area<\/li>\n<li>Small refactoring<\/li>\n<\/ul>\n\n<h4>1.0.4.1<\/h4>\n\n<ul>\n<li>Fix bug with pagination all votes in admin area<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<ul>\n<li>Added color chooser support<\/li>\n<\/ul>\n\n<h4>1.0.3.3<\/h4>\n\n<ul>\n<li>Optimize XHR to backend<\/li>\n<\/ul>\n\n<h4>1.0.3.2<\/h4>\n\n<ul>\n<li>Fix ajax incorrect answer<\/li>\n<\/ul>\n\n<h4>1.0.3.1<\/h4>\n\n<ul>\n<li>Fixes with loader and display data. Correct SEO schema<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Fix username in widget<\/li>\n<li>Fix date in widget for multilang sites<\/li>\n<li>Remove event click from star in widget<\/li>\n<li>Add validator for ajax vote request<\/li>\n<li>Chore code<\/li>\n<li>Update language<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Visual fixes<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Change horizontal position<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<p>Release.\n* Ajax voting\n* Votes in admin panel\n* Shortcode support<\/p>\n\n<!--section=description-->\n<p>Lightweight AJAX 5-star post ratings with Schema.org markup, shortcodes, a sidebar widget, and admin vote management.<\/p>\n\n<h3>WP-POST-RATING is powerful rating plugin with ajax security requests.<\/h3>\n\n<h3>Features:<\/h3>\n\n<ul>\n<li><p>Very faster\n<em>Plugin use OOP and Vanilla JS, svg icons and CSS variables<\/em><\/p><\/li>\n<li><p>Seo-friendly\n<em>Plugin use Schema for show stars rating in google search results<\/em><\/p><\/li>\n<li><p>Without jQuery (Native js)\n<em>Native js is very fast<\/em><\/p><\/li>\n<li><p>Customize color of stars\n<em>You can customize color of stars and the second color will generate automatic<\/em><\/p><\/li>\n<li><p>MultiLanguages\n+English (en_US)\n+Spanish (es_ES)\n+Russian (ru_RU)<\/p><\/li>\n<\/ul>\n\n<h3>Functional:<\/h3>\n\n<ul>\n<li>Widget for show latest (any sort) votes in sidebar (other place)<\/li>\n<\/ul>\n\n<h4>Shortcodes:<\/h4>\n\n<ul>\n<li><code>[wp_rating]<\/code> show rating<\/li>\n<li><code>[wp_rating_total]<\/code> show total votes for current post<\/li>\n<li><code>[wp_rating_avg]<\/code> show total votes for current post<\/li>\n<\/ul>","raw_excerpt":"Lightweight AJAX 5-star post ratings with Schema.org markup, shortcodes, a sidebar widget, and admin vote management.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/93916","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=93916"}],"author":[{"embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shmidtelson"}],"wp:attachment":[{"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=93916"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=93916"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=93916"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=93916"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=93916"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cn.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=93916"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}