Hello fellow webmasters and developers, Recently I retired from my old part-time job (affair) as being a Web Developer for the masses. In my short span of just 6 and a half year and countless websites later, I have found some things that make life easier for both me and the client. Below are some tips for The Most Stable WordPress Server Ever
Server Operating System :
I recommend any Debian based OS, as they are more familiar than any others, Have a
great community support and not that many glitches as a server OS. Ubuntu is a great choice. LTS versions offer extended support and unparallel diagnostics.
If you have no idea of what I’m talking about, you need to upgrade to self managed hosting first !
Since eternity, Apache has been used my majority of web hosts up until now. EngineX or NginX is taking numbers greatly. Its a no-doubt better engine for web hosts, And works faster than Apache.
“Apache is like Microsoft Word. It has a million options but you only need six. NGINX does those six things, and it does five of them 50 times faster than Apache.”
In 2013, NginX was the most popular web server amongst the 1000 busiest sites in the world, In 2014 it was 10000 busiest websites. In 2015, It was being used in 100000 busiest sites on the net. The only cons is Apache still remains easier to set up (especially for newcomers).
Using Nginx Cache and WP Super Cache together provides maximum benefits with minimal load. Using W3TC often broke websites, And other caching plugins would offer better features, But with an increased load on the server. WPSC servers Superstatic files, And has preloading support. It also works out-of-the-box and requires minimum efforts. Its also easy on the server.
Optimizing Images :
In my road to infinitely making my website fast and server at lowest load, I have experimented with almost every Image compression plugin available to wordpress ecosystem, Be it EWWW or Smush.It, I could never get perfect scores on Pagespeeds in image optimization & whenever running, they would ram up my servers processors and RAM.
Come In JPEGOptim & OptiPng :
I always believe in using as less plugins as possible inside of wordpress, And when a task gets done by operating system, I have orgasms.
JPEGOptim is a utility for optimizing JPEG files. It provides lossless optimization (based on optimizing the Huffman tables) and “lossy” optimization based on setting a maximum quality factor. You can install JPEGOptim and OptiPng via shell by entering :
apt update && apt install jpegoptim optipng -y
OptiPNG is a PNG optimizer that re-compresses image files to a smaller size, without losing any information. This program also converts external formats (BMP, GIF, PNM and TIFF) to optimized PNG, and performs PNG integrity checks and corrections.
You can optimize images by using :
cd /path/to/your/wp-content/folder find . -iname "*.jp*" -print0 | xargs -0 jpegoptim --strip-all --max 90 --all-progressive
cd /path/to/your/wp-content/folder find . -iname '*.png' -print0 | xargs -0 optipng -o7 -preserve This is by far the most essential step in creating The Most Stable WordPress Server Ever ?
Using Cloudflare Services for everything :
Cloudflare is really a boon for webmasters, We can now secure our servers, Blacklist IPs, Have cache and CDN, Apply HTTPS and SSL and even compression, Is all available by Cloudflare for Free. We highly recommend it as it caches data onto its server and avoids unnecessary load on origin servers. As I last heard, Cloudflares plans to provide its users with The Onion Routing (TOR) support aswell, Oh molly !
Having an optimized theme :
WordPress themes often enticing have a huge file size, And for a faster website one should always go with minimal sized files All the stock wordpress themes are excellent, And top themes eg Avada, Newspaper, X-Theme etc are also well optimized. Using a bad theme is the reason for 50% of wordpress based troubles and a genuine, optimized theme is the road to the most stable wordpress server ever.
Using Minimal Plugins :
Make it a oath to never have more than 15 plugins at once. You dont need Askimet if you use cloudflare, Jetpack is also bloated junk. Several plugins make a lot of calls when page is rendered, Such as socially-connecting plugins. Try to get a plugin like UserPro that takes care of all your social needs including Logins, Follow, Notifications and Community. Nowadays speed is so crucial that i don’t even recommend using social-comments on self hosted websites.
Badly set AMP :
Broken Accelerated Mobile Pages can make your website cripplingly slow on mobile devices, Consider rendering a desktop version or a mobile lite version if your theme has issues with AMP.
Power of Cloud Self Managed VPS Servers :
At one time, I was paying a bucket full of money to BlueHost and InMotion Hosting VPS’s, And the worse thing about it was the performance wasn’t even up-to my expectations. Soon i found about Vultr and DigitalOcean, and me and my clients are thankful to them for providing such good performance. Now i even install a ZPanel for my not so command-line friendly clients, So there is not any downside of using it.