a hardwired and professionally installed extension is always going to be better quality and less susceptible to being moved/kicked/kinked etc.
Saying that, it's always best to keep the modem as close to the master socket as possible and run CAT5 around the house.
Saying that, it's always best to keep the modem as close to the master socket as possible and run CAT5 around the house.

