The red click-on-wire connector is OEM equipment on the Power Commander to tap the TPS signal.
Connectors like these have no use on a motorcycle as they WILL fail sooner or later. Actually they should be banned from the universe IMHO, because they are the origin of 90% of all Power Commander problems.
The only proper solution is to solder the wire connection and seal the connection with self fusing tape.