2002 Subaru Legacy - Smells of gas

Car run’s rough and backfires in engine compartment also when cold smell of Gas

I suspect that there is a misfire, possibly due to failing spark plug wires. With these conditions the check engine light should be on.