SILENT KILLERPanel

Current Path: > home > transcarter > > www > wp-content > plugins > query-monitor > > collectors


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home/transcarter//www/wp-content/plugins/query-monitor//collectors

NameTypeSizeLast ModifiedActions
admin.php File 3426 bytes July 17 2025 21:05:45.
assets_scripts.php File 1215 bytes July 17 2025 21:05:45.
assets_styles.php File 862 bytes July 17 2025 21:05:45.
block_editor.php File 5528 bytes July 17 2025 21:05:45.
cache.php File 3576 bytes July 17 2025 21:05:45.
caps.php File 7352 bytes July 17 2025 21:05:45.
conditionals.php File 2803 bytes July 17 2025 21:05:45.
db_callers.php File 1140 bytes July 17 2025 21:05:45.
db_components.php File 1175 bytes July 17 2025 21:05:45.
db_dupes.php File 3498 bytes July 17 2025 21:05:45.
db_queries.php File 6415 bytes July 17 2025 21:05:45.
debug_bar.php File 2757 bytes July 17 2025 21:05:45.
doing_it_wrong.php File 12778 bytes July 17 2025 21:05:45.
environment.php File 9074 bytes July 17 2025 21:05:45.
hooks.php File 2019 bytes July 17 2025 21:05:45.
http.php File 11557 bytes July 17 2025 21:05:45.
languages.php File 7552 bytes July 17 2025 21:05:45.
logger.php File 7945 bytes July 17 2025 21:05:45.
multisite.php File 1631 bytes July 17 2025 21:05:45.
overview.php File 2845 bytes July 17 2025 21:05:45.
php_errors.php File 15565 bytes July 17 2025 21:05:45.
raw_request.php File 2424 bytes July 17 2025 21:05:45.
redirects.php File 1365 bytes July 17 2025 21:05:45.
request.php File 7325 bytes July 17 2025 21:05:45.
theme.php File 17934 bytes July 17 2025 21:05:45.
timing.php File 4448 bytes July 17 2025 21:05:45.
transients.php File 3010 bytes July 17 2025 21:05:45.

Reading File: /home/transcarter//www/wp-content/plugins/query-monitor//collectors/admin.php

<?php declare(strict_types = 1);
/**
 * Admin screen collector.
 *
 * @package query-monitor
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * @extends QM_DataCollector<QM_Data_Admin>
 */
class QM_Collector_Admin extends QM_DataCollector {

	public $id = 'response';

	public function get_storage(): QM_Data {
		return new QM_Data_Admin();
	}

	/**
	 * @return array<int, string>
	 */
	public function get_concerned_actions() {
		$actions = array(
			'current_screen',
			'admin_notices',
			'all_admin_notices',
			'network_admin_notices',
			'user_admin_notices',
		);

		if ( ! empty( $this->data->list_table ) ) {
			$actions[] = $this->data->list_table['column_action'];
		}

		return $actions;
	}

	/**
	 * @return array<int, string>
	 */
	public function get_concerned_filters() {
		$filters = array();

		if ( ! empty( $this->data->list_table ) ) {
			$filters[] = $this->data->list_table['columns_filter'];
			$filters[] = $this->data->list_table['sortables_filter'];
		}

		return $filters;
	}

	/**
	 * @return void
	 */
	public function process() {
		/**
		 * @var string $pagenow
		 * @var ?WP_List_Table $wp_list_table
		 */
		global $pagenow, $wp_list_table;

		$this->data->pagenow = $pagenow;
		$this->data->typenow = $GLOBALS['typenow'] ?? '';
		$this->data->taxnow = $GLOBALS['taxnow'] ?? '';
		$this->data->hook_suffix = $GLOBALS['hook_suffix'] ?? '';
		$this->data->current_screen = get_current_screen();

		$screens = array(
			'edit' => true,
			'edit-comments' => true,
			'edit-tags' => true,
			'link-manager' => true,
			'plugins' => true,
			'plugins-network' => true,
			'sites-network' => true,
			'themes-network' => true,
			'upload' => true,
			'users' => true,
			'users-network' => true,
		);

		if ( empty( $this->data->current_screen ) || ! isset( $screens[ $this->data->current_screen->base ] ) ) {
			return;
		}

		# And now, WordPress' legendary inconsistency comes into play:

		$columns = $this->data->current_screen->id;
		$sortables = $this->data->current_screen->id;
		$column = $this->data->current_screen->base;

		if ( ! empty( $this->data->current_screen->taxonomy ) ) {
			$column = $this->data->current_screen->taxonomy;
		} elseif ( ! empty( $this->data->current_screen->post_type ) ) {
			$column = $this->data->current_screen->post_type . '_posts';
		}

		if ( ! empty( $this->data->current_screen->post_type ) && empty( $this->data->current_screen->taxonomy ) ) {
			$columns = $this->data->current_screen->post_type . '_posts';
		}

		if ( 'edit-comments' === $column ) {
			$column = 'comments';
		} elseif ( 'upload' === $column ) {
			$column = 'media';
		} elseif ( 'link-manager' === $column ) {
			$column = 'link';
		}

		$list_table_data = array(
			'columns_filter' => "manage_{$columns}_columns",
			'sortables_filter' => "manage_{$sortables}_sortable_columns",
			'column_action' => "manage_{$column}_custom_column",
		);

		if ( ! empty( $wp_list_table ) ) {
			$list_table_data['class_name'] = get_class( $wp_list_table );
		}

		$this->data->list_table = $list_table_data;
	}

}

/**
 * @param array<string, QM_Collector> $collectors
 * @param QueryMonitor $qm
 * @return array<string, QM_Collector>
 */
function register_qm_collector_admin( array $collectors, QueryMonitor $qm ) {
	$collectors['response'] = new QM_Collector_Admin();
	return $collectors;
}

if ( is_admin() ) {
	add_filter( 'qm/collectors', 'register_qm_collector_admin', 10, 2 );
}

SILENT KILLER Tool