issues mentioned in comment by nghuuphuoc are fixed - phpmetrics