For a weak perturbation of a planar Hamiltonian system, integrate the first-order change of the unperturbed Hamiltonian around each unperturbed periodic orbit. Zeros of this averaged energy drift select candidate perturbed periodic orbits, and a change from positive to negative drift indicates stability.
Codex Wiki