Print five star ratings and reviews
Looking at the definition of fivestar_static theme-function in fivestar.module file under fivestar_theme(), you need to provide the theme function with an array including the following keys: rating, stars, tag. A working example should look like:

$fivestar_variables = array('rating' =&gt; $your_average, 'stars' =&gt; $your_maximum);
print theme('fivestar_static', $fivestar_variables);