Peroxide ion is O2−2 and it has 18 electrons.
(σ1s)2,(σ∗1s)2,(σ2s)2,(σ∗2s)2,(2pz)2,(π)4,(π∗)4
So Bond Order =12(a−b).
a is the number of electrons in bonding molecular orbitals and
b is the number of electrons in antibondng molecular orbitals.
Bond Order =12(10−8)=1.