Detailed Characterization and Optimization of $\beta$-Delayed Proton Detector