Yasr – Yet Another Stars Rating


Improving the user experience (UX) with your website is a top priority for everyone who cares about their online activity,
as it promotes familiarity and loyalty with your brand, and enhances visibility of your activity.

Yasr – Yet Another Stars Rating is a powerful way to add SEO-friendly user-generated reviews and testimonials to your
website posts, pages and CPT, without affecting its speed.

How To use

Reviewer Vote

With the classic editor, when you create or update a page or a post, a box (metabox) will be available in the upper right corner where you’ll
be able to insert the overall rating.
With the new Guteneberg editor, just click on the “+” icon to add a block and search for Yasr Overall Rating.
You can either place the overall rating automatically at the beginning or the end of a post (look in “Settings”
-> “Yet Another Stars Rating: Settings”), or wherever you want in the page using the shortcode [yasr_overall_rating] (easily added through the visual editor).

Visitor Votes

You can give your users the ability to vote, pasting the shortcode [yasr_visitor_votes] where you want the stars to appear.
If you’re using the new Gutenberg editor, just click on the “+” icon to add a block and search for Yasr Visitor Votes
Again, this can be placed automatically at the beginning or the end of each post; the option is in “Settings” -> “Yet Another Stars Rating: Settings”.
See the supported caching plugins

Multi Set

Multisets give the opportunity to score different aspects for each review: for example, if you’re reviewing a videogame, you can create the aspects “Graphics”,
“Gameplay”, “Story”, etc.

Migration tools

From version 2.0 you can easily migrate from WP-PostRatings, kk Star Ratings and Rate My Post.
A tab will appear in the settings if one of these plugin is detected.

Supported Languages

Check here to see if your translation is up to date.
Write on the forum to ask to become a validator 🙂

In this video I’ll show you the “Auto Insert” feature and manual placement of YASR basic shortcodes.

Related Link

Do you want more feature? Check out Yasr Pro!


  • Example of yasr in a videogame review
  • Another example of a restaurant review
  • User's ranking showing most rated posts
  • User's ranking showing highest rated posts
  • Ranking reviews


This plugin provides 6 blocks.

Yasr: Overall Rating
Yasr: Visitor Votes
Yasr: Top 10 Reviews
Yasr: Top 10 By Visitors Votes
Yasr: Most Active Authors
Yasr: Most Active Visitors


  1. Install Yet Another Stars Rating either via the WordPress.org plugin directory, or by uploading the files to your server
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the Yet Another Star Rating menu in Settings and set your options.

سوالات متداول

What is “Overall Rating”?

It is the vote given by who writes the review: readers are able to see this vote in read-only mode. Reviewer can vote using the box on the top rigth when writing a new article or post (he or she must have at least the “Author” role). Remember to insert this shortcode [yasr_overall_rating] to make it appear where you like. You can choose to make it appear just in a single post/page or in archive pages too (e.g. default Index, category pages, etc).

What is “Visitor Rating”?

It is the vote that allows your visitors to vote: just paste this shortcode [yasr_visitor_votes] where you want the stars to appear.
See the supported caching plugins

Demo page for Overall Rating and Vistor Rating

What is “Multi Set”?

It is the feature that makes YASR awesome. Multisets give the opportunity to score different aspects for each review: for example, if you’re reviewing a videogame, you can create the aspects “Graphics”, “Gameplay”, “Story”, etc. and give a vote for each one. To create a set, just go in “Settings” -> “Yet Another Stars Rating: Settings” and click on the “Multi Sets” tab. To insert it into a post, just paste the shortcode that YASR will create for you.

Demo page for Multi Sets

What is “Ranking reviews” ?

It is the 10 highest rated item chart by reviewer. In order to insert it into a post or page, just paste this shortcode [yasr_top_ten_highest_rated]

Wht is “Users’ ranking” ?

This is 2 charts in 1. Infact, this chart shows both the most rated posts/pages or the highest rated posts/pages.
For an item to appear in this chart, it has to be rated twice at least.
Paste this shortcode to make it appear where you want [yasr_most_or_highest_rated_posts]

What is “Most active reviewers” ?

If in your site there are more than 1 person writing reviews, this chart will show the 5 most active reviewers. Shortcode is [yasr_top_5_reviewers]

What is “Most active users” ?

When a visitor (logged in or not) rates a post/page, his rating is stored in the database. This chart will show the 10 most active users, displaying the login name if logged in or “Anonymous” otherwise. The shortcode : [yasr_top_ten_active_users]

Demo page for Rankings

Wait, wait! Do I need to keep in mind all this shortcode?

If you’re using the new Gutenberg editor, you don’t need at all: just use the blocks.
If, instead, you’re using the classic editor, in the visual tab just click the “Yasr Shortcode” button above the editor

Does it work with caching plugins?

Most def! Yasr supports these caching plugins:
* Wp Super Cache
* LiteSpeed Cache
* Wp Fastest Cache
* Wp Rocket

Why I don’t see stars in google?

Please be sure that if you use mostly the “yasr_visitor_votes” shortcode, you’ve to select “Aggregate Rating” to the question “Which rich snippet do you want to use?” in the General Settings.
If, instead, your website use mostly the “yasr_overall_rating” shortcode, you’ve to select “Review Rating”.
Google will need some days to index the stars.
You can use the Structured Data Testing Tool to validate your page.
If you set up everythings fine, in 99% of cases your stars will appear in a week.
If doesn’t, it’s suggested to ask in a SEO oriented forum.


9 اکتبر 2019
YASR is just what i need for my blog. Easy to use, with all the features. Thank you!
26 سپتامبر 2019
After a nightmare with KK Star Rating terrible last update, this plugin is working like a charm. Google rich snippets showing within 1 day. YASR is miles ahead the competition and it's free!
21 سپتامبر 2019
It is good plugin for rating your post. It works without any problem. Good documentation and well responsible support. I strongly recommended it!
12 سپتامبر 2019
Hi there, thank you for this great plugin, but I'd like to report you an error appeared on top of my posts (right after the title) after your last update a few days ago. This is the error. Warning: array_merge(): Argument #2 is not an array in /home/username/public_html/immi-center.com/wp-content/plugins/yet-another-stars-rating/lib/yasr-functions.php on line 552 Thank you
10 سپتامبر 2019
YASR does everything I need it to - and more! I'm really pleased with it and the developer has been very quick to respond to a couple of queries I had. It's going to be a long process, but I'm going to update previous posts with yasr ratings!
خواندن تمامی 214 بررسی‌

توسعه دهندگان و همکاران

“Yasr – Yet Another Stars Rating” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

“Yasr – Yet Another Stars Rating” has been translated into 10 locales. Thank you to the translators for their contributions.

ترجمه “Yasr – Yet Another Stars Rating” به زبان شما.

علاقه‌ مند به توسعه هستید؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


The full changelog can be found in the plugin’s directory. Recent entries:

  • TWEAKED: changed a define to support php version <7


  • NEW FEATURE: in Gutenberg, is now possible to rate “overall Rating” in both blocks and sidebar
  • IMPORTANT CHANGES ON RICH SNIPPETS: due to [this google announcement] (https://webmasters.googleblog.com/2019/09/making-review-rich-results-more-helpful.html)
    BlogPosting data type doesn’t have ratings anymore. These types have been added: Book, Movie, Game.
    Many other support types will comes.


  • FIXED: Warning: array_merge(): on line 552 in yasr-functions.php


  • NEW FEATURE: is now possible align to left, center or right if auto insert is used
  • TWEAKED: check tidy version before use it: this will fix some enconding issue if an old version in server is installed
  • TWEAKED: esc_html used instead of htmlspecialchars in the settings page
  • TWEAKED: added a new filter yasr_filter_existing_schema: useful if there is the need to add new rich snippets
  • TWEAKED: minor changes on schema function (thanks to Olivier)


  • TWEAKED: some changes in settings page
  • TWEAKED: new default values for new installations.


  • TWEAKED: Multisite support!!
  • TWEAKED: In gutenberg editor, now a link for Yasr Sidebar is available
  • FIXED: gutenberg showing “updated failed” in some rare circumstances


  • TWEAKED: changed code in yasr-shortcode-functions.php to support php version < 7


  • NEW FEATURE: is now possible to import date from:
  • Wp Post Ratings
  • KK Star Ratings
  • Rate My Post
  • FIXED: in editor screen, multi set didn’t shows up if more than 1 was used
  • TWEAKED: minor changes


  • FIXED: added a further check every time get_the_title function is called


  • FIXED: overall rating didn’t get saved if default editor isnt’t Gutenberg or Classic Editor


  • FIXED: Impossibile to create a new post if used classic editor


  • NEW FEATURE: 3 Brand new Gutenberg Blocks!! Yasr: Top 10 By Visitor Votes, Yasr: Most Active Visitos and Yasr Most Active Authors!
  • NEW FEATURE: Gutenberg Panel!
  • TWEAKED: In Gutenberg, Overall Rating value is now saved when post is saved/updated, instead of with an ajax call.
  • TWEAKED: updated freemius sdk to version 2.3.0


  • TWEAKED: settings redesigned
  • TWEAKED: code cleanup

Additional Info

External Libraries: Rater

Flat star icon made byFreepik
from www.flaticon.com is licensed by CC 3.0 BY