What guidelines should I follow when given the task of reviewing code, and making necessary optimisations