Thanks for getting back to us, this appears to have resolved the issue.
After updating to 4.0.0, wp-admin pages became very slow for administrators, and some requests hit our long page timeout. Rolling back to 3.10.0 fixed it. We have 3.3M+ rows in our wp_postmeta table.
CAUSE
includes/multi-authors/wpa-guest-authors-legacy.php, lines 8-37:
function awpa_register_legacy_migration_menu() {
if (!current_user_can('manage_options')) { return; }
...
$orphaned_meta_count = (int) $wpdb->get_var(
"SELECT COUNT(*) FROM {$wpdb->postmeta} WHERE meta_value LIKE '%guest-%'"
);
if ($guest_count > 0 || $orphaned_meta_count > 0) { add_submenu_page(...); }
}
add_action('admin_menu', 'awpa_register_legacy_migration_menu', 65);admin_menu fires on every wp-admin page load, so for every user with manage_options this query runs on every admin page.
The result isn’t cached, and it’s only used to decide whether to show the “Migrate Guests” submenu.
In the wp_postmeta table, the meta_value column is an unindexed longtext, and the leading % rules out any index and MySQL scans the whole table. I ran EXPLAIN on the query on our prod site and it did scan all 3367457 rows.
I considered adding an index to solve this but that wouldn’t have helped because of the leading % rules out the index being used.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Reply To: So many issues!!! | 0 | 11.59 | 13-10-2026 |
| 2 | Reply To: The font color settings issues | 5 | 2 | 27-06-2026 |
| 3 | Reply To: remove admin email | 0 | 12.84 | 09-08-2026 |
| 4 | Reply To: Conflict with new CF7 plugin update 6.2.2 | 0 | 13.1 | 13-10-2026 |
| 5 | Reply To: Duplicate orders and checkout session timeouts since latest WooCommerce update | 0 | 16.9 | 13-10-2026 |
| 6 | Reply To: Great support | 7 | 3 | 27-06-2026 |
| 7 | Reply To: Constant Contact Forms has experienced issues that may need addressed | 0 | 1 | 02-07-2026 |
| 8 | Reply To: Astra 4.13.7 fatal: WP_Error::get_data() class-astra-elementor.php:388 | 0 | 16.41 | 09-08-2026 |
| 9 | New Wordpress Website - 500 Internal Server Error | 0 | 8.22 | 20-09-2026 |
| 10 | Reply To: WPS Hide Login Has Completely Broken My WordPress 7.0 | 2 | 3 | 02-07-2026 |