{"id":406644,"date":"2026-11-25T00:25:51","date_gmt":"2026-11-25T00:25:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ratingpress\/"},"modified":"2026-11-25T00:25:39","modified_gmt":"2026-11-25T00:25:39","slug":"karina-star-ratings","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/karina-star-ratings\/","author":18000329,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.5","requires":"5.8","requires_php":"7.4","requires_plugins":null,"header_name":"Karina Star Ratings & Rich Snippets","header_author":"Mohsen Hasanpour","header_description":"Fast, accessible star ratings for any post type with automatic Schema.org AggregateRating rich snippets, a shortcode, a block and an Elementor widget.","last_updated":"2026-11-25 00:25:39","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/karinaco.net\/","header_author_uri":"https:\/\/mohsen-hasanpour.ir","rating":0,"author_block_rating":0,"active_installs":0,"downloads":33,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"mohsenhasanpour","date":"2026-11-25 00:25:39","revision":3821768}},"upgrade_notice":{"1.0.0":"<p>Initial release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3821782,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3821782,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500-rtl.png":{"filename":"banner-1544x500-rtl.png","revision":3821808,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3821782,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250-rtl.png":{"filename":"banner-772x250-rtl.png","revision":3821808,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3821782,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"ratingpress\/rating":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"ratingpress\/rating","version":"1.0.0","title":"Karina Star Rating","category":"widgets","icon":"star-filled","description":"Display interactive star ratings with automatic rich snippets.","keywords":["rating","stars","review","vote","schema"],"textdomain":"karina-star-ratings","usesContext":["postId","postType"],"attributes":{"postId":{"type":"number","default":0},"readonly":{"type":"boolean","default":false},"showLegend":{"type":"boolean","default":true},"heading":{"type":"string","default":""},"alignment":{"type":"string","default":""},"size":{"type":"number","default":0}},"supports":{"html":false,"spacing":{"margin":true,"padding":true}},"editorScript":"file:.\/index.js","style":"ratingpress"}},"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Rating widget on a post.","2":"Settings with live preview.","3":"Dashboard with statistics.","4":"Elementor widget controls.","5":"Post editor panel."}},"plugin_section":[],"plugin_tags":[76538,2295,2998,1117,2293],"plugin_category":[53,55],"plugin_contributors":[241549],"plugin_business_model":[],"class_list":["post-406644","plugin","type-plugin","status-publish","hentry","plugin_tags-elementor","plugin_tags-rating","plugin_tags-rich-snippets","plugin_tags-schema","plugin_tags-star-rating","plugin_category-ratings-and-reviews","plugin_category-seo-and-marketing","plugin_contributors-mohsenhasanpour","plugin_committers-mohsenhasanpour"],"banners":{"banner":"https:\/\/ps.w.org\/karina-star-ratings\/assets\/banner-772x250.png?rev=3821782","banner_2x":"https:\/\/ps.w.org\/karina-star-ratings\/assets\/banner-1544x500.png?rev=3821782","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/karina-star-ratings\/assets\/icon-128x128.png?rev=3821782","icon_2x":"https:\/\/ps.w.org\/karina-star-ratings\/assets\/icon-256x256.png?rev=3821782","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Karina Star Ratings adds a lightweight star rating widget to your posts, pages and custom post types and automatically generates <strong>Schema.org AggregateRating<\/strong> structured data for every rated post that displays the rating, so search engines can show review stars in their results.<\/p>\n\n<h4>Highlights<\/h4>\n\n<ul>\n<li><strong>Automatic placement<\/strong> before or after the content of the post types you choose.<\/li>\n<li><strong>Dynamic rich snippets<\/strong>: JSON-LD is generated per post from its real votes and printed only on pages that display the rating. Choose the schema type globally or per post.<\/li>\n<li><strong>Shortcode<\/strong> <code>[ratingpress]<\/code> for any theme, widget area or page builder.<\/li>\n<li><strong>Elementor widget<\/strong> with full style controls (size, spacing, colors, typography, responsive alignment) that works in Theme Builder templates.<\/li>\n<li><strong>Block editor block<\/strong> that also works inside Query Loops.<\/li>\n<li><strong>Top rated list<\/strong> with <code>[ratingpress_top]<\/code>.<\/li>\n<li><strong>Import from kk Star Ratings<\/strong> in one click. Existing votes and averages are preserved and re-running the import never doubles numbers. Old <code>[kkstarratings]<\/code> shortcodes keep working.<\/li>\n<li><strong>Duplicate protection<\/strong>: one vote per browser (cookie and local storage), per IP address, or unlimited. Logged-in users vote once per post. Browser mode stops accidental repeat votes but not determined scripts; the built-in per-IP rate limit and IP mode add server-side protection.<\/li>\n<li><strong>Privacy friendly<\/strong>: IP addresses are stored only as salted one-way hashes. Integrates with the WordPress personal data exporter and eraser.<\/li>\n<li><strong>Accessible<\/strong>: keyboard operable, screen reader labels, respects reduced motion.<\/li>\n<li><strong>RTL ready<\/strong> and fully translatable.<\/li>\n<li><strong>Cache friendly<\/strong>: voting uses the REST API and keeps working on cached pages.<\/li>\n<li><strong>Fast<\/strong>: no jQuery on the front end, a single small script loaded only where ratings are shown, aggregates cached in post meta.<\/li>\n<li><strong>Dashboard<\/strong> with vote statistics, distribution, top rated and recent votes.<\/li>\n<li><strong>Sortable rating column<\/strong> in the posts list and a per-post sidebar panel to disable ratings, override the schema type or reset votes.<\/li>\n<li><strong>Developer friendly<\/strong>: template tags, overridable templates and many hooks.<\/li>\n<\/ul>\n\n<h4>Shortcodes<\/h4>\n\n<pre><code>[ratingpress] \u2013 rating widget for the current post.\n<\/code><\/pre>\n\n<p>Attributes: <code>id<\/code>, <code>readonly<\/code>, <code>legend<\/code>, <code>heading<\/code>, <code>icon<\/code> (star, heart, circle), <code>align<\/code> (start, center, end), <code>layout<\/code> (inline, stacked), <code>size<\/code>, <code>class<\/code>.<\/p>\n\n<pre><code>[ratingpress_top count=\"5\" post_type=\"post\" min_votes=\"1\" thumbnail=\"true\"] \u2013 list of top rated posts. `post_type` accepts a comma separated list of public post types or `any`; `count` is limited to 50.\n<\/code><\/pre>\n\n<h4>Template tags<\/h4>\n\n<pre><code>&lt;?php if ( function_exists( 'ratingpress_the_rating' ) ) { ratingpress_the_rating(); } ?&gt;\n\nratingpress_get_rating( $post_id ) returns the average, count, best rating and percentage.\n<\/code><\/pre>\n\n<p>To customize the markup, copy <code>views\/frontend\/rating.php<\/code> to <code>your-theme\/ratingpress\/rating.php<\/code>.<\/p>\n\n<h4>Hooks<\/h4>\n\n<ul>\n<li><code>ratingpress_schema<\/code> \u2013 filter the JSON-LD of a post.<\/li>\n<li><code>ratingpress_print_schema<\/code> \u2013 filter whether the JSON-LD is printed on the current page (by default only where the rating widget is displayed, including widgets printed by a theme template tag).<\/li>\n<li><code>ratingpress_schema_types<\/code> \u2013 filter the available schema types.<\/li>\n<li><code>ratingpress_auto_insert<\/code> \u2013 filter automatic placement per post.<\/li>\n<li><code>ratingpress_enqueue_assets<\/code> \u2013 filter whether the assets load in the head of a singular page.<\/li>\n<li><code>ratingpress_can_vote<\/code> \u2013 return a <code>WP_Error<\/code> to reject a vote.<\/li>\n<li><code>ratingpress_vote_recorded<\/code> \u2013 action after a vote is saved.<\/li>\n<li><code>ratingpress_rating_updated<\/code> \u2013 action after the totals of a post change.<\/li>\n<li><code>ratingpress_rating_html<\/code> \/ <code>ratingpress_view_args<\/code> \u2013 filter the widget output.<\/li>\n<li><code>ratingpress_client_ip<\/code> \u2013 provide the visitor IP when behind a trusted proxy.<\/li>\n<li><code>ratingpress_template<\/code> \u2013 filter the template file.<\/li>\n<\/ul>\n\n<h4>Languages<\/h4>\n\n<p>The interface is fully translatable and RTL ready. Translations are managed on translate.wordpress.org and are installed automatically by WordPress.<\/p>\n\n<h4>Third-party resources<\/h4>\n\n<ul>\n<li><a href=\"https:\/\/github.com\/rastikerdar\/vazirmatn\">Vazirmatn<\/a> font, used in the Karina Star Ratings admin screens. Copyright 2015 The Vazirmatn Project Authors. Licensed under the SIL Open Font License 1.1 (see <code>assets\/fonts\/vazirmatn\/OFL.txt<\/code>). The font is bundled with the plugin; nothing is loaded from external servers.<\/li>\n<\/ul>\n\n<h3>Privacy<\/h3>\n\n<p>When a visitor rates content, Karina Star Ratings stores the rating, the date, the user ID for logged-in users and a salted one-way hash of the IP address. To remember voted content, a cookie and a browser local storage entry (both named <code>ratingpress_voted<\/code>) containing only the IDs of the rated posts may be stored. No data is sent to external services. Suggested privacy policy text is added to the WordPress privacy policy guide.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>karina-star-ratings<\/code> folder to <code>\/wp-content\/plugins\/<\/code> or install the plugin from the Plugins screen.<\/li>\n<li>Activate it.<\/li>\n<li>Go to <strong>Karina Star Ratings \u2192 Settings<\/strong> to choose post types, placement and appearance.<\/li>\n<li>Coming from kk Star Ratings? Open <strong>Karina Star Ratings \u2192 Settings \u2192 Tools<\/strong> and click <strong>Start import<\/strong>, then deactivate kk Star Ratings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20search%20engines%20show%20stars%20for%20my%20posts%3F\"><h3>Will search engines show stars for my posts?<\/h3><\/dt>\n<dd><p>Karina Star Ratings outputs AggregateRating structured data on pages that display the rating. Whether stars are displayed is decided by the search engine. Google shows review stars only for specific types, which is why posts use \"Creative Work Series\" by default. Some types need more properties than a rating before Google accepts them: Event, Course, LocalBusiness, Recipe and Product have extra required fields (for example a date and location, a provider, an address, an image or offers) that you can add with the <code>ratingpress_schema<\/code> filter. Google also does not show stars for self-serving reviews of a Local Business or Organization. You can verify your pages with the Google Rich Results Test.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20caching%3F\"><h3>Does it work with page caching?<\/h3><\/dt>\n<dd><p>Yes. Votes are sent through the REST API, and the voted state is remembered in the browser, so cached pages work correctly. Updated averages appear once the cache of the page is refreshed.<\/p><\/dd>\n<dt id=\"does%20it%20work%20behind%20cloudflare%20or%20a%20reverse%20proxy%3F\"><h3>Does it work behind Cloudflare or a reverse proxy?<\/h3><\/dt>\n<dd><p>By default the IP address is read from <code>REMOTE_ADDR<\/code>. Use the <code>ratingpress_client_ip<\/code> filter to read it from a header set by your trusted proxy.<\/p><\/dd>\n<dt id=\"can%20i%20change%20the%20number%20of%20stars%20later%3F\"><h3>Can I change the number of stars later?<\/h3><\/dt>\n<dd><p>Yes. Votes are stored on a normalized scale, so existing ratings are rescaled automatically.<\/p><\/dd>\n<dt id=\"how%20do%20i%20remove%20all%20data%3F\"><h3>How do I remove all data?<\/h3><\/dt>\n<dd><p>Enable <strong>Delete data on uninstall<\/strong> in the Tools tab before deleting the plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Fast, accessible star ratings for any post type with automatic Schema.org AggregateRating rich snippets, a shortcode, a block and an Elementor widget.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/406644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=406644"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mohsenhasanpour"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=406644"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=406644"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=406644"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=406644"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=406644"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=406644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}