!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.3.27 

uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 

uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364)  

Safe-mode: OFF (not secure)

/usr/local/wp/vendor/wp-cli/doctor-command/src/Check/   drwxr-xr-x
Free 713.8 GB of 879.6 GB (81.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Autoload_Options_Size.php (1.25 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace WP_CLI\Doctor\Check;

use WP_CLI;
use WP_CLI\Doctor\Check;

/**
 * Warns when autoloaded options size exceeds threshold of %threshold_kb% kb.
 */
class Autoload_Options_Size extends Check {

    /**
     * Threshold in kilobytes.
     *
     * @var integer
     */
    protected $threshold_kb = 900;

    public function run() {
        ob_start();
        WP_CLI::run_command(
            array( 'option', 'list' ),
            array(
                'autoload' => 'on',
                'format'   => 'total_bytes',
            )
        );
        $total_bytes = (int) ob_get_clean();

        $threshold_bytes = $this->threshold_kb * 1024;
        $human_threshold = self::format_bytes( $threshold_bytes );
        $human_total     = self::format_bytes( $total_bytes );
        if ( $threshold_bytes < $total_bytes ) {
            $this->set_status( 'warning' );
            $this->set_message( "Autoloaded options size ({$human_total}) exceeds threshold ({$human_threshold})" );
        } else {
            $this->set_status( 'success' );
            $this->set_message( "Autoloaded options size ({$human_total}) is less than threshold ({$human_threshold})." );
        }
    }

    private static function format_bytes( $size, $precision = 2 ) {
        $base     = log( $size, 1024 );
        $suffixes = array( '', 'kb', 'mb', 'g', 't' );
        return round( pow( 1024, $base - floor( $base ) ), $precision ) . $suffixes[ floor( $base ) ];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0441 ]--