It�s not a socket. That is an older style BT80 junction box, allowing for the change from exterior grade dropwire to interior grade cable.
Inside there are possibly screw terminals, but these may have been bypassed with crimps. There is nothing essentially wrong, but aesthetically the pairs are hanging out. As the OP said, not ideal with youngsters about.