WordPress.org

Plugin Directory

Changeset 629582


Ignore:
Timestamp:
11/25/12 04:28:18 (17 months ago)
Author:
sLaNGjI
Message:

Millspelling Corrections

Location:
wp-overview-lite/wp-memory-db-indicator
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-overview-lite/wp-memory-db-indicator/readme.txt

    r629516 r629582  
    33Donate link: http://slangji.wordpress.com/donate/ 
    44Tags: max, memory, load, db, size, usage, footer, dashboard, admin, bar, toolbar, slangji  
    5 Stable tag: 2012.1124.0000 
     5Stable tag: 2012.1125.0000 
    66Requires at least: 3.1 
    77Tested up to: 3.5 
    88License: GPLv2 or later 
    9 Indicate Memory Load and db size Usage on WordPress Backend. Show Memory Load and db size on Footer, and Max Memory Load on Admin Bar or ToolBar. 
     9Indicate Memory Load Consumption and db size Usage on WordPress Backend. Show Memory Load and db size on Footer, and Max Memory Load on Admin Bar or ToolBar. 
    1010== Description == 
    1111Website: [slangji.wordpress.com](http://slangji.wordpress.com/) 
     
    3737This plugin work under GPLv2 license.` 
    3838= Development Release = 
    39 [Version 2013 Build 0000-BUGFIX Revision 0000-DEVELOPMENT](http://downloads.wordpress.org/plugin/wp-toolbar-removal.zip) 
    40 = 2012.1124.0000 = 
     39[Version 2013 Build 0000-BUGFIX Revision 0000-DEVELOPMENT](http://downloads.wordpress.org/plugin/wp-memory-db-usage.zip) 
     40= 2012.1125.0000 = 
    4141* Release [STABLE] Show Memory Load and db size Usage on WordPress Backend. 
    4242 * First Plugin Release 
    4343 * Work under GPLv2 license 
    44  * Bump Version 2012 Build 1124 Revision 0000 
     44 * Bump Version 2012 Build 1125 Revision 0000 
    4545== Upgrade Notice == 
    46 = 2012.1124.0000 = 
     46= 2012.1125.0000 = 
    4747* Release [STABLE] Show Memory Load and db size Usage on WordPress Backend. Work under GPLv2 license. 
  • wp-overview-lite/wp-memory-db-indicator/wp-memory-db-indicator.php

    r629507 r629582  
    22/* 
    33Plugin Name: Memory Load db Usage 
    4 Plugin URI: http://slangji.wordpress.com/wp-toolbar-removal/ 
    5 Description: Work under GPLv2 License. | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</a> | <a href="http://slangji.wordpress.com/contact/" title="Send Me Bug and Suggestions">Contact</a> | <a href="http://wordpress.org/extend/plugins/wp-overview-lite/" title="Show Dashboard Overview and Footer Memory Load Usage">WP Overview?</a> | <a href="http://wordpress.org/extend/plugins/wp-missed-schedule/" title="Fix Missed Scheduled Future Posts Cron Job">WP Missed Schedule?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-removal/" title="Remove Admin Bar Frontend Backend User Profile and Code">Admin Bar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/" title="Remove Admin Bar Frontend and Backend Node">Admin Bar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-removal/" title="Remove ToolBar Frontend Backend User Profile and Code">ToolBar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-node-removal/" title="Remove ToolBar Frontend and Backend Node">ToolBar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-login-deindexing/" title="Total DeIndexing WordPress LogIn from all Search Engines">LogIn DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-total-deindexing/" title="Total DeIndexing WordPress from all Search Engines">WP DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-ie-enhancer-and-modernizer/" title="Enhancer and Modernizer IE Surfing Expirience">Enhancer IE Surfing?</a> 
    6 Version: 2012.1124.0000 
     4Plugin URI: http://slangji.wordpress.com/wp-memory-db-usage/ 
     5Description: Indicate Memory Load Consumption and db size Usage on WordPress Backend. Show Memory Load and db size on Footer, and Max Memory Load on Admin Bar or ToolBar. Work under GPLv2 License. | <a href="http://slangji.wordpress.com/donate/" title="Free Donation">Donate</a> | <a href="http://slangji.wordpress.com/contact/" title="Send Me Bug and Suggestions">Contact</a> | <a href="http://wordpress.org/extend/plugins/wp-overview-lite/" title="Show Dashboard Overview and Footer Memory Load Usage">WP Overview?</a> | <a href="http://wordpress.org/extend/plugins/wp-missed-schedule/" title="Fix Missed Scheduled Future Posts Cron Job">WP Missed Schedule?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-removal/" title="Remove Admin Bar Frontend Backend User Profile and Code">Admin Bar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-admin-bar-node-removal/" title="Remove Admin Bar Frontend and Backend Node">Admin Bar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-removal/" title="Remove ToolBar Frontend Backend User Profile and Code">ToolBar Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-toolbar-node-removal/" title="Remove ToolBar Frontend and Backend Node">ToolBar Node Removal?</a> | <a href="http://wordpress.org/extend/plugins/wp-login-deindexing/" title="Total DeIndexing WordPress LogIn from all Search Engines">LogIn DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-total-deindexing/" title="Total DeIndexing WordPress from all Search Engines">WP DeIndexing?</a> | <a href="http://wordpress.org/extend/plugins/wp-ie-enhancer-and-modernizer/" title="Enhancer and Modernizer IE Surfing Expirience">Enhancer IE Surfing?</a> 
     6Version: 2012.1125.0000 
    77Author: sLa 
    88Author URI: http://slangji.wordpress.com/ 
     
    1313 * Development Release: Version 2013 Build 0000-BUGFIX Revision 0000-DEVELOPMENT - DEV 
    1414 * 
    15  * [Memory Load Consuption and db Usage](http://wordpress.org/extend/plugins/wp-memory-and-db-indicator/) WordPress PlugIn 
     15 * [Memory Load Consuption and db size Usage](http://wordpress.org/extend/plugins/wp-memory-db-indicator/) WordPress PlugIn 
    1616 * 
    1717 *  This program is free software; you can redistribute it and/or 
     
    4141 * @subpackage WordPress PlugIn 
    4242 * @since 3.1.0 
    43  * @version 2012.1124.0000 
     43 * @version 2012.1125.0000 
    4444 * @author sLa 
    4545 * @license GPLv2 or later 
     
    4747 * Display the PHP Memory Load Consuption and db Usage on Dashboard Footer, and Backend Admin Bar or ToolBar. 
    4848 */ 
    49 if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}function wpmldbu_footer_log(){echo"\n<!--Plugin Memory Load db Usage 2012.1124.0000 Active-->";}add_action('wp_head','wpmldbu_footer_log');add_action('wp_footer','wpmldbu_footer_log');if(is_blog_admin()||is_network_admin()){class wp_memory_load_db_usage{var$memory=false;function wpo(){return$this->__construct();}function __construct(){add_action('init',array(&$this,'wpmldbu_limit'));add_action('wp_dashboard_setup',array(&$this,'wpmldbu_dashboard'));add_action('wp_network_dashboard_setup',array(&$this,'wpmldbu_network_dashboard'));add_filter('admin_footer_text',array(&$this,'wpmldbu_footer'));$this->memory=array();}function wpmldbu_limit(){$this->memory['wpmldbu-limit']=(int)ini_get('memory_limit');}function wpmldbu_load(){$this->memory['wpmldbu-load']=function_exists('memory_get_usage')?round(memory_get_usage()/1024/1024,2):0;}function wpmldbu_consumption(){$this->memory['wpmldbu-consumption']=round($this->memory['wpmldbu-load']/$this->memory['wpmldbu-limit']*100,0);}function wpmldbu_output(){$this->wpmldbu_load();$this->wpmldbu_consumption();$this->memory['wpmldbu-load']=empty($this->memory['wpmldbu-load'])?__('0'):$this->memory['wpmldbu-load'].__('M')?><?php 
     49if(!function_exists('add_action')){header('HTTP/1.0 403 Forbidden');header('HTTP/1.1 403 Forbidden');exit();}function wpmldbu_footer_log(){echo"\n<!--Plugin Memory Load db Usage 2012.1125.0000 Active-->";}add_action('wp_head','wpmldbu_footer_log');add_action('wp_footer','wpmldbu_footer_log');if(is_blog_admin()||is_network_admin()){class wp_memory_load_db_usage{var$memory=false;function wpo(){return$this->__construct();}function __construct(){add_action('init',array(&$this,'wpmldbu_limit'));add_action('wp_dashboard_setup',array(&$this,'wpmldbu_dashboard'));add_action('wp_network_dashboard_setup',array(&$this,'wpmldbu_network_dashboard'));add_filter('admin_footer_text',array(&$this,'wpmldbu_footer'));$this->memory=array();}function wpmldbu_limit(){$this->memory['wpmldbu-limit']=(int)ini_get('memory_limit');}function wpmldbu_load(){$this->memory['wpmldbu-load']=function_exists('memory_get_usage')?round(memory_get_usage()/1024/1024,2):0;}function wpmldbu_consumption(){$this->memory['wpmldbu-consumption']=round($this->memory['wpmldbu-load']/$this->memory['wpmldbu-limit']*100,0);}function wpmldbu_output(){$this->wpmldbu_load();$this->wpmldbu_consumption();$this->memory['wpmldbu-load']=empty($this->memory['wpmldbu-load'])?__('0'):$this->memory['wpmldbu-load'].__('M')?><?php 
    5050}function wpmldbu_dashboard(){if(!current_user_can('unfiltered_html'))return;}function wpmldbu_network_dashboard(){if(!current_user_can('unfiltered_html'))return;}function wpmldbu_footer($content){$this->wpmldbu_load();$content.=' ~ Memory Load '.$this->memory['wpmldbu-load'].' of '.$this->memory['wpmldbu-limit'].'M';return$content;}}add_action('plugins_loaded',create_function('','$memory=new wp_memory_load_db_usage();'));}if(is_blog_admin()||is_network_admin()){function wpmldbu_fs_info($filesize){$bytes=array('B','K','M','G','T');if($filesize<1024)$filesize=1;for($i=0;$filesize>1024;$i++)$filesize/=1024;$wpmldbu_fs_info['size']=round($filesize,3);$wpmldbu_fs_info['type']=$bytes[$i];return$wpmldbu_fs_info;}function wpmldbu_db_size(){$rows=mysql_query("SHOW table STATUS");$dbsize=0;while($row=mysql_fetch_array($rows)){$dbsize+=$row['Data_length']+$row['Index_length'];}$dbsize=wpmldbu_fs_info($dbsize);echo"db size {$dbsize['size']}{$dbsize['type']}";}add_filter('admin_footer_text','wpmldbu_db_size');}function wpmldbu_atb(){global$wp_admin_bar,$wpdb;if(!is_super_admin()||!is_admin_bar_showing())return;$useful_info=sprintf('Max Memory Load %.2fM',memory_get_peak_usage()/1024/1024,2);$wp_admin_bar->add_menu(array('id'=>'wp_memory_db_indicator','title'=>$useful_info));}add_action('admin_bar_menu','wpmldbu_atb',1000 )?> 
Note: See TracChangeset for help on using the changeset viewer.