File: /home/nhqyemt2u0zd/www/wp-content/plugins/seo-advicer/seo-advicer.php
<?php
/*
Plugin Name: SEO Advicer
Version: 1.4.8
Plugin URI: http://www.scorpiongodlair.com/seo-advicer-wordpress-plugin/
Description: SEO Advicer will give you random SEO Actions you need to take for better SEO Strength in your website. This includes many advices of OnSite SEO and OffSite SEO. Make sure to follow all of the tips given by SEO Advicer.
Author: ScorpionGod Lair
Author URI: http://www.scorpiongodlair.com
License: GPL2
SEO Advicer Plugin
Copyright (C) 2013, Shyam Chathuranga - shyam@scorpiongodlair.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function seo_advices_list() {
/* All the SEO Advices are written by Shyam Chathuranga */
$advices = "Image ALT means the \"Alternative Text\" which describes what the image is about
Some people call ALT tag, but it's wrong ALT is an HTML attribute
One method to optimize an image is filling Image ALT attribute
Add Image ALT - <img src=\"MyHomeImage.png\" <b>alt=\"Image Shows My Home\"</b>>
Second method to optimize an image is adding your keyword into the Image File Name
Third method to optimize an image is adding Image Meta Data
You could use Photoshop to incude Meta Data to your images
For adding Image Meta Data, Go <i>File > File Info</i> from Photoshop
Another way to optimize an image is reducing its File Size
Image Optimization with PS, Go <i>File > Save For Web</i> through Photoshop
Don't add more than 2 Keywords for Meta Keyword Tag & Image Meta Data
Adding hundreds of keywords inside Meta Keyword tag is known as Keyword Stuffing
You know what, Keyword Stuffing can still occur in your content too
Founder of ScorpionGod Lair - <a href='https://plus.google.com/+ShyamChathuranga/' title='Join the party with Shyam'>Shyam Chathuranga</a>, believes 1%-2% Keyword Density is enough
1%-2% <a href='http://www.scorpiongodlair.com/keyword-density/' title='Read about Keyword Density more!'>Keyword Density</a> means 1 mention of your Primary Keyword for 100 words
Anchor Text means the words used in a hyperlink or link in common.
You could create an optimized link - <a href=\"MySite.com\" title=\"Check My Site\">My Site Name</a>
It can raise alarms, when you create lot of links using a specific Anchor Text
Links you create from other websites are known as Backlinks
Usually backlinks are known as Inbound Links or Incoming Links
Many people rely only on Backlinks to optimize their sites, but it's <i>not</i> good
Authority means something or someone that's popular, authenticated, trustable and reputable
You cannot build an Authority Blog in a day or two
It takes minimum of month to build an Authority Blog
BlackHat SEO means the Bad, In-Natural & Illegal practices used to rank higher
It's like the fun you have watching an awesome movie to use BlackHat SEO - Limited Time
Once the Google finds out you're using BlackHat SEO, the fun is <b>OVER</b> for months to come
WhiteHat SEO means the Good, Natural & Legal practices used to rank higher
Google loves and rewards who follow WhiteHat SEO methods
WhiteHat SEO is the only way you can have rankings for years to come, not months
Simply, We don't recommend a single vein of BlackHat SEO practices
Bounce Rate is the percentage of people who haven't been engaging with your site
If the visitor exits from your site within 10s after landing, It is a Bounce
Did your user failed to view another page after landing your site? Yep! He's a bounce
One way to kill those ugly Bounces are giving <b>what your site is<b> at first impression
Does your Bounce Rate high on Google Analytics? Beware Google will not send you Organic Traffic
Organic Traffic means the visitors arriving from a Search Result to what they search
Canonical URL is used to flag the original page of a content in your site
Your site may posses the Duplicate Content risk, If you don't setup Canonical Links
Crawling means finding webpages to index in a Search Engine
Indexing means the saving a copy of your webpage to quick searching for a query
DoFollow means a type of links that asks SE Crawlers to visit and pass PageRank juice
We can call Search Engines by the abbreviation - SE
Duplicate Content means the copy of same content placed on 2 different pages
Google PageRank means an innovative technology used to express the importance of a website
Natural and Relevant backlinks affect to get a higher PageRank
In addition to <a href='http://www.scorpiongodlair.com/link-building-introduction/' title='Learn what is correct Link Building ...'>Backlinks</a>, there are few other factors affect to reach higher Google PR
Your Google PageRank may drop, if you caught for the infraction of being BlackHat
Another reason to drop your PR is not being in the game as much as it is needed
Google Sandbox is a where almost all new websites lay before it becomes an authority site
Impressions is the number of times an Advertisement appeared for the timeframe
Interlinking is the process of linking relevant pages throughout your website
Keyword Density is the number of times a target keyword appears in a post
Keyword Research is a process of identifying profitable & low competitive keywords
Landing page is a highly targeted page to Sell or gain more subscriptions
A Lead means an email address of a prospective or a potential customer
Link Cloaking means a technique used to hide the actual URL of a page
Linkbait is a <a href='http://www.scorpiongodlair.com/link-building-introduction/' title='Learn what is correct Link Building ...'>link building strategy</a> where you write a detailed & highly researched content that receives backlinks automatically
Meta tags are HTML tags used to specify information about the page
Google uses Meta Tags as one of the OnSite SEO signals
Mobile Responsiveness is used as another OnSite SEO signal by Google
Mobile Responsiveness means the ability of a webpage to adapt for almost any kind of device
NoArchive is a Robots Meta Tag which means not to create a cached copy of your page
NoFollow is a Robots Meta Tag which means not to pass the PR juice to that link
NoIndex is a Robots Meta Tag which means not to index your webpage
Outbound links are the links which point to other sites from your site
Search Queries are the words used by a user to search
SERPs is the abbreviation of Search Engine Results Page
Sitelinks are provided by Google to your site results in the SERPs, if it's suitable
Sitemap is a list of links that points to all the pages in your website
Spam means marketing of something beyond the margins or inappropriate way
Three letters called SEO means the Search Engine Optimization
SEO is the process of creating a highly user-friendly & useful website for humans
Just like you have 2 hands, SEO also has 2 Hands
OnSite & OffSite SEO are the 2 hands of the Search Engine Optimization
OnSite SEO means the process of improving the Quality of your site from <b>Inside</b>
OffSite SEO means the process of making your website popular in same niche websites
One of the major factors of OnSite SEO is <a href='http://www.scorpiongodlair.com/keyword-density/' title='Read about Keyword Density more!'>Keyword Density</a>
<a href='http://www.scorpiongodlair.com/link-building-introduction/' title='Learn what is correct Link Building ...'>Link Building</a> is the most popular SEO action around the world
Yeah! Proper SEO can bring you higher Search Engine Rankings
You don't get the 100% of your Rankings, If you follow only the Link Building
Without <a href='http://www.scorpiongodlair.com/social-media-seo-helpers/' title='Don't rely on SEO & Social Media'>high quality and useful content</a>, You'll not increase your earnings
Traffic is the number of people who visit your website
Sometimes, Organic Traffic is known as Search Engine Traffic
Higher search engine rankings can boost your Sales overnight
Conversion Rate is the overall percentage of visitors who turn into your prospects
Since 2010, Google cares much about your Website Loading Time as one of the OnSite SEO factors
Don't use slow WordPress Themes, use faster Themes such as <a href='http://www.scorpiongodlair.com/genesis'>Genesis Themes</a>
Google loves websites which use Industry Latest Technologies such as HTML-5 & CSS3
Use OpenGraph tags to make your site works smoother with social media sites
Make your content looks great on Twitter by adding Twitter Card Meta
Create a perfect & well-structured navigation menu in your website
Optimize every image you post by using ALT and Title attributes
Take every effort to make your posts 900+ words with useful information
Create official profiles on Pinterest, Twitter, Facebook, Google+, Youtube & LinkedIn
Write regular guest posts on high Authority Blogs, Yep! strategy still useful
Do a simple Keyword Research to choose the Primary Keyword before writing your post
Create a sitemap.xml for your WordPress website using <a href='http://wordpress.org/plugins/google-sitemap-generator/'>Google XML Sitemap</a>
Try to start the post Meta Description with your Primary Keyword
Google uses only around 65 characters in search result title, Don't use more than 65 chars
Write a Meta Description up to 150 characters, 10 chars are skipped for Date
Remove 'category' part of the category URL slugs of your posts
Get Google Authorship for your website
Having Google Authorship would boost your search rankings & trust
Keep a Posting Frequency of 5 per week, Google loves those who do
Use a good SEO Plugin in your WordPress website - <a href='https://wordpress.org/plugins/wordpress-seo/'>Yoast's WordPress SEO</a>!
Read well-explained SEO articles on <a href='http://www.scorpiongodlair.com/seo' title='Internet Marketer, Genesis Developer'>ScorpionGod Lair</a>
Create a digitally & visually achievable Goal, Hire a professional to make it happen
Use a well-developed WordPress Theme to feel the power of Theme SEO Coding
Minimize the number of plugins you use, it makes your website faster
Include possible functionality directly to your Theme, instead of using a Plugin
Disable duplicate content archives such as Date based archives
Use <a href='http://www.google.com/webmasters' title='Start now!'>Google Webmaster Tools</a> to make your website index on Google within seconds
Claim your new website on Alexa & Optimize the listing
Use %%postname%% as your permalink structure in WordPress Settings > Permalinks
Yah! Breadcrumbs can help you in SERPs and also for your users
Writing something under 150 chars for Meta Description won't help you - Make it attractive & compelling
Breadcrumbs will help Google to display your Page URL smarter
Use Google Webmaster Tools and Bing Webmaster Tools plus Yandex Webmaster Tools too
site:scorpiongodlair.com will show all the Indexed Pages on Google - Check your domain
1st Step Google Authorship: Add Author Google+ Profile URL in WordPress Author Profile
2nd Step Google Authorship: Add your Website to Contribution section in G+ Profile
3rd Step Google Authorship: Add a human picture to G+ Profile
4th Step Google Authorship: Add a contribution link from Google+ Publisher page too
Creating useful content for people will reduce your Bounce Rate
'Not Provided' means Google doesn't reveal the Keyword your visitors arrived to analytics tools
Naturally add your Primary Keyword in a H2 or H3 Tag
Don't use H1 Tags more than <b>once</b> as a rule of thumb
Learn few <a href='http://www.scorpiongodlair.com/link-building-strategies/' title='42 Genuine Link Building Strategies'>Link Building Strategies</a>, Follow few you like
Use Google Analytics to check your Bounce Rates & Visitor behaviours
Claim your website on Technorati & Dmoz Directory
Competition bar in Keyword Planner Tool shows only the number of advertisers for that keyword
Proper competition for a Keyword can be found by searching on Google with that keyword
Competition doesn't mean it's Hard, it means niche is Hot at the moment
When competition rises in Keyword Planner Tool, it means high value for Adsense Ad Clicks & Bids
If you're using Genesis Theme, You should use <a href='http://wordpress.org/plugins/genesis-optimized-social-share/' title='Load 4 Popular Social Counters without affecting your Loading Time.!'>Optimized Social Share Plugin</a>
<a href='http://www.scorpiongodlair.com/genesis' title='See it in your own eyes'>Genesis Framework</a> is the fastest WordPress Theme Framework in the world
Learn Copywriting, Read Internet Marketing, Result would be better quality post
Canonical link is very important for Google to decide which page is original
<a href='http://www.scorpiongodlair.com/contact' title='Hire ScorpionGod Lair to Optimize Your Site Loading Time'>Get your website performance optimized</a> to load within a second or two
Want to follow the best practices of OnSite SEO? <a href='http://www.scorpiongodlair.com/contact' title='Hire ScorpionGod Lair For OnSite SEO'>Hire ScorpionGod Lair for the job</a>";
// Here we split it into lines
$advicesli = explode( "\n", $advices );
// And then randomly choose a line
return wptexturize( $advicesli[ mt_rand( 0, count( $advicesli ) - 1 ) ] );
}
// Displaying SEO Advicer Messages on WP Dashboard
add_action( 'admin_notices', 'seo_advices' );
function seo_advices() {
$chosen = seo_advices_list();
echo "<p id='advice'>$chosen</p>";
}
// Fancy looking Design by outputting these CSS Styles
add_action( 'admin_head', 'advices_style' );
function advices_style() {
echo "
<style type='text/css'>
#advice {padding: 10px 15px; margin: 10px auto; width: 88%; font-size: 17px; background: #BFD3FF; border: 1px solid #3E6777; border-radius: 8px; text-align: center; text-shadow: 0px 1px #eee; color: #1B72A4; font-weight: bold; overflow: hidden; line-height: 1.3;}
</style>
";
}
?>