Code optimization check request

Just finished this exercice from the CODESYS: Programming with POUs course and would like to know if someone can check if my code is optimized.

Thanks

Power Monitoring System.zipMini-Project_POU-Based Power Monitoring System.pdf