SELECT 
  rating_value, 
  COUNT(1) count 
FROM 
  cscart_product_reviews 
WHERE 
  `product_id` = 431340 
  AND `status` = 'A' 
GROUP BY 
  rating_value

Query time 0.00047

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "1.20"
    },
    "grouping_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "table": {
        "table_name": "cscart_product_reviews",
        "access_type": "ref",
        "possible_keys": [
          "idx_product_id"
        ],
        "key": "idx_product_id",
        "used_key_parts": [
          "product_id"
        ],
        "key_length": "3",
        "ref": [
          "const"
        ],
        "rows_examined_per_scan": 1,
        "rows_produced_per_join": 0,
        "filtered": "10.00",
        "index_condition": "(`webmarco`.`cscart_product_reviews`.`product_id` <=> 431340)",
        "cost_info": {
          "read_cost": "1.00",
          "eval_cost": "0.02",
          "prefix_cost": "1.20",
          "data_read_per_join": "167"
        },
        "used_columns": [
          "product_id",
          "rating_value",
          "status"
        ],
        "attached_condition": "(`webmarco`.`cscart_product_reviews`.`status` = 'A')"
      }
    }
  }
}