WordPress coding conventions

Adding spaces and Yoda style conditions.
Removed variable that is not being used

scaleSuccess was not used in zoomImages and it was removed in order to follow Coding conventions