Magento: extension or custom module?

,

When a Magento store needs something new, the first instinct is usually to search the marketplace. There’s an extension for almost everything, and many of them are good. But every one you install becomes part of your shop, and you have to look after it for as long as it’s there.

When an extension is the right call

Off-the-shelf makes sense when the feature is common and well understood. Payment gateways, shipping rates, search, reviews and feeds to marketplaces are all things lots of shops need, and a well-supported extension will usually do them better and cheaper than building from scratch.

Before installing one, it’s worth checking:

  • Is it still actively maintained, and does it support the Magento and PHP versions you’ll be moving to next?
  • How quickly has the developer responded to security issues in the past?
  • Does it change core checkout or customer behaviour, or does it sit neatly to one side?
  • Do you need all of it, or one small part?

When custom is better

A custom module makes more sense when the requirement is specific to how you work. Pricing rules that only apply to your trade customers, a link to a supplier’s stock feed, or a step in checkout that no-one else needs are all good examples.

It’s also often the better choice when you’d only use a tenth of a big extension. A small module that does exactly one job is easier to understand, easier to test and less likely to break during an upgrade.

The hidden cost of too many extensions

Most of the trouble we see on Magento stores comes from extensions rather than Magento itself. Each one adds to:

  • Upgrades. Every extension has to be compatible before you can move to a new version, so one abandoned extension can hold the whole store back.
  • Security. Extensions are a common way in for attackers, as issues like CosmicSting showed. More code means more to patch.
  • Speed. Extensions that hook into every page or every checkout step slow things down, even when you’re not using the feature.
  • Conflicts. Two extensions changing the same part of the store is a classic cause of odd checkout bugs.

A quick tidy-up

If your store has built up extensions over the years, list them all and ask of each one: do we still use it, is it still supported, and could something simpler do the job? Removing even a few can make upgrades smoother and the store quicker.

If you’d like a second opinion on what’s installed, get in touch.