Wilson interval
Which range is plausible for a proportion? The Wilson interval is a confidence interval for a proportion. It keeps its level better than the Wald interval for small samples and for proportions near 0 or 1.
Example: 18 of 40: Wilson 0.307 to 0.602. 0 of 20: Wilson 0 to 0.161, while Wald gives 0 to 0 here.
Caution: The limits are not symmetric around the sample proportion. That is intended.