In Kepler's Third Law, the orbital period is described by
$$T=2\pi\sqrt \frac{a^3}{\mu}$$
where $a$ is the lenght of the semi-major axis. I wonder, why does the lenght of the semi-minor axis not affect the orbital period?
In this image, we have a semi-major axis ($a$) with lenght $2$, while the semi-minor axis $b$ has the lenght $1$. The circumference of an ellipse can be simplified to $$U=\pi \times \sqrt {2 \times (a^2 + b^2)}$$
For our ellipse, this is about $9.935$.
If we stretch the semi-major axis to $1.8$, we get an ellipse closer to a circle:
This ellipse has a circumference of about $11.955$ which is remarkably longer than the circumference of the ellipse.
So why is the orbit for, let's say a planet orbiting a star, still the same regardless of the lenght of the semi-minor axis?