This paper introduces an enhanced Fractional Order Kepler Optimizer (FOKO) with a Local Escaping Strategy (LES) to maximize overall energy efficiency in distribution systems, particularly addressing challenges related to the effective penetration of photovoltaic (PV) sources and the emergence of static synchronous compensator (STATCOM) devices. The proposed FOKO retains the positive traits of the standard Kepler Optimizer (KO) while incorporating two additional adjustments to enhance its search performance. Firstly, a fractional order component (FOC) facilitates effective knowledge exchange among agents, preventing premature convergence. Secondly, LES improves the search process by avoiding local optima. The efficacy of FOKO is demonstrated on 28 standard benchmark functions from the CEC 2017 test suite, and its applicability is validated on IEEE 33 and 69-nodes distribution systems. Numerical results confirm the effectiveness of the proposed technique in addressing complex problems such as PV source integration, hourly load variations, and STATCOM deployment, with notable improvements in energy efficiency and system performance. Compared to the initial case regarding the first system, FOKO achieved an average reduction of approximately 62.10 %, while KO, PSO, DE, NNA, MFO, and CO showed reductions of about 61.62 %, 58.15 %, 56.93 %, 60.99 %, 60.26 %, and 53.51 %, respectively. Additionally, for the second system, FOKO achieved a reduction of approximately 65.51 %, while KO, PSO, DE, NNA, MFO, and CO showed reductions of about 65.44 %, 63.56 %, 65.30 %, 62.24 %, 62.91 %, and 60.25 %, respectively. These results underscore the significant improvements in energy efficiency across all algorithms, with FOKO and KO demonstrating particularly promising performance.