Pholcodine, an anti-tussive medication widely used as an over-the-counter, OTC drug, has recently faced restrictions in several countries. This paper presents a sensitive electrochemical approach for pholcodine detection. The electrochemical method involved fabricating a graphene nanoplatelets electrode, incorporating polythiophene nanospheres polymer to promote electron transfer and increase the activated surface area. Characterization of the fabricated electrode was performed using transmission electron microscopy, ATR-Fourier-transform infrared spectroscopy, X-ray crystallography, X-ray photoelectron spectroscopy, and electrochemical impedance spectroscopy. The electrochemical behavior of pholcodine with the fabricated electrode was investigated using cyclic voltammetry, chronoamperometry, square wave voltammetry (SWV), and differential pulse voltammetry (DPV). The developed electrode led to a linear response for pholcodine ranging from 10 to 45 mg/L with detection limits of 1.41 and 1.51 mg/mL for SWV and DPV, respectively and quantification limits of 4.27 and 4.57 mg/L for SWV and DPV, respectively. The proposed method has accurately recovered pholcodine in spiked serum samples with a recovery percentage ranging from 1.2 to 2.9%. The optimized method is found to be accurate, precise, and robust by applying validation parameters provided by International Council for Harmonization. Two green metrics were computed to assess the method’s greenness, the findings showed that the developed method is environmentally friendly with minimum sample preparation steps.