• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero® Blog

NameHero® Blog

Web Hosting Tips & Resources From NameHero

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

WordPress Structural Decisions To Make For Your Site

Bhagwad Park

Published on: September 21, 2020

Categories: WordPress 2

If you’ve chosen to host on WordPress, then most of the framework decisions are already made for you. You don’t need to choose the development language, the security framework, and many other things that you would normally have to choose in order to start a site from scratch. But for optimal performance there are still some structural decisions you need to make. These are:

  1. Deciding on 3rd party caching
  2. How are you going to optimize your scripts/CSS?
  3. Will you integrate a CDN?
  4. How will you go about adding custom code?

3rd Party Caching Decisions

Every WordPress site needs to have caching – that’s a given. There’s no point wasting server resources by regenerating a page every time a visitor requests it. This slows down your site performance. Most of the time, your host will not have in-built caching of pages. NameHero is a notable exception because it uses the LiteSpeed web server. Other web hosts don’t have such features, and you’ll be forced to use a 3rd party plugin to achieve server caching.

So this one is actually easy – if you’re hosting on NameHero, then we’ll take care of caching for you in a much more resource-efficient manner than you could have achieved with a separate plugin. All others will need to use something like W3 Total Cache or WP Rocket.

Optimizing Scripts and CSS

Every WordPress site needs to do the following:

  1. Defer JS and CSS Loading
  2. In-line the “critical CSS” for immediate page rendering

In the old days, you would even have to concatenate these scripts. But now it’s better to let the scripts load separately. The two best plugins for this in my opinion, are:

  1. Autoptimize
  2. Async JavaScript

These two plugins also work together, so you don’t have to worry about conflicts between them. If Aysnc JavaScript is deferring your JS files, then Autoptimize will automatically respect these settings. I like these two because they have specific jobs and they do them well. They don’t mix in their functionality with other things you don’t need.

CDN Integration

You’ll always hear that you need a CDN for your site’s images, CSS, and JS files. This is true. A CDN helps immensely with page speeds from different parts of the world. However, you have a magic weapon that takes care of your CDN needs automatically, and is completely free to boot! It’s name is Cloudflare.

I’ve done extensive testing on the caching differences between the free Cloudflare plan and other paid services like KeyCDN and BunnyCDN. They all have the same cache retention policies. I prefer BunnyCDN to KeyCDN (by a lot!), and you definitely get more control over the caching options. But the performance is the same.

So either use the built-in integration with Cloudflare via the NameHero cPanel plugin, or even better, change your DNS nameservers to Cloudflare and integrate it that way. Trust me, the performance benefit is real.

Adding Custom Code

One of the most important structural decisions in WordPress is deciding how you’re going to add 3rd party code. A lot of websites will tell you to add it to your theme’s functions.php file. But this is a mistake. It’s far better to separate out the code into a separate plugin. Here’s a NameHero knowledgebase article that teaches you how to create a custom plugin for additional code.

This will ensure that your changes persist even when you switch themes. Or if you’re not using a chile theme, then to ensure that your changes remain even after the child theme is updated. There’s simply no substitute for a separate custom plugin. So this should be one of the first things you do.

Use Specific Rather than General Plugins Wherever You Can

When given a choice to install a smaller plugin for a specific purpose, or using a larger one that merely includes it as an additional functionality, choose the specific one wherever possible. They tend to have less bloat, and get more support from developers. They’re also easier to maintain, and spread the risk out as compared to have a centralized plugin like Jetpack to do everything. Always think about how to make your site more robust!

Bhagwad Park Profile Picture
Bhagwad Park

I’m a NameHero team member, and an expert on WordPress and web hosting. I’ve been in this industry since 2008. I’ve also developed apps on Android and have written extensive tutorials on managing Linux servers. You can contact me on my website WP-Tweaks.com!

Related Posts

What Is Self-Hosted WordPress?

In this post, we’ll differentiate self-hosted WordPress from WordPress.com, and discuss the benefits of the former.

How To Back Up Your WordPress Site (And Why You Should Do It Today)

In this post, we’ll take a closer look at why backups matter. We’ll also show you different ways to back up your WordPress website.

How to Eliminate Render-Blocking Resources in WordPress (& Why You Should)

Many things can slow down your site, including render-blocking resources. These are CSS and JavaScript files that delay the loading of content on your site. As a result, visitors will have to wait longer to interact with your page, which could lead to frustration and instant exits.  So, what can you do to eliminate render-blocking […]

Blogger vs. WordPress: Which One to Use?

Let's compare WordPress and Blogger across five key areas. Then, we'll show you how to set up a professional blog with WordPress.

Reader Interactions

Comments

  1. Alfonso says

    September 21, 2020 at 4:08 pm

    This is a great article, but I have a question. So, you don’t recommend using the SL cache plugin? Is it better to use Autoptimize and Asynch Javascript?

    Reply
    • Bhagwad Park says

      September 28, 2020 at 2:03 am

      Presumably you’re referring to the LS LiteSpeed caching plugin? If you have a LiteSpeed server, you should ABSOLUTELY use the caching plugin! It doesn’t count as a “3rd party” solution because it is LiteSpeed that is doing the caching, and not your site.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!


Most Popular Posts

NameHero’s Recommended WordPress Plugin and Theme Setup

WordPress Hosting vs. Web Hosting – What’s The Difference?

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • WordPress Tutorials
  • OpenClaw Hosting
  • Enterprise Hosting
  • WooCommerce
  • Web Hosting
  • Resellers
  • Website Security
  • Website Development
  • Website Performance
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA