Changeset 3446388
- Timestamp:
- 01/25/2026 04:06:04 AM (42 hours ago)
- Location:
- wpbenchmark
- Files:
-
- 2 edited
- 4 copied
-
tags/1.6.5 (copied) (copied from wpbenchmark/trunk)
-
tags/1.6.5/class.wpbenchmarkio.php (copied) (copied from wpbenchmark/trunk/class.wpbenchmarkio.php)
-
tags/1.6.5/readme.txt (copied) (copied from wpbenchmark/trunk/readme.txt) (2 diffs)
-
tags/1.6.5/wp-benchmark-io.php (copied) (copied from wpbenchmark/trunk/wp-benchmark-io.php) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wp-benchmark-io.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpbenchmark/tags/1.6.5/readme.txt
r3412884 r3446388 7 7 Tested up to: 6.9 8 8 Requires PHP: 5.6 9 Stable tag: 1.6. 49 Stable tag: 1.6.5 10 10 License: GPLv3 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 58 58 59 59 == Changelog == 60 61 1.6.5 - removed "ping me" feature, as this was causing some abuse for my server. Feature will rely on your Wordpress cron. 60 62 61 63 1.6.4 - fix execution time overhead, renaming plugin to comply with trademarks and community rules. -
wpbenchmark/tags/1.6.5/wp-benchmark-io.php
r3355594 r3446388 8 8 Description: Benchmark your WordPress server's speed and capabilities, featuring scheduled performance monitoring and WordPress-specific tests for objective host comparisons. 9 9 Text Domain: 10 Version: 1.6. 410 Version: 1.6.5 11 11 Requires PHP: 5.6 12 12 Network: true … … 197 197 wp_schedule_single_event( time()+60, self::$schedulled_event_name, $event_args ); 198 198 199 if (isset($_REQUEST["attempt_to_ping_me"])) { 200 if ($_REQUEST["attempt_to_ping_me"]==1) { 201 update_option(self::$attempt_pingback_option, 1); 202 self::ask_for_pingback(60); 203 } else { 204 update_option(self::$attempt_pingback_option, 0); 205 } 206 } else { 207 update_option(self::$attempt_pingback_option, 0); 208 } 199 update_option(self::$attempt_pingback_option, 0); 200 #if (isset($_REQUEST["attempt_to_ping_me"])) { 201 # if ($_REQUEST["attempt_to_ping_me"]==1) { 202 # update_option(self::$attempt_pingback_option, 1); 203 # self::ask_for_pingback(60); 204 # } else { 205 # update_option(self::$attempt_pingback_option, 0); 206 # } 207 #} else { 208 # update_option(self::$attempt_pingback_option, 0); 209 #} 209 210 } 210 211 } # END IF DOA isset … … 942 943 <div class='wpio-row'> 943 944 <div class='wpio-col-7' style='padding-left:2em; margin-bottom:10px;'> 944 <div style='padding-bottom:10px; font-size:1.2em;'>945 <label><input type='checkbox' name='attempt_to_ping_me' value='1'> - attempt to ping my Wordpress. Enable, if your Wordpress has very low traffic. My script will attempt to ping back to trigger scheduled event, but I can not promise accuracy.</label>946 </div>947 945 <button type='submit' class='wpio-btn wpio-btn-success wpio-btn-block wpio-btn-lg'>Enable scheduled benchmarking</button> 948 946 </div> … … 1474 1472 wp_schedule_single_event( time()+296, $event_name, $args ); 1475 1473 1476 $ask_for_pingback = get_option(self::$attempt_pingback_option);1477 if (isset($ask_for_pingback)) {1478 if ($ask_for_pingback==1) {1479 // ask for pingback1480 self::ask_for_pingback(296);1481 }1482 }1474 #$ask_for_pingback = get_option(self::$attempt_pingback_option); 1475 #if (isset($ask_for_pingback)) { 1476 # if ($ask_for_pingback==1) { 1477 # // ask for pingback 1478 # self::ask_for_pingback(296); 1479 # } 1480 #} 1483 1481 } 1484 1482 } … … 1488 1486 */ 1489 1487 static function ask_for_pingback($after_time=300) { 1490 if ($after_time<296) {1491 $after_time=296;1492 }1493 1494 $data = array();1495 $data["site_url"] = get_site_url();1496 $data["after_time"] = $after_time;1497 1498 wp_remote_post("https://collect.wpbenchmark.io/ping_me_back.php", array("body"=>$data));1488 #if ($after_time<296) { 1489 # $after_time=296; 1490 #} 1491 1492 #$data = array(); 1493 #$data["site_url"] = get_site_url(); 1494 #$data["after_time"] = $after_time; 1495 1496 # wp_remote_post("https://collect.wpbenchmark.io/ping_me_back.php", array("body"=>$data)); 1499 1497 1500 1498 return true; -
wpbenchmark/trunk/readme.txt
r3412884 r3446388 7 7 Tested up to: 6.9 8 8 Requires PHP: 5.6 9 Stable tag: 1.6. 49 Stable tag: 1.6.5 10 10 License: GPLv3 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 58 58 59 59 == Changelog == 60 61 1.6.5 - removed "ping me" feature, as this was causing some abuse for my server. Feature will rely on your Wordpress cron. 60 62 61 63 1.6.4 - fix execution time overhead, renaming plugin to comply with trademarks and community rules. -
wpbenchmark/trunk/wp-benchmark-io.php
r3355594 r3446388 8 8 Description: Benchmark your WordPress server's speed and capabilities, featuring scheduled performance monitoring and WordPress-specific tests for objective host comparisons. 9 9 Text Domain: 10 Version: 1.6. 410 Version: 1.6.5 11 11 Requires PHP: 5.6 12 12 Network: true … … 197 197 wp_schedule_single_event( time()+60, self::$schedulled_event_name, $event_args ); 198 198 199 if (isset($_REQUEST["attempt_to_ping_me"])) { 200 if ($_REQUEST["attempt_to_ping_me"]==1) { 201 update_option(self::$attempt_pingback_option, 1); 202 self::ask_for_pingback(60); 203 } else { 204 update_option(self::$attempt_pingback_option, 0); 205 } 206 } else { 207 update_option(self::$attempt_pingback_option, 0); 208 } 199 update_option(self::$attempt_pingback_option, 0); 200 #if (isset($_REQUEST["attempt_to_ping_me"])) { 201 # if ($_REQUEST["attempt_to_ping_me"]==1) { 202 # update_option(self::$attempt_pingback_option, 1); 203 # self::ask_for_pingback(60); 204 # } else { 205 # update_option(self::$attempt_pingback_option, 0); 206 # } 207 #} else { 208 # update_option(self::$attempt_pingback_option, 0); 209 #} 209 210 } 210 211 } # END IF DOA isset … … 942 943 <div class='wpio-row'> 943 944 <div class='wpio-col-7' style='padding-left:2em; margin-bottom:10px;'> 944 <div style='padding-bottom:10px; font-size:1.2em;'>945 <label><input type='checkbox' name='attempt_to_ping_me' value='1'> - attempt to ping my Wordpress. Enable, if your Wordpress has very low traffic. My script will attempt to ping back to trigger scheduled event, but I can not promise accuracy.</label>946 </div>947 945 <button type='submit' class='wpio-btn wpio-btn-success wpio-btn-block wpio-btn-lg'>Enable scheduled benchmarking</button> 948 946 </div> … … 1474 1472 wp_schedule_single_event( time()+296, $event_name, $args ); 1475 1473 1476 $ask_for_pingback = get_option(self::$attempt_pingback_option);1477 if (isset($ask_for_pingback)) {1478 if ($ask_for_pingback==1) {1479 // ask for pingback1480 self::ask_for_pingback(296);1481 }1482 }1474 #$ask_for_pingback = get_option(self::$attempt_pingback_option); 1475 #if (isset($ask_for_pingback)) { 1476 # if ($ask_for_pingback==1) { 1477 # // ask for pingback 1478 # self::ask_for_pingback(296); 1479 # } 1480 #} 1483 1481 } 1484 1482 } … … 1488 1486 */ 1489 1487 static function ask_for_pingback($after_time=300) { 1490 if ($after_time<296) {1491 $after_time=296;1492 }1493 1494 $data = array();1495 $data["site_url"] = get_site_url();1496 $data["after_time"] = $after_time;1497 1498 wp_remote_post("https://collect.wpbenchmark.io/ping_me_back.php", array("body"=>$data));1488 #if ($after_time<296) { 1489 # $after_time=296; 1490 #} 1491 1492 #$data = array(); 1493 #$data["site_url"] = get_site_url(); 1494 #$data["after_time"] = $after_time; 1495 1496 # wp_remote_post("https://collect.wpbenchmark.io/ping_me_back.php", array("body"=>$data)); 1499 1497 1500 1498 return true;
Note: See TracChangeset
for help on using the changeset viewer.