`. The admin tab links to the CLI in its * footer (Karpathy: blast-radius-aware UI design). * * Plugged into `TMDO_Admin::render_page()` switch via `'hivepress' => * 'HivePress 整合'` tab entry. * * @package WP_Data_Optimizer * @since 3.0.0 */ if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'TMDO_Admin_HivePress' ) ) { /** * Static renderer for the HivePress admin tab. */ final class TMDO_Admin_HivePress { /** * Render the tab body. * * @return void */ public static function render(): void { $detected = class_exists( 'TMDO_HivePress_Detector' ) ? TMDO_HivePress_Detector::detect() : array(); $catalog = class_exists( 'TMDO_HivePress_Detector' ) ? TMDO_HivePress_Detector::catalog() : array(); $bound = class_exists( 'TMDO_HivePress_Bootstrap' ) ? array_keys( TMDO_HivePress_Bootstrap::adapters() ) : array(); $conflicts = class_exists( 'TMDO_HivePress_Conflict_Guard' ) ? TMDO_HivePress_Conflict_Guard::detect_conflicts() : array(); $report = class_exists( 'TMDO_HivePress_Suitability_Scorer' ) ? TMDO_HivePress_Suitability_Scorer::report() : array( 'aggregate' => 0.0, 'adapter_count' => 0, 'adapters' => array(), 'per_dimension' => array(), ); ?>

$name ) : ?>

wp wpdo hivepress detect
wp wpdo hivepress score
wp wpdo hivepress doctor
wp wpdo hivepress migrate <addon-slug>
wp wpdo hivepress rollback <addon-slug>
wp wpdo hivepress benchmark
$conflicts Conflicting plugin slugs. */ private static function render_conflict_section( array $conflicts ): void { if ( empty( $conflicts ) ) { echo '

' . esc_html__( 'Conflict guard: clean — hp-custom-tables / hp-info-cards 未啟用。', 'tmdo-hivepress' ) . '

'; return; } echo '

' . esc_html__( '偵測到衝突外掛:', 'tmdo-hivepress' ) . ' ' . esc_html( implode( ', ', $conflicts ) ) . '

' . esc_html__( 'WPDO HivePress integration 已自動退讓。請執行 `wp wpdo hivepress migrate-from-hpct` 後停用舊外掛。', 'tmdo-hivepress' ) . '

'; } /** * Render per-dimension averages table. * * @param array $dimensions Dimension key → average. */ private static function render_dimension_table( array $dimensions ): void { if ( empty( $dimensions ) ) { return; } echo ''; foreach ( $dimensions as $key => $avg ) { echo ''; } echo '
' . esc_html__( '維度', 'tmdo-hivepress' ) . '' . esc_html__( '平均', 'tmdo-hivepress' ) . '
' . esc_html( $key ) . '' . esc_html( (string) $avg ) . '
'; } } } // end if ( ! class_exists )