Data
###Test One low concurrency
Complete requests: 100
Concurrency Level: 5
HTML transferred: 1805700 bytes
Slowest to fastest
<form id="wp-link" tabindex="-1" class="ui-dialog-content ui-widget-content" style="width: auto; min-height: 125px; max-height: none; height: auto;" _lpchecked="1"> | |
<input type="hidden" id="_ajax_linking_nonce" name="_ajax_linking_nonce" value="ab2ba583a6"> <div id="link-selector"> | |
<div id="link-options"> | |
<p class="howto">Enter the destination URL</p> | |
<div> | |
<label><span>URL</span><input id="url-field" type="text" name="href"></label> | |
</div> | |
<div> | |
<label><span>Title</span><input id="link-title-field" type="text" name="linktitle"></label> | |
</div> |
<?php | |
//just load it the way WP does | |
include dirname(__FILE__) . '/wp-blog-header.php'; | |
require_once(ABSPATH . 'wp-admin/includes/admin.php'); | |
$functions = get_defined_functions(); | |
$i = 0; //count them | |
// set to user, we don't want internal functions |
<?php | |
$post_types= get_post_types('','names'); | |
$posts_separated = implode(",", $post_types); | |
$screens = array( 'post', 'page', $posts_separated); | |
foreach ($screens as $screen) { | |
add_meta_box( 'styles', 'hello', 'callback_func', $screen, 'advanced', 'high'); | |
} |
/*Pixel straps start here*/ | |
/*Scroll hard for % straps*/ | |
.0{ width: 0px;} | |
.1{ width: 1px;} | |
.2{ width: 2px;} | |
.3{ width: 3px;} | |
.4{ width: 4px;} | |
.5{ width: 5px;} | |
.6{ width: 6px;} |
WordPress block botnet brute force with Mod_security | |
SecAction phase:1,nolog,pass,initcol:ip=%{REMOTE_ADDR},initcol:user=%{REMOTE_ADDR},id:5000134 | |
<Locationmatch "/wp-login.php"> | |
# Setup brute force detection. | |
# React if block flag has been set. | |
SecRule user:bf_block "@gt 0" "deny,status:401,log,id:5000135,msg:'ip address blocked for 5 minutes, more than 10 login attempts in 3 minutes.'" | |
# Setup Tracking. On a successful login, a 302 redirect is performed, a 200 indicates login failed. | |
SecRule RESPONSE_STATUS "^302" "phase:5,t:none,nolog,pass,setvar:ip.bf_counter=0,id:5000136" | |
SecRule RESPONSE_STATUS "^200" "phase:5,chain,t:none,nolog,pass,setvar:ip.bf_counter=+1,deprecatevar:ip.bf_counter=1/180,id:5000137" |
<?php | |
/** | |
* @package WordPress | |
* @subpackage WP-Skeleton | |
*/ | |
// REMOVE SOME HEADER OUTPUT | |
function Wps_remove_header_info() { | |
remove_action('wp_head', 'rsd_link'); |
Data
###Test One low concurrency
Complete requests: 100
Concurrency Level: 5
HTML transferred: 1805700 bytes
Slowest to fastest
<?php | |
/** | |
* | |
* This removes the ability to add the FULL image size into a post, it does not alter or delete the image | |
* Add whataever extra image sizes to the insert dropdown in WordPress you create via add_image_size | |
* | |
* For now we have to do it this way to make the labels translatable, see trac ref below. | |
* | |
* If your theme has $content_width GLOBAL make sure and remove it |
<?php | |
/** | |
* Plugin Name: (#81791) Dump cURL Request & Response | |
* Author: Franz Josef Kaiser | |
*/ | |
add_action( 'plugins_loaded', array( 'WPSE81791_cURL', 'init' ) ); | |
class WPSE81791_cURL | |
{ | |
protected static $instance; |
<?xml version="1.0" encoding="UTF-8"?> | |
<scheme name="Monokai-Custom" version="1" parent_scheme="Default"> | |
<option name="LINE_SPACING" value="1.0" /> | |
<option name="EDITOR_FONT_SIZE" value="16" /> | |
<option name="EDITOR_FONT_NAME" value="Consolas" /> | |
<colors> | |
<option name="CARET_COLOR" value="f8f8f0" /> | |
<option name="CARET_ROW_COLOR" value="3e3d32" /> | |
<option name="CONSOLE_BACKGROUND_KEY" value="272822" /> | |
<option name="GUTTER_BACKGROUND" value="272822" /> |