Plugin Directory

Changeset 559442


Ignore:
Timestamp:
06/17/2012 05:35:06 PM (14 years ago)
Author:
php.sandeepkumar
Message:

Documentation Added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • meta-tags-optimization/trunk/meta-tags-optimization.php

    r510242 r559442  
    44Description: Check Meta Title, Meta Keywords(s) and Meta Description on posts and pages and consult with a seo expert on a single click.
    55Author: Sandeep Kumar
    6 Version: 1.0.0
     6Version: 1.2.0
    77Author URI: http://wordpress.org/extend/plugins/profile/sandeep-kumar
    88*/
     
    118118           
    119119            //if(preg_match(',',$keywordsData){
    120             $splitKeyword=explode(",",trim($keywordsData));
     120            $splitKeyword=explode(",",trim(strtolower($keywordsData)));
    121121            /*$splitKeyword_all=array();
    122122            foreach($splitKeyword as $key=>$value){
     
    124124            }*/
    125125            /*}
     126       
    126127            else{
    127128            $splitKeyword=$keywordsData;
     
    291292                $type='success';
    292293
    293                 $result="The title is <64 and the keyword is located first in order";
     294                $result="Done! the title is <64 <64 characters and the keyword is located first in order .";
    294295            }
    295296           
     
    299300            {
    300301                $type='success';
    301                 $result="The title is <64 and the keyword is located but NOT as the first word in order";
     302                $result="The title is <64 characters and the keyword is located but NOT as the first word in order";
    302303            }
    303304           
     
    305306            elseif($titleLength<64 and $isKeywordExist==false)
    306307            {
    307                 $result="The title is <64 and the keyword is NOT located at all";
     308                $result="The title is <64 characters and the keyword is NOT located at all";
    308309            }
    309310       
     
    311312            elseif($titleLength<64 and array_filter($countEachValue,"multipleEntries"))
    312313            {
    313                 $result="The title is <64 and the keyword is located more than 1 time in the title";
     314                $result="The title is <64 characters and the keyword is located more than 1 time in the title";
    314315            }
    315316       
     
    317318            elseif($titleLength>64 and $keywordLeftSide==true)
    318319            {
    319                 $result="The title is >64 and the keyword is located first in order";
     320                $result="The title is >64 characters and the keyword is located first in order";
    320321            }
    321322           
     
    324325            elseif($titleLength>64 and $keywordRightSide==true)
    325326            {
    326                 $result="The title is >64 and the keyword is located but NOT as the first word in order";
     327                $result="The title is >64 characters and the keyword is located but NOT as the first word in order";
    327328            }
    328329           
     
    330331            elseif($titleLength>64 and $isKeywordExist==false)
    331332            {
    332                 $result="The title is >64 and the keyword is NOT located at all";
     333                $result="The title is >64 characters and the keyword is NOT located at all";
    333334            }
    334335       
     
    336337                elseif($titleLength>64 and count($countEachValue)>0 and array_filter($countEachValue,"multipleEntries"))
    337338                {
    338                     $result="The title is >64 and the keyword is located more than 1 time in the title";
     339                    $result="The title is >64 characters and the keyword is located more than 1 time in the title";
    339340                }
    340341           
     
    418419                    $type='success';
    419420
    420     $result="The keyword is < 5 and located only once";
     421    $result="Done! The keyword is < 5 and located only once";
    421422   }
    422423//          If you find 1-5 meta keywords, and the keyword you search for is there MORE then once, then show text "Meta Keyword 2".  And you receive a core of –
     
    555556  {
    556557    //return META_DESC_121_FIRST;
    557     $result="description is between 120-160 and keyword is the first word in the description";
     558    $type='success';
     559    $result="Done! Description is between 120-160 characters and keyword is the first word in the description";
    558560  }
    559561//          If you find that description is between 120-160 characters, and the keyword is NOT the first word in the description. Then show text "Meta desc Text 3". And you receive a core of –
     
    561563  {
    562564   //return META_DESC_121_NFIRST;
    563    $result="description is between 120-160 and the keyword is NOT the first word in the description";
     565   $result="description is between 120-160 characters and the keyword is NOT the first word in the description";
    564566  }
    565567
     
    569571 
    570572   //return META_DESC_121_NOT;
    571    $result="description is between 120-160 and the keyword is NOT in the description at ALL";
     573   $result="description is between 120-160 characters and the keyword is NOT in the description at ALL";
    572574  }
    573575
     
    576578  {
    577579   //return META_DESC_151_FIRST;
    578    $result="description is > 160 and keyword is the first word in the description";
     580   $result="description is > 160 characters and keyword is the first word in the description";
    579581  }
    580582
     
    583585  {
    584586   //return META_DESC_151_NFIRST;
    585    $result="description is > 160 and the keyword is NOT the first word in the description";
     587   $result="description is > 160 characters and the keyword is NOT the first word in the description";
    586588  }
    587589
     
    590592  {
    591593   //return META_DESC_151_NOT;
    592    $result="description is > 160 and the keyword is NOT in the description at ALL";
     594   $result="description is > 160 characters and the keyword is NOT in the description at ALL";
    593595  }
    594596
     
    597599  {
    598600   //return META_DESC_119_NFIRST;
    599    $result="description is < 120 and the keyword is the first word in the description";
     601   $type="success";
     602   $result="description is < 120 characters and the keyword is the first word in the description";
    600603  }
    601604
     
    604607  {
    605608  // return META_DESC_119_NFIRST;
    606   $result="description is < 120 and the keyword is NOT the first word in the description";
     609  $result="description is < 120 characters and the keyword is NOT the first word in the description";
    607610  }
    608611
     
    611614  {
    612615   //return META_DESC_119_NOT;
    613    $result="description is < 120 and the keyword is NOT in the description at ALL";
     616   $result="description is < 120 characters and the keyword is NOT in the description at ALL";
    614617  }
    615618 
     
    694697       
    695698//echo $post_meta_title1."->".$post_meta_title2;
    696 $post_meta_title=$post_meta_title1.$post_meta_title2;
     699$post_meta_title=$post_meta_title1;
    697700
    698701//create obk=ject of seoTitle Class
     
    780783   echo '<p>
    781784        Other SEO Resources : <a  target="_blank" href="http://www.wordpress.org/extend/plugins/word-highlighter/" >Word Highlights and makes them more important for the search engine</a>
    782         </p>';
     785        </p>
     786        ';
    783787 // echo "<pre>";print_r($post);
    784788 
     
    906910   echo '<p>
    907911        Other SEO Resources : <a  target="_blank" href="http://www.wordpress.org/extend/plugins/word-highlighter/" >Word Highlights and makes them more important for the search engine</a>
    908         </p>';
     912        </p>
     913       
     914        <p><a href="https://www.paypal.com/cgi-bin/[email protected]&amount=1&lc=us"Donate just $1 to help in future development on this project. mail me at <a href="mailto:[email protected]">wordpress expert</a> to know more upcoming features and your valuable suggestions. <br>
     915        </p>';
    909916 
    910917 
     
    924931        return $data;
    925932    }
     933   
     934add_action('admin_menu','mto_admin_menu');
     935
     936
     937function mto_admin_menu(){
     938
     939add_menu_page(__('Overview'),__('Meta Tags Optimization'),'manage_options',__file__,'mto_how_to_use');
     940
     941 add_submenu_page(__FILE__,__('How it works'),__('How it works'),'manage_options','mto_how_to_use','mto_how_to_use');
     942
     943
     944}   
     945
     946
     947
     948
     949// Hook things in, late enough so that add_meta_box() is defined
     950
     951function mto_how_to_use()
     952{
     953
     954include_once ( dirname (__FILE__) . '/overview.php' );  // mto_admin_overview
     955mto_admin_overview();
     956
     957?> 
     958   
     959<?php
     960}
     961
     962
    926963?>
Note: See TracChangeset for help on using the changeset viewer.