What is the most efficient way to get a single, random, 5 star review (from any/all products).
I'm trying to display a single random review on our homepage. Here's what I'm working with currently but it has several issues.
$review = Mage::getModel('review/review');
$collection = $review->getProductCollection();
$collection
->addAttributeToSelect('*')
->getSelect()
->limit(5)
->order('rand()');
$review->appendSummary($collection);
foreach($collection as $product) {
$ratingSummary = $product->getRatingSummary();
$starRating = $ratingSummary['rating_summary'];
if($starRating == 100) {
echo "<h1>". $product->getDetail() ."</h1>";
}