Current Path: > home > transcarter > public_html > wp-content > > plugins > wp-optimize > > optimizations
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 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
attachments.php | File | 3223 bytes | July 17 2025 21:05:49. | |
autodraft.php | File | 5459 bytes | July 17 2025 21:05:49. | |
commentmeta.php | File | 7713 bytes | July 17 2025 21:05:49. | |
inactive-tags.php | File | 569 bytes | July 17 2025 21:05:49. | |
optimizetables.php | File | 6863 bytes | July 17 2025 21:05:49. | |
orphandata.php | File | 2451 bytes | July 17 2025 21:05:49. | |
orphanedtables.php | File | 5551 bytes | July 17 2025 21:05:49. | |
pingbacks.php | File | 4616 bytes | July 17 2025 21:05:49. | |
postmeta.php | File | 4663 bytes | July 17 2025 21:05:49. | |
repairtables.php | File | 4486 bytes | July 17 2025 21:05:49. | |
revisions.php | File | 8268 bytes | July 17 2025 21:05:49. | |
spam.php | File | 8368 bytes | July 17 2025 21:05:49. | |
trackbacks.php | File | 4512 bytes | July 17 2025 21:05:49. | |
transient.php | File | 14641 bytes | July 17 2025 21:05:49. | |
trash.php | File | 6944 bytes | July 17 2025 21:05:49. | |
unapproved.php | File | 6082 bytes | July 17 2025 21:05:49. | |
usermeta.php | File | 4556 bytes | July 17 2025 21:05:49. |
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); class WP_Optimization_orphandata extends WP_Optimization { public $ui_sort_order = 10000; public $available_for_saving = true; public $support_preview = false; /** * Do actions after optimize() function. */ public function after_optimize() { // translators: %s - number of deleted orphaned relationship data $message = sprintf(_n('%s orphaned relationship data deleted', '%s orphaned relationship data deleted', $this->processed_count, 'wp-optimize'), number_format_i18n($this->processed_count)); if ($this->is_multisite_mode()) { // translators: %s - number of sites $message .= ' ' . sprintf(_n('across %s site', 'across %s sites', count($this->blogs_ids), 'wp-optimize'), count($this->blogs_ids)); } $this->logger->info($message); $this->register_output($message); } /** * Do optimization. */ public function optimize() { $clean = "DELETE FROM `" . $this->wpdb->term_relationships . "` WHERE term_taxonomy_id=1 AND object_id NOT IN (SELECT id FROM `" . $this->wpdb->posts . "`);"; $orphandata = $this->query($clean); $this->processed_count += $orphandata; } /** * Do actions after get_info() function. */ public function after_get_info() { if ($this->found_count > 0) { // translators: %s - number of orphaned relationship data $message = sprintf(_n('%s orphaned relationship data in your database', '%s orphaned relationship data in your database', $this->found_count, 'wp-optimize'), number_format_i18n($this->found_count)); } else { $message = __('No orphaned relationship data in your database', 'wp-optimize'); } if ($this->is_multisite_mode()) { // translators: %s - number of sites $message .= ' ' . sprintf(_n('across %s site', 'across %s sites', count($this->blogs_ids), 'wp-optimize'), count($this->blogs_ids)); } $this->register_output($message); } /** * Get count of unoptimized items. */ public function get_info() { $sql = "SELECT COUNT(*) FROM `{$this->wpdb->term_relationships}` WHERE term_taxonomy_id=%d AND object_id NOT IN (SELECT id FROM `{$this->wpdb->posts}`);"; $orphandata = $this->wpdb->get_var($this->wpdb->prepare($sql, 1)); // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- `$this->wpdb` is `$wpdb` $this->found_count += $orphandata; } public function settings_label() { return __('Clean orphaned relationship data', 'wp-optimize'); } }
SILENT KILLER Tool