The idea of moving planets through wormholes is a very outlandish and far fetched idea.
But it might solve a problem of scientific plausibility in Star Trek and other science fiction.
Western scientists accepted the biblical age of the Earth until 18th century geologists discovered that some rock formations took millions of years to form. In the 19th century some geologists believed that the Earth could be a million times a million years old.
Astronomers calculated that the Sun could burn chemically for only a few thousand years. It was later calculated that the Sun could shine from gravitational compression for only about 20 million years, while geologists claimed that the Earth was hundreds of millions of years old.
I have read that this paradox actually lead to a fight between an astronomer and a geologist at a scientific meeting. And that violence could have been avoided if scientists had considered the possibility that super advanced aliens might have moved the Earth from star to star over the course of the Earth's life.
In the late 1930s the fusion processes that make stars shine were discovered and astrophysicists began to calculate that the Sun and the Earth could be billions of years old.
The Sun and the Earth are now believed to be about 4,600,000,000 years old. The first life on Earth was probably about 4,100,000,000 years ago. Photosynthesis created an oxygen atmosphere on Earth about 2,300,000,000 years ago. multicellular life appeared in the sea 1,500,000,000 years ago. About 600,000,000 years ago atmospheric oxygen became abundant enough that an ozone layer as formed that protected against ultraviolet light. Life later spread to the land.
The first known semi intelligent or fully intelligent species appeared a few million years ago if primates or tens of millions of years ago if cetaceans or proboscideans.
Star Trek and some other science fiction stories have a somewhat similar problem to the former astronomy-geology paradox that might be solved by having super advanced aliens move planets from star to star.
Of course planets have enormous mass and thus it should take enormous amounts of energy to move them.
But remember that it should take infinite energy to accelerate any object, even a single atom, to the speed of light. That is certainly more energy than it would take to move even the most massive planet at any speed less than light speed. So the warp drive and possibly also the impulse drive work by almost magically bypassing the constraints of Newtonian and relativistic physics and thus use far less than infinite amounts of energy.
If Star Trek spaceships can be moved at warp speed using less than infinite energy then presumably planets could be moved at warp speed by big enough warp engines - possibly using much more energy than starships but still much less than infinite energy.
And if an artificial wormhole is opened ahead of an orbiting planet, it will not take any energy to get the planet to enter the wormhole and emerge elsewhere, though creating the wormhole might take immense amounts of energy.
For example, in the Lensman series the Bergenholm inertialess drive can switch the inertia of an object on and off. A military tactic is to install giant Bergenholm drive units on a planet and move it into position near an enemy planet and then turn off the drive and restore inertia to the planet as it smashes into the enemy planet.
But since in the Lensman series a space fleet and a planet can be detected many thousands of light years away, a more advanced version of the tactic is to send the planets through a "hyperspatial tube", a sort of rough analogy to a wormhole, to appear inside the target solar system with little warning and little time for the defenders to react.
And it seems to me that sending planets through artificial wormholes actually could make Star Trek and some other science fiction stories more plausible.
In fact I think that anyone who has a mental list of, say, the 100 worst scientific problems with Star Trek can think of a scientific problem with Star Trek that super advanced aliens using wormholes to move planets from star system to star system would solve.
So how many of you agree that after thinking over various scientific problems with Star Trek that even though super advanced aliens sending planets though artificial wormholes from star to star is a very far fetched concept it could actually make Star Trek more plausible than it is?