WordPress basics

What is a WordPress plugin? How plugins work and how to choose one

By Anis Harbaoui, SEO specialist

A WordPress plugin is a package of PHP code (often with JavaScript and CSS) that adds features to a WordPress site without changing WordPress core. Plugins hook into WordPress at defined points to add settings, output, blocks or admin screens. The official directory at WordPress.org lists tens of thousands of free plugins, and many more are sold commercially.

what is a WordPress plugin: outline of the sections covered on this page, WordPress plugins, Plugins vs, Free vs, Install plugin
What is a WordPress plugin at a glance: the main sections of this page.
Key takeaways
  • Plugins extend WordPress through hooks: actions and filters.
  • Quality matters more than quantity: one badly coded plugin can slow or break a site.
  • Check update frequency, support activity, compatibility and the code’s footprint before installing.

How do WordPress plugins work?

WordPress exposes hooks: actions let a plugin run code at a moment (for example when the page head is printed), and filters let it modify data (for example the page title). An SEO plugin uses the wp_head action to print meta tags and JSON-LD, and filters to change titles. Because plugins never edit core files, WordPress can be updated without losing them.

Plugin componentRole
Main PHP file with a header commentDeclares name, version, requirements
Hooks (actions and filters)Connect the plugin to WordPress events
Admin pages and settingsLet you configure features
Blocks or shortcodesAdd elements to content
Database options or tablesStore settings and data

Plugins vs themes

PluginTheme
PurposeAdds functionalityControls design and layout
How manyMany at onceOne active (plus a parent)
Survives a theme changeYesNo
ExampleSEO, forms, e-commerceBlock theme, classic theme

Functionality that must survive a redesign, such as SEO metadata and structured data, belongs in a plugin, not in the theme.

Free vs premium plugins

Plugins on WordPress.org are free and GPL-licensed. Many follow a “freemium” model: a free version in the directory and a paid tier with advanced features and support. Paying is worth it when the paid features save measurable time or when you need guaranteed support. See free vs premium SEO plugins compared.

How to install a plugin safely

Check the listing

Last update, active installs, ratings, tested-with version and support replies.

Install from a trusted source

WordPress.org or the vendor’s own site, never “nulled” copies.

Test on staging first

Especially on stores and high-traffic sites.

Activate one at a time

So you know which plugin causes a problem.

Keep it updated

Most WordPress security issues come from outdated plugins.

How to judge plugin quality and performance

  • Modular loading: features you do not use should not load.
  • Front-end weight: check added scripts, styles and database queries with a profiler such as Query Monitor.
  • Overlap: avoid two plugins doing the same job, especially for SEO and schema (see duplicate schema explained).
  • Data portability: can you export settings or import from a competitor?

Frequently asked questions

How many plugins is too many?

There is no fixed number. Ten well-coded plugins can be faster than two heavy ones; measure instead of counting.

Do plugins slow down WordPress?

They can, depending on how they are written. Modular plugins that load only enabled features have the least impact.

Can I use two SEO plugins?

No. They duplicate titles, meta tags and structured data.

Related guides

Best WordPress SEO plugins explained

Tested and ranked for 2026.

Free vs premium SEO plugins compared

When paying is worth it.

Switching SEO plugins

Migrate safely.

A modular SEO plugin

NexalSEO loads only the modules you enable, so the features you do not use add no weight to your site.

See all modules