Episode 30 of 32

Adding a Plugin

Install and use WordPress plugins to add functionality — contact forms, SEO, security, and performance.

Adding a Plugin

WordPress plugins extend your site's functionality without modifying the theme. There are over 60,000 free plugins in the WordPress plugin directory. Let's learn how to install and use them.

What Are Plugins?

Plugins are PHP-based add-ons that hook into WordPress to add features:

  • Contact forms — create email inquiry forms
  • SEO — optimize for search engines
  • Security — protect against hacking attempts
  • Performance — caching and optimization
  • Social sharing — add share buttons to posts

Installing a Plugin

Method 1: From the WordPress Dashboard

  1. Go to Plugins → Add New
  2. Search for the plugin (e.g., "Contact Form 7")
  3. Click "Install Now"
  4. Once installed, click "Activate"

Method 2: Upload a ZIP File

  1. Download the plugin .zip file from the plugin's website
  2. Go to Plugins → Add New → Upload Plugin
  3. Choose the .zip file → click "Install Now"
  4. Click "Activate"

Essential Plugins for Any WordPress Site

PluginCategoryWhat It Does
Contact Form 7FormsSimple, flexible contact forms
Yoast SEOSEOMeta tags, sitemaps, content analysis
WordfenceSecurityFirewall, malware scanning, login protection
WP Super CachePerformancePage caching for faster load times
UpdraftPlusBackupAutomated backups to cloud storage
ACFCustom FieldsBetter custom fields with a visual editor

Example: Adding Contact Form 7

  1. Install and activate the plugin
  2. Go to Contact → Add New
  3. The default form template includes Name, Email, Subject, and Message
  4. Copy the shortcode (e.g., [contact-form-7 id="123" title="Contact"])
  5. Create a "Contact" page and paste the shortcode in the content
  6. Publish — the form appears on the Contact page

Plugins vs Theme Code

Use a Plugin WhenAdd to Theme When
Functionality should persist across theme changesFeature is tightly coupled to the theme's design
Complex functionality (forms, e-commerce, SEO)Simple display changes or custom template tags
Regular updates are important (security)One-off, lightweight features

Plugin Best Practices

  • Don't install too many — each plugin adds overhead; keep only what you need
  • Check ratings and reviews — use popular, well-maintained plugins
  • Keep plugins updated — outdated plugins are security risks
  • Test on staging first — plugins can conflict with themes or other plugins
  • Deactivate unused plugins — deactivate and delete what you don't use

Key Takeaways

  • Plugins extend WordPress functionality without modifying the theme
  • Install from the dashboard or by uploading a ZIP file
  • Essential categories: forms, SEO, security, performance, backups
  • Use plugins for functionality that should persist across theme changes
  • Keep plugins minimal, updated, and well-reviewed