Sodium peroxide contains the peroxide ion (O$_2^{2-}$) and potassium superoxide contains the superoxide ion (O$_2^-$).
Bond order formula:
\[
\text{Bond Order} = \frac{(N_b - N_a)}{2}
\]
For O$_2^{2-}$: It has 18 electrons (16 + 2), so bond order = 1.
For O$_2^-$: It has 17 electrons, so bond order = 1.5.