Swap a cracked socket back box safely, matching the fixing to your wall type without disturbing the wiring.
Replacing a broken back box like-for-like isn't notifiable work under Part P. If the socket is in a bathroom or shower room special zone, get a competent person to check first - those areas carry extra restrictions.
Before you start: Which electrical jobs can I do myself? Part P explained
Travis Perkins and Tooled Up links are affiliate links: if you buy after clicking, we may earn a small commission at no extra cost to you. B&Q and Amazon links are plain searches and earn us nothing.
Save this as a project