Ethernet trace layout and passive placement
Passive placements: Place them on the same side of the transformer. A couple of 0402 will not increase your board size. You should avoid vias on the Ethernet signals.

Vias near the transformer: You should avoid these, if you have to pass the isolation tests.

If board space is an issue, you can use a connector with integrated magnetics.