Here's the breakdown:
Kepler's Third Law: This fundamental law of planetary motion states that the square of a planet's orbital period is proportional to the cube of its average distance from the star it orbits. This means the distance is the primary driver of orbital period.
The planet's mass is negligible: While a planet's mass *does* have a tiny effect on the overall system, it's incredibly small compared to the mass of the star it orbits. Think of it like this: the Earth's mass is about 1/333,000th the mass of the Sun. So, the Sun's gravity is the dominant force dictating the Earth's orbit.
Example:
Imagine two planets, one very massive and one very small, orbiting the same star at the same distance. They would have nearly identical orbital periods.
The slight effect of planet mass:
* Gravitational tug: A more massive planet does exert a slightly stronger gravitational pull on the star it orbits. This creates a tiny wobble in the star's position.
* Center of mass: Technically, both the planet and the star orbit a common center of mass (barycenter). For a very massive planet, the barycenter might be slightly shifted away from the star's center.
Key takeaway: While a planet's mass does have a subtle effect on its orbital period, the dominant factor is its distance from the star.