There are many WordPress plugins that optimize images, most do that via an external service and has some limits (like the number of images compressed per month). If you’re using a VPS or a dedicated server, you can easily optimize images with command line. It’s super fast…
Deluxe Blog Tips
View and monitor server load
I run my products on VPS and need a tool to view and monitor server load, especially during special occasions with high traffic like Black Friday. View the server load To view the server load, use the following command: cat /proc/loadavg 0.08 0.12 0.09 1/413 3599988 The first…
Github Projects Review
I’m using Asana as my primary project management tool. But I keep my eyes on other tools as well, because the more I use a tool, the more I understand its pros and cons. No tools can satisfy everyone. Github Projects is one of the free project management…
Deleting database tables after uninstalling plugins
Some plugins like WooCommerce or ProfilePress don’t remove database tables after uninstalling. That makes your database bloat with redundant tables if you don’t plan to use these plugins in the future. In my situation, we have a multisite for premium WordPress themes demos. Most of them have…
.htaccess redirect www to non-www
I usually use non-www URLs for simplicity and having shorter URLs. So, I often redirect all requests to www to their non-www versions. This snippet redirects all requests to www.example.com to example.com. It’s generic, works with all domains and doesn’t require you to write the domain name….
WordPress news sources
The WordPress ecosystem is changing fast. Many plugins, themes, tools, and blog posts are created every day. And some of them are out of the market or simply forgotten. As a WordPress business owner, I usually need to read WordPress news sources to be updated with the…
Debugging functions
While developing WordPress plugins and themes, I usually need to see values of variables. While PHP already offers print_r and var_dump functions, it’s not convenient to use them to output variables in a beautiful way. So I made some debugging helper functions to do that. Simple debugging…
My first experience with esbuild
I’ve been a Webpack user for a long time. I built Meta Box Builder and Slim SEO Schema with React using Webpack and some of the WordPress’s npm packages. Webpack is powerful and does everything I need. However, I feel it’s hard to configure, especially setting up it…
Common MySQL commands
I usually forget basic MySQL commands like checking the status and where is the configuration file. So, I collect the most useful and most used commands for MySQL in this post for a quick reference. Note that I use Ubuntu, so the the commands are Ubuntu-specific. These commands…