I’m noticing some things the theme is doing which may be able to be optimized. These are kind of picky, but on an active site with an advanced woocommerce system, anything that can be optimized comes into question. I’m using the plugin Debug Objects to do this research.
file: /wp-content/themes/woopress/framework/theme-functions.php
1. line 608
1.0ms (0.000967025756836s)
UPDATE wp_options SET option_value = ‘1’ WHERE option_name = ‘sc_chat_validate_license’
I don’t have the Screets Chat plugin activated, yet the plugin runs this on every admin page load. I suggest only running this on activation.
2. line 3067 & 3044
0.2ms (0.000231981277466s)
SELECT option_value FROM wp_options WHERE option_name = ‘etheme_custom_sidebars’ LIMIT 1
Seems normal but gets run twice on every admin page load
file: wp-content/themes/woopress/framework/inc/taxonomy-metadata.php
3. line 57 & 34
0.4ms (0.00043511390686s)
show tables like ‘wp_taxonomymeta’
Not really sure why this would be run twice or at all, but it gets run every admin page load
file: wp-content/themes/woopress/option-tree/includes/ot-cleanup-api.php
4. line 69
0.3ms (0.000349044799805s)
SELECT * FROM wp_posts WHERE post_type = ‘option-tree’ LIMIT 2
AND
line 70
0.3ms (0.00032901763916s)
SHOW TABLES LIKE ‘wp_option_tree’
The cleanup doesn’t really need to run every admin page load, does it? Maybe just trigger the check on option-related pages, then do a check once per hour if it’s really necessary to monitor.