A plugin is an existing piece of code that adds specific functionality to a website. Plugins enable website owners to add certain features to their websites above and beyond what WordPress offers. They can be free or paid, depending on the functionality and complexity.