A Blueprint of State-of-the-art Techniques for Detecting Quasi-periodic Pulsations in Solar and Stellar Flares