How to know if you have too many WordPress plugins

Many bloggers who using WordPress were facing a major problem, website slow. Sometimes, this could be a problem from the WordPress application itself instead of the hosting server.

WordPress is designed to be able to use custom plugins or themes. If you simply install the untrusted plugins or themes, it will indirectly causing your website slow.

So you shall not install the unused plugins. If you did it, uninstall it instead of deactivated it as deactivated will still causing the SQL query to query it from the wp_options tables from your database.

Watch your website load time. If your site couldn’t loaded within 5 seconds and where this might caused by the low quality plugins installed.

Check the plugins compatible from the plugins page from URL below,

Check the query time,  add the following code to your footer.php and check your site query number and time.

<?php echo $wpdb->num_queries; ?>
<?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>

Then try to disable the plugin 1 by 1 or even remove them and test the query time. Otherwise, optimize the database to cleat the overhead data.

Site Hacked and get alert from Google Safe Browsing

Sometime, you might see the Google Safe Browsing prompt when you browse to any of the website with Mozilla Firefox or any Internet Browser or even your own website.

You might wonder why you will getting these alert? There are many reasons.

1. Blame your webmaster who help you to upload your web file to the server and their PC got trojan, etc and indirectly infected your site.
2. If you are the one who upload or update the website content, please don’t surf porn site :-P, don’t surf free codec site, etc etc.
3. Try not to use shareware software where will come with the so called addon.
4. Lastly, blame your hosting server is not save.

By right, if you are the domain administrator and if your site get infected, all of the email as user ID below will get the notification.

Next, you should clean the malware or replace the hacked script.
1. Take down your website from public access.
2. Scan the script through the up-to-date Anti-Virus software.
3. Remove the attacked script or file.
4. Reset all password such as control panel, FTP, administrative section, etc.

Lastly, you should ask Google to review your website again.
1. Log into the Google Webmaster Tool.
2. Click on the Diagnostic and click on Malware.
3. Click request a review.

Changing TimeZone in .htaccess file

As you know, the server hosted for your web site’s time zone might not the time zone that you want as you might purchased a hosting server hosted somewhere from your location.

Hence it is important if you could define the timezone from the server setting instead of working on each of the script.

Although you set set a global value the inc file from each of your script, but isn’t it easier if you set it to your .htaccess file?

Open up your .htaccess file, enter the command as below.

SetEnv TZ location

The location indicate the timezone that you want to set, for more information on the location information, you may refer to the URL as below.

How to Disable directory listing

Some web hosting server setting allow the directory listing by default and you wish to disable it as you might not use the hosting space for web purpose but storage purpose.

There are several ways to disable it through your space as steps below.

Apache Linux with cPanel
If your hosting company provide cPanel, it will be great it allow you easily to disable it through the control panel.

In this guide, Mick Genie guide you how to disable it through cPanel 11.25(x3 themes).
1. Log into the cPanel control panel.
2. Look for Advance box and click on Index Manager.
3. A pop up box show and select the domain name that you wish to disable it.
4. Select the folder.
5. From the radio button, select No Indexing and save it.

Apache Linux without cPanel
If you do not come with cPanel, it isn’t a hard step to disable it.

1. Log into the SSH console.
2. Change directory to the public_html path(assume your root path is /home/mickgenie/public_html/)

cd /home/mickgenie/public_html

3. Edit/create the .htaccess file

vi .htaccess

4. Add the line as below to the .htaccess file by click on Insert button and insert,

Options -Indexes

5. Save it by type in :wq!.