Electric vehicle systems are growing in popularity as a promising solution to the problems associated with traditional transportation systems, such as environmental pollution. Nonetheless, the task of devising control algorithms that effectively control electric vehicle systems continues to persist as a complex realm of research. This is due to the ongoing pursuit of refining the dynamic attributes of the system, a task that is riddled with challenges. The inherent instability exhibited by the system and the presence of undesirable behaviors further compound the intricacy of this endeavor, demanding careful attention and comprehensive analysis of the system's unstable roots. In this paper, an advanced control algorithm is proposed for controlling the speed of the electric vehicle system based on the lead compensation. In addition, the control algorithm is designed to include the utilization of model reference control to improve the time response properties of the closed-loop system. Then, the Zebra Optimization Algorithm (ZOA) is used to optimally define the compensator parameters such that the reference model and system outputs be asymptotically identical with desirable steady-state error. Eventually, the simulation results show that the proposed optimal model reference lead compensator ensures stable and high-performance control of the electric vehicle system while maintaining simplicity and acceptable control action compared to other control approaches. This is substantiated by the noteworthy reductions it brings about: a staggering 90% decrease in rise time, a substantial 51% decrease in overshoot, and an impressive 99% reduction in cost value. In addition, the intervention of the proposed method completely eradicates steady-state errors, thus addressing a critical aspect of control system performance.