Category Archives: WordPress

Disable default WP cron job for performance (and do it the right way)
21. Apr 2018 20:42 • Performance, WordPress • #, #, #, #, #

Disable default WP cron job for performance (and do it the right way)

TL;DR: WordPress’ built‑in cron (WP‑Cron) runs on page loads. On busy sites it can add overhead; on quiet sites it can miss schedules. The fix is simple: disable the default trigger in wp-config.php and run wp-cron.php from a real scheduler (Linux cron, Windows Task Scheduler, or a third‑party ping) every 5–10 minutes. Verify with WP‑CLI…Read More

Do Deactivated WordPress Plugins Slow Down Site?

Do Deactivated WordPress Plugins Slow Down Site?

TL;DR: Not on the front end in the way most people think. WordPress only loads active plugins during a request, so a deactivated plugin’s PHP code is not executed. What can slow your site are the leftovers: autoloaded options, orphaned cron jobs, and cluttered databases that some plugins leave behind. Clean those up and remove…Read More

How to configure WordPress SMTP without plugin
23. Mar 2018 17:31 • WordPress • #, #, #, #, #

How to configure WordPress SMTP without plugin

TL;DR: You don’t need a plugin to send WordPress email over SMTP. Define SMTP creds in wp-config.php and hook phpmailer_init in your theme (or a small “must-use” mu-plugin) to configure PHPMailer. Test with wp_mail() or WP-CLI. Why do this? Assumptions: You’re comfortable editing theme files / mu-plugins and have SMTP credentials from a provider. Tested…Read More

Disable WordPress automatically creating image sizes
20. Mar 2018 20:47 • Snippets, WordPress • #, #, #, #

Disable WordPress automatically creating image sizes

Have you ever looked inside the uploads folder of WordPress site and saw a lot of almost the same image files? Do not worry, this is not some malware or anything similar, it’s the default behaviour of WordPress called thumbnails or image sizes. For any larger image you upload, WordPress creates multiple resized versions of…Read More