A loopback plug is used to test the functionality of network interface card (NIC) ports to ensure they can send and receive data. It is a diagnostic tool that loops back the signal to the device, allowing verification of the network port's operation. This aligns with CompTIA Core 1 objectives related to troubleshooting wired and wireless networks and verifying network connectivity.