Title: schema code incomplete?
Last modified: August 30, 2016

---

# schema code incomplete?

 *  Resolved [cebln](https://wordpress.org/support/users/cebln/)
 * (@cebln)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/schema-code-incomplete/)
 * Hi, I sent your code thru a googe checker (with the single rating version, not
   the list):
    [https://developers.google.com/structured-data/testing-tool/](https://developers.google.com/structured-data/testing-tool/)
   To me it looks like the output code is incomplete: Googe recognizes a “rating”
   but not that it is a “reviewRating” (what this plugin is all about). Seems to
   be there is some wrapping micro-code missing (review)? – See this: [https://developers.google.com/structured-data/rich-snippets/reviews](https://developers.google.com/structured-data/rich-snippets/reviews)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558661)
 * Hi cebln!
 * Thanks for the hint. I will check that in the next few days and get back to you.
 * Regards
 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558916)
 * interested too, subscribed to this thread 🙂
 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558917)
 * Hi all,
 * thanks for your patience. I had some time to think about the rating / reviewRating
   thing. When I implemented the SEO I wasn’t sure what the best would be and my
   guess was that a “rating” would fit for everyone. More or less…
 * I think if you use this plugin it’s always a rating but not always part of a 
   review. Sure, in 95% it is. But what about these 5%? Shall I ignore them or is
   it OK for me to let the SEO not that precise?
 * And here we are. Still no change. I decided to add a new option inside the settings
   page so that you can choose if you use “rating” or “reviewRating” for the SEO.
   I will update the plugin the next few days and then you can decide what fits 
   your needs best.
 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558918)
 * I’m not very knowledgeable about this, only started reading up and implementing
   a few weeks ago and am still looking for the right tool but what you suggest 
   sounds like a good solution.
 * Will wait for the update and then give it a try.
    Thanks for looking into this
   Chasil.
 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558947)
 * Hello again!
 * First of all I am sorry for the delay.
 * I updated USR to version 1.9.5 with the option to change the rating type. Choices
   are now “rating” and “reviewRating”. I checked it with the Google code checker.
   Unfortunately Google interprets the reviewRating as a rating because you need
   to define what your review is about. Because USR will never have a clue about
   what you review it always will be identified as a rating.
 * Sorry that there are no better news but keep in mind that a reviewRating is just
   a sub type of a rating so that it is never wrong.
 * Cheers
 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558948)
 * Hi Chasil,
 * are you sure about this? I just googled “reviewRating” and found [https://developers.google.com/structured-data/rich-snippets/reviews](https://developers.google.com/structured-data/rich-snippets/reviews)
   
   where it is described as:
 * > reviewRating Rating The rating given in this review. A nested schema.org/Rating
   > or more specific subtype, most typically AggregateRating.
 * And when you say
 * > you need to define what your review is about
 *  do you mean that one needs to specify if it is a reviewRating for a service 
   or a product, etc?
 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558949)
 * Hi Ovidiu,
 * I am sure. A reviewRating can only be inside a review or it will be interpreted
   as a rating even if it is declared as a reviewRating.
 * Just play around with the testing tool:
    [https://developers.google.com/structured-data/testing-tool/](https://developers.google.com/structured-data/testing-tool/)
 * Try this QC – for a rating:
 *     ```
       <div itemprop="rating" itemscope itemtype="http://schema.org/Rating" class="usr">
       <meta itemprop="worstRating" content="0" />
       <img class="usr" src="http://www.cizero.de/wp-content/plugins/universal-star-rating/includes/stars.php?img=02.png&px=12&max=5&rat=3.5" alt="3.5 Stars" />
       (<span itemprop="ratingValue">3.5</span> / <span itemprop="bestRating">5</span>)
       </div>
       ```
   
 * QC for a reviewRating – Check is OK but marks it as rating:
 *     ```
       <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="usr">
       <meta itemprop="worstRating" content="0" />
       <img class="usr" src="http://www.cizero.de/wp-content/plugins/universal-star-rating/includes/stars.php?img=02.png&px=12&max=5&rat=3.5" alt="3.5 Stars" />
       (<span itemprop="ratingValue">3.5</span> / <span itemprop="bestRating">5</span>)
       </div>
       ```
   
 * QC for a reviewRating inside a review – Some data are not known and Google marks
   it as wrong even if a reviewRating is recognized:
 *     ```
       <div itemprop="review" itemscope itemtype="http://schema.org/Review" class="usr">
       <div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="usr">
       <meta itemprop="worstRating" content="0" />
       <img class="usr" src="http://www.cizero.de/wp-content/plugins/universal-star-rating/includes/stars.php?img=02.png&px=12&max=5&rat=3.5" alt="3.5 Stars" />
       (<span itemprop="ratingValue">3.5</span> / <span itemprop="bestRating">5</span>)
       </div>
       </div>
       ```
   
 * It is possible to do a workaround. If you post something you could define the
   needed Tags before and after the rating:
 *     ```
       <div itemscope itemtype="http://schema.org/Review">
         <div itemprop="itemReviewed" itemscope itemtype="http://schema.org/Restaurant">
           <span itemprop="name">Legal Seafood</span>
         </div>
   
         HERE COMES USR
   
         <span itemprop="author" itemscope itemtype="http://schema.org/Person">
           <span itemprop="name">Bob Smith</span>
         </span>
       </div>
       ```
   
 * I will check if I could implement another shortcode which works with some extra
   data so that these tags can be generated and Rich Snippets are available. But
   can’t promise.
 *  [Ovidiu](https://wordpress.org/support/users/ovidiu/)
 * (@ovidiu)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558950)
 * Thanks for your effort, don’t take me wrong I was just trying to understand 🙂
 * Thanks a lot for the samples, will check it out.
 *  Plugin Author [Chasil](https://wordpress.org/support/users/chasil/)
 * (@chasil)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558951)
 * No worries, I just wanted to explain 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘schema code incomplete?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/universal-star-rating.svg)
 * [Universal Star Rating](https://wordpress.org/plugins/universal-star-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/universal-star-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/universal-star-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/universal-star-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/universal-star-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/universal-star-rating/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Chasil](https://wordpress.org/support/users/chasil/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/schema-code-incomplete/#post-6558951)
 * Status: resolved