My mesh-up of code that adds meta fields for ratings then a function to calculate the overall average rating from meta values