Title: Performance Optimization Tips and Others
Last modified: August 22, 2016

---

# Performance Optimization Tips and Others

 *  Resolved [Josef Seidl](https://wordpress.org/support/users/blogitsolutions/)
 * (@blogitsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/)
 * Hi Dudo,
 * I was very happy to found your plugin a few hours ago because I was looking for
   a nice and small plugin with exactly the functions you offer. And it works very
   well.
 * But I found a few things which can be improved on a performance point of view:
 * 1) In my case the plugin loads 4 css files: rateit.css, bigstars.css, yasr.css
   and yasr-table-light.css. This costs 4 HTTP Requests if you don’t use a plugin
   to combine them. Is it really necessary to load all this css files? Or could 
   you exclude / include some css files depending on the settings in the backend?
 * 2) The star images (24 px) are not as small (size) as they could be. If you use
   ImageOptim (for Mac) you can reduce the file size by another 20 % without loosing
   quality. At the end one star has a size of 1KB. It would be nice if you could
   also create a css sprite for the 24px images as you already did for the 16px.
   Another solution in this case (because the size is smaller then 4KB) is inlining
   the pictures with the data uri scheme. This saves another HTTP Request.
 * 3) Is there any reason why you inlined the JavaScript Code? (Edit: Just saw that
   there are also two external JS files. But why the inlined code?)
 * Another points:
 * 1) Is there any possibility to hide the second div-container with the rich snippet
   information? I want to use this information but I don’t want to show them on 
   my page (only in the html). This could be an idea for an option in the backend.
 * 2) If you want I can translate you the .pot-File into german 🙂
 * Best and thanks for this cool plugin,
    Josef
 * [https://wordpress.org/plugins/yet-another-stars-rating/](https://wordpress.org/plugins/yet-another-stars-rating/)

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

 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180444)
 * Hi Josef,
    thank you for your post!
 * 1 & 2) : You’re 100% right, and in fact I was already working to use only 2 css
   and use css sprite even for medium and big stars. I hope to include these in 
   the next version
 * 3) The reason is simple: I’m lazy 😀 I know that I’ve to move everything in an
   external file, but for the moment I spent most of my time to write new feature
   just beacuse…it’s funny 🙂
    However, I hope in the next week to begin all the
   boring work to move all the javascript code in an external file
 * —
 * 1) [https://sites.google.com/site/webmasterhelpforum/en/faq-rich-snippets](https://sites.google.com/site/webmasterhelpforum/en/faq-rich-snippets)
   look the question number 4, that’s why I will never make an option to hide it
   🙂
 * 2) Of course I want, thank you! Your help is much appreciated!
 * Best regards,
    Dario
 *  Thread Starter [Josef Seidl](https://wordpress.org/support/users/blogitsolutions/)
 * (@blogitsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180446)
 * Hi Dario,
 * thanks for your response.
 * 1 & 2) That sounds great. Will wait for it 🙂 And please have a look at ImageOptim
   because you can save about 20 % of all of your PNG-images which you are using
   at the moment (also on CSS-Sprites).
 * 3) Allright. Will also wait for it until everything is in an external file and
   you finished the not so funny stuff 😉
 * —
 * 1) Ok. But you already display the necessary information: “Average Rating 3.5/
   5 (2 votes casts)” If you put the “snipped” code above the figures there is no
   need for another line, right?
 * 2) Will do it. Do you have an e-mail for me? Otherwise you can contact me via
   [http://www.blog-it-solutions.de/impressum/](http://www.blog-it-solutions.de/impressum/)
 * Best regards,
    Josef
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180448)
 * But in that line I also include author, date and post title, each one of them
   with the proper schema proprieties, it’s not just the vote.
 * Just sent an email
 *  Thread Starter [Josef Seidl](https://wordpress.org/support/users/blogitsolutions/)
 * (@blogitsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180479)
 * Just sent you the translation file for German and the the information what texts
   are missing in the file.
 * Furthermore on the page itself the rating should differ between singular and 
   plural.
 * Example:
    based on 1 rating based on 2 ratings
 * Waiting for your next update 🙂
 * Best,
    Josef
 *  [Daniel](https://wordpress.org/support/users/dhoffmann/)
 * (@dhoffmann)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180597)
 * thanks Josef for the German translation.
 *  Thread Starter [Josef Seidl](https://wordpress.org/support/users/blogitsolutions/)
 * (@blogitsolutions)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180604)
 * Your welcome! There are still a few translations missing (and also small errors)
   which will be fixed in the next release because Dario has to do some changes 
   in the code.
 * Best,
    Josef

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

The topic ‘Performance Optimization Tips and Others’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-stars-rating/assets/icon-256x256.png?rev=1525329)
 * [YASR - Yet Another Star Rating Plugin for WordPress](https://wordpress.org/plugins/yet-another-stars-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-stars-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-stars-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-stars-rating/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Josef Seidl](https://wordpress.org/support/users/blogitsolutions/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/performance-optimization-tips-and-others/#post-5180604)
 * Status: resolved