Plugins add new features to your WordPress site without coding. Installing and activating them makes these features work on your site.
Plugin installation and activation in Wordpress
Start learning this pattern below
Jump into concepts and practice - no test required
or
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Introduction
Syntax
Wordpress
1. Go to WordPress Dashboard > Plugins > Add New 2. Search for the plugin by name or feature 3. Click 'Install Now' button 4. After installation, click 'Activate' button
You must activate a plugin after installing it to use its features.
Only install plugins from trusted sources to keep your site safe.
Examples
Wordpress
Search for 'Yoast SEO' plugin > Click 'Install Now' > Click 'Activate'
Wordpress
Upload a plugin ZIP file > Click 'Install Now' > Click 'Activate'
Sample Program
This PHP snippet checks if the 'Hello Dolly' plugin is active. If not, it activates it and prints a success message.
Wordpress
<?php // This code activates a plugin programmatically in WordPress include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $plugin = 'hello-dolly/hello.php'; if (!is_plugin_active($plugin)) { activate_plugin($plugin); echo 'Plugin activated successfully.'; } else { echo 'Plugin is already active.'; } ?>
Important Notes
Always back up your site before installing new plugins.
Too many plugins can slow down your site, so use only what you need.
Keep plugins updated to avoid security risks.
Summary
Plugins add new features to WordPress sites easily.
Install plugins from the dashboard or upload ZIP files.
Activate plugins after installation to use them.
Practice
1. What is the first step to add new features to a WordPress site using plugins?
easy
Solution
Step 1: Understand plugin addition process
Plugins add features but must be installed first before use.Step 2: Identify correct first action
Installing from the dashboard is the proper first step before activation.Final Answer:
Install the plugin from the WordPress dashboard -> Option AQuick Check:
Install before activate = A [OK]
Hint: Always install plugins before activating them [OK]
Common Mistakes:
- Trying to activate before installing
- Editing core files instead of using plugins
- Deleting plugin files manually without uninstalling
2. Which of the following is the correct way to upload a plugin ZIP file in WordPress?
easy
Solution
Step 1: Locate the plugin upload option
Plugins are managed under Plugins menu, not Themes or Settings.Step 2: Confirm correct menu path
Plugins > Add New > Upload Plugin is the correct path to upload ZIP files.Final Answer:
Go to Plugins > Add New > Upload Plugin, then choose the ZIP file -> Option AQuick Check:
Upload plugin via Plugins menu = C [OK]
Hint: Upload plugins only under Plugins > Add New > Upload Plugin [OK]
Common Mistakes:
- Trying to upload plugins under Themes or Settings
- Uploading ZIP files in wrong menu
- Not using the Upload Plugin button
3. After installing a plugin, what will happen if you do NOT activate it?
medium
Solution
Step 1: Understand plugin activation role
Activation enables the plugin features to work on the site.Step 2: Identify effect of no activation
Without activation, the plugin is installed but inactive, so features are unavailable.Final Answer:
The plugin features will not be available on the site -> Option CQuick Check:
Install without activate = no features [OK]
Hint: Install alone doesn't enable features; activate is needed [OK]
Common Mistakes:
- Assuming plugins auto-activate after install
- Thinking plugins delete themselves if inactive
- Believing inactive plugins slow down site
4. You uploaded a plugin ZIP file but the plugin does not appear in the Plugins list. What is the most likely issue?
medium
Solution
Step 1: Check plugin upload success
If plugin does not appear, upload likely failed due to invalid ZIP or corruption.Step 2: Rule out other causes
Activation or refresh does not affect visibility of newly uploaded plugin in list.Final Answer:
The ZIP file is corrupted or not a valid plugin -> Option BQuick Check:
Invalid ZIP means no plugin shown [OK]
Hint: Verify ZIP file validity if plugin missing after upload [OK]
Common Mistakes:
- Assuming activation hides plugins
- Not checking if ZIP file is valid
- Thinking page refresh shows missing plugins
5. You want to install and activate a plugin that is not in the WordPress repository. What is the correct process?
hard
Solution
Step 1: Identify plugin source and upload method
Plugins not in repository must be uploaded manually as ZIP files.Step 2: Follow correct upload and activation steps
Upload via Plugins > Add New > Upload Plugin, then activate to enable features.Final Answer:
Download the plugin ZIP from the developer, upload it via Plugins > Add New > Upload Plugin, then activate it -> Option DQuick Check:
Manual upload and activate = A [OK]
Hint: Upload ZIP from developer, then activate plugin [OK]
Common Mistakes:
- Placing plugin files in theme folder
- Editing wp-config.php for plugins
- Trying to install without uploading ZIP
