This research paper aims to redefine the complexity factor in f(R,G) gravity and the appearance of electric charge, where R is the Ricci scalar and G is the Gauss–Bonnet term. In this context, we intend to analyze the splitting of the Riemann tensor after considering the anisotropic distribution of the charged fluid related to the spherically symmetric spacetime. We interpret YTF as the complexity factor among all the determined structural scalars that encompasses the characteristics of anisotropic pressure and the effective representation of the energy density. The correction terms associated with modified theory are considered to calculate some significant results related to the Weyl scalar, Tolman mass, and the complexity factor (CF). Moreover, the expression for CF is established by using the structure scalars determined in our paper, and the diminishing complexity restraint is utilized to determine the solutions for the various models. The celestial object having non-uniform energy density and anisotropic pressure asserts the maximum intricacy. But, if the effects of non-uniform energy density and anisotropic distribution of pressure are eradicated due to the presence of dark source terms associated with modified gravity then these fluids may not exhibit any complexity. Consequently, it is revealed that the constituents of effective and electromagnetic parts directly influence the structure scalars and CF.