Changeset 559442
- Timestamp:
- 06/17/2012 05:35:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
meta-tags-optimization/trunk/meta-tags-optimization.php
r510242 r559442 4 4 Description: Check Meta Title, Meta Keywords(s) and Meta Description on posts and pages and consult with a seo expert on a single click. 5 5 Author: Sandeep Kumar 6 Version: 1. 0.06 Version: 1.2.0 7 7 Author URI: http://wordpress.org/extend/plugins/profile/sandeep-kumar 8 8 */ … … 118 118 119 119 //if(preg_match(',',$keywordsData){ 120 $splitKeyword=explode(",",trim( $keywordsData));120 $splitKeyword=explode(",",trim(strtolower($keywordsData))); 121 121 /*$splitKeyword_all=array(); 122 122 foreach($splitKeyword as $key=>$value){ … … 124 124 }*/ 125 125 /*} 126 126 127 else{ 127 128 $splitKeyword=$keywordsData; … … 291 292 $type='success'; 292 293 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 ."; 294 295 } 295 296 … … 299 300 { 300 301 $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"; 302 303 } 303 304 … … 305 306 elseif($titleLength<64 and $isKeywordExist==false) 306 307 { 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"; 308 309 } 309 310 … … 311 312 elseif($titleLength<64 and array_filter($countEachValue,"multipleEntries")) 312 313 { 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"; 314 315 } 315 316 … … 317 318 elseif($titleLength>64 and $keywordLeftSide==true) 318 319 { 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"; 320 321 } 321 322 … … 324 325 elseif($titleLength>64 and $keywordRightSide==true) 325 326 { 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"; 327 328 } 328 329 … … 330 331 elseif($titleLength>64 and $isKeywordExist==false) 331 332 { 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"; 333 334 } 334 335 … … 336 337 elseif($titleLength>64 and count($countEachValue)>0 and array_filter($countEachValue,"multipleEntries")) 337 338 { 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"; 339 340 } 340 341 … … 418 419 $type='success'; 419 420 420 $result=" The keyword is < 5 and located only once";421 $result="Done! The keyword is < 5 and located only once"; 421 422 } 422 423 // 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 – … … 555 556 { 556 557 //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"; 558 560 } 559 561 // 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 – … … 561 563 { 562 564 //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"; 564 566 } 565 567 … … 569 571 570 572 //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"; 572 574 } 573 575 … … 576 578 { 577 579 //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"; 579 581 } 580 582 … … 583 585 { 584 586 //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"; 586 588 } 587 589 … … 590 592 { 591 593 //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"; 593 595 } 594 596 … … 597 599 { 598 600 //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"; 600 603 } 601 604 … … 604 607 { 605 608 // 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"; 607 610 } 608 611 … … 611 614 { 612 615 //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"; 614 617 } 615 618 … … 694 697 695 698 //echo $post_meta_title1."->".$post_meta_title2; 696 $post_meta_title=$post_meta_title1 .$post_meta_title2;699 $post_meta_title=$post_meta_title1; 697 700 698 701 //create obk=ject of seoTitle Class … … 780 783 echo '<p> 781 784 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 '; 783 787 // echo "<pre>";print_r($post); 784 788 … … 906 910 echo '<p> 907 911 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>'; 909 916 910 917 … … 924 931 return $data; 925 932 } 933 934 add_action('admin_menu','mto_admin_menu'); 935 936 937 function mto_admin_menu(){ 938 939 add_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 951 function mto_how_to_use() 952 { 953 954 include_once ( dirname (__FILE__) . '/overview.php' ); // mto_admin_overview 955 mto_admin_overview(); 956 957 ?> 958 959 <?php 960 } 961 962 926 963 ?>
Note: See TracChangeset
for help on using the changeset viewer.