The normal response of oven fitters is, if the cooker switch is within 300mm of the cooker edge this is "illegal". The switch in this case appears to be well within 300mm of the cooker edge but over 600mm above the hob so it should be safe enough.
The cable exit from the wall is not ideal at all and would preferably be channelled into the wall down to a cooker outlet plate, but just supporting the cable and protecting it from heat damage would be sufficient to be acceptable.
It appears from the photo as if you have a plug with flat twin and earth in it on the right, this may be just the quality of the photo, but would not be good if this is the case.