Plugins work as extensions. They are created to expand the functionality of existing apps and allow you to customize and optimize without modifying the code.