In the product page i have a list of all reviews made by customers and I'm showing customer username, avatar and date with each review. The solution I'm using will result in a performance bottleneck. How can the code be improved?
<?php
$_items = $this->getReviewsCollection()->getItems();
foreach ($_items as $_review): ?>
<div itemscope itemtype="http://schema.org/Review">
<ul>
<li>
<?php
$customer_id = $_review->getCustomerId();
$customer_data = Mage::getModel('customer/customer')->load($customer_id);
$avatarURL = "customer" . $customer_data->getMedmaAvatar();
$username = $customer_data->getUsername();
$shortdate = $this->formatDate($_review->getCreatedAt(),'short');
?>
<div>content blablabla</div>
</li>
</ul>
</div>
<?php endforeach; ?>