You haven't stated what the A/B/Y is doing but it looks like it must be functioning as a mute if you have it last?
Ideally your fx would only be processing noise that came in from the bass cable so noise gate early would be good. If the fx are chucking up noise of their own then perhaps they are for the bin.
Generally:
Bass > drive, envelopes, compressor, phaser/chorus/delay.
But the compressor can go anywhere you like it.