Here is what I found that might help you. I did some test by myself and here is snippets for you to use. Add the following code to functions.php file:
//Getter methods
//this will return the base best score like 5 or 10.
function get_best_rating(){
return max((int) get_option('kksr_stars'), 1);
}
//This will return the rating vote count
function get_rating_count($id){
return count_filter(null, $id, null);
}
//This will return the rating score value
function get_rating_score($id){
return score_filter(null, $best, $id, null);
}
//Helper Functions
function count_filter($count, $id, $slug){
if ($slug) {
return $count;
}
$count = (int) get_post_meta($id, '_kksr_casts', true);
return max($count, 0);
}
function score_filter($score, $best, $id, $slug){
if ($slug) {
return $score;
}
$count = count_filter(null, $id, null);
$counter = (float) get_post_meta($id, '_kksr_ratings', true);
if (! $count) {
return 0;
}
$score = $counter / $count / 5 * $best;
$score = round($score, 1, PHP_ROUND_HALF_DOWN);
return min(max($score, 0), $best);
}
Now you can call the getter function like this:
$best = get_best_rating();
$count = get_rating_count(get_the_id()); //You must provide post id as param
$score = get_rating_score(get_the_id()); //You must provide post id as param
Let me know if it helps you.