Oscillations of flow past perforated and slotted plates: attenuation via a leading-edge ramp