The other side of the wall, was where the switch was originally located, but it has been moved to inside the cupboard.
The red in the switch is blackened, so that is the cause of the heating. It might be the switch, the fuse, or a poor connection. Best just replace that with a new 20amp double pole switch, with a warning light - no need for the fuse, it is pointless - that is taken care of by the 16amp MCB at your consumer unit.
Rather than have the switch in the cupboard, it can be put back where it was originally located - the other side of the wall, with your flex going through the wall to the timer. I cannot imagine why anyone would want to move it anyway, it make it much more awkward to use and you would have no indication whether it was on or not, unless you looked in the cupboard.