A port can be cleaned many times, but eventually it wears out.
Signs it needs replacing:
1. Every cable is loose, even after cleaning.
2. Charging only works at an angle or when holding the cable.
3. The phone shows "moisture detected" when it isn't wet.
4. Visible damage: broken plastic, bent or burnt pins.
5. Data transfer to a computer fails with good cables.
Most phones have the port on a small board that is quick to replace (see our tip on port boards and soldered ports).