Stop bad bots from crawling your website

Stop bad bots from crawling your website

If you are experiencing performance issues with your site one of the reasons could be your Bandwidth is getting unnecessarily utilised by some bad bots. This article explains what are bad bots, how to identify them and how to stop bad bots crawling your website so that your genuine visitors are not affected. What are bad bots upto? There are quite a number of bad bots operating and the number keeps increasing rapidly. Most of them are from hackers trying to find some vulnerability in your code. They may be trying to get credit card numbers from an online store or may be scraping the text off an article and posting it on some random blog. They may also want to steal username and passwords of peole on your database hoping people use same credentials elsewhere which surprisingly they do. Some may just want to post spam comments on your website. How to stop bad bots from crawling your website Bots are supposed to obey the rules within...
Read More
Server load monitoring tools for your wordpress site

Server load monitoring tools for your wordpress site

Here are some basic tools which will allow you to monitor server load to keep your wordpress site optimised. Uptime (shell command) [crayon-59c102d7a2bcf981362427/] Above command is an example of the uptime command. It says the server is up since 364 days, 2 users are logged in and the rest of the numbers are showing the server average load. The three numbers show the load averages for the last minute, 5 minutes and 15 minutes. If you have 4 CPUs and the load is 2 then your server is using half the CPU capacity. If you have 2 CPUs and the load is 2 then your server CPU is running at full capacity. A load above the number of CPUs means that the system is overloaded which reduces performance. top (shell command) [crayon-59c102d7a2bd8897416822/] top command shows information like tasks, memory, cpu and swap. Here is a sample output of the top command. PHP sys_getloadavg function [crayon-59c102d7a2bdc248746845/] sys_getloadavg function returns an array. In above code, $load[0] would be the server load value. Based on the above code we...
Read More

Points to consider before installing a new wordpress plugin

Installing a new plugin is very easy in wordpress. All you need to do is to search for your plugin, select it, install and activate. If you do not find it suitable to your needs, just deactivate, delete it and move on. However not many people realise what a plugin does in the background once it gets activated and assume that once a plugin is deleted its all gone which is really not true in most cases. A deleted plugin mostly leaves quite a few traces in your system. Depending upon the plugin these traces can severely affect the performance of your system if you try too many plugins without checking what it does in the background Many plugin developers do not follow WordPress coding standards. They do not provide an unintall function for the plugin. This means you need to manually clean up all the traces of the plugin after it is deactivated and deleted. I am currently not experiencing any performance issue with...
Read More
How to tackle WordPress slow queries

How to tackle WordPress slow queries

Here are some wordpress slow queries i.e. queries which take more than 0.05s. It really depends on your wordpress site i.e. how big is the database, plugins and your site configuration. However if you are facing performance issues related to the Dashboard then it is more likely to be due to the slow wordpress dashboard queries. Query Monitor is good plugin to check/analyse your slow queries. Some Wordpress Slow queries Below query auto populates the custom fields drop down box. [crayon-59c102d7a2e96363551886/] For large tables this query can take lot of time like 2secs or so. If you do not need custom fields it is very easy to turn them off using below function. [crayon-59c102d7a2e9e490426773/] For more information read this interesting post on CSS Tricks Below query runs on every Dashboard page so it is important that your wp_options table is optimised. [crayon-59c102d7a2ea2091181535/] Depending upon the plugins you have installed, the wp_options table size can grow rapidly. Some plugins use this table to store _transient options. These _transient options are objects stored in cache....
Read More