What are plugins in WordPress

Simply put, a WordPress plugin is a piece of code that is attached to a WordPress site, due to which additional functionality appears on that site, or the existing functionality becomes more extensive.