First a disclaimer: I can only see the planets in that screenshot, so it's always possible that you could work with the other planets I cannot see to produce longer trade chains. Secondly, I was wrong before; you actually lose two links in your trade chain with that starbase.
If you didn't have the starbase trade port on the wormhole, this is your longest trade route:
Homeworld - Ice (near) - Asteroid1 - Asteroid2 - Asteroid3 - Ice (far)
The homeworld is essentially a "dead end". It's as if the wormhole doesn't even exist, because there's no trade port there. It connects to the ice, which connects to the three asteroids, which leads to the distant ice. This gives you a 6-link trade route (sometimes called 5-jump trade route). Even though the terran planet and the far ice planet are actually very closeby, the wormhole doesn't have a trade port, so it's as if they aren't connected at all. When you add the wormhole trade port, you've created an open loop (so there are dozens of possible trade routes totaling 4 links). Here is one possible trade route:
Ice (near) - Homeworld - Wormhole - Ice (far)
Even though the far ice is connected to asteroid #3 (the one on the far right), the trade route cannot extend there. The reason is that there is a faster short-cut to asteroid #3:
Ice (near) - Asteroid1 - Asteroid2 - Asteroid3
Similarly, because there is a shortcut to the far ice, this potential trade route also cannot be extended. In order to force the trade route to extend, you must close one of your shortcuts by scuttling a trade port. You have two options. The first is to scuttle the starbase (probably don't want to do that; that thing is expensive), but the second is to scuttle the trade port on asteroid #1 (the one on the far left). This would close the second short cut, and allow the following trade route to exist:
Ice (near) - Homeworld - Wormhole - Ice (far) - Asteroid3 - Asteroid2
Because Asteroid1 has no trade port anymore, it is as if it doesn't exist for the purposes of longest trade route.