title: Display total customers reviews and ratings average in WooCommerce
body: <p>I want to display a total number of customer reviews on the homepage, I have tried this method:</p>
  
  <pre><code>&lt;?php
    $args = array(
      'status'   =&gt; 'approve',
      'post_status' =&gt; 'publish',
      'post_type'   =&gt; 'product'
    );
    $comments_query = new WP_Comment_Query;
    $comments = $comments_query-&gt;query( $args );
    $count = get_comment_count($comments);
  ?&gt;
  
  &lt;span class="total_reviews"&gt;
    &lt;?php echo $count['approved'] . ' reviews' ?&gt;
  &lt;/span&gt;
  </code></pre>
  
  <p>But isn't working like I want! for example, I have 4 reviews comments and this code show only (1 reviews) instead of (4 reviews).</p>
  
  <p>About the average, I don't have any idea of how it's work on the homepage, I just know how to implement this on a single product page by using this code below:</p>
  
  <pre><code>$average = $product-&gt;get_average_rating();
  </code></pre>
  
  <p>But, this code is only for a single product average ratings, not a global average of all reviews as I would like.</p>
  
  <p>Any help is appreciated.</p>