This is what I meant, putting a lighter socket in instead of just a wire is more work and asking for trouble to be honest. Those sockets can get extremely hot.
Had a small fire in my truck cab a while back, caused by an overheating 12V socket although I was running a Fridge, Laptop and TV from it.

Certainly better and advisable to direct wire it!