@oscman
It is not possible to say from your screenshot.
- go to your config.php, at bottom before ?> tag add:
define('OSC_DEBUG_DB', true) ;
- login to oc-admin (just to be logged in)
- go to your homepage and at bottom of your page you have section "Database queries" - visible just to users logged in as admins
- there is list of all queries, that were send to database to generate your site
- if your site is loading 12 seconds, there must be query that execute at least 9seconds (usually all queries are executed in 0.5s).
I have checked on our plugin's demo site. There are 4 queries from Instant Messenger plugin with execution time:
0.000787973403931s
0.000936031341553
0.000886917114258
0.00207591056824
Longest query:
SELECT t.i_thread_id, t.fk_i_item_id, t.i_from_user_id, t.s_from_user_name, t.s_from_user_email, t.i_from_user_notify, t.i_to_user_id, t.s_to_user_name, t.s_to_user_email, t.i_to_user_notify, t.s_title, t.d_datetime, count(m.pk_i_id) as i_count, t.i_flag
FROM (plugins_t_im_threads as t)
LEFT OUTER JOIN plugins_t_im_messages as m ON t.i_thread_id = m.fk_i_thread_id
WHERE t.i_from_user_id = 6707107 OR t.i_to_user_id = 6707107
GROUP BY t.i_thread_id, t.fk_i_item_id, t.i_from_user_id, t.s_from_user_name, t.s_from_user_email, t.i_from_user_notify, t.i_to_user_id, t.s_to_user_name, t.s_to_user_email, t.i_to_user_notify, t.s_title, t.i_flag
ORDER BY t.d_datetime DESC
LIMIT 6
It is one to show latest messages.
You could try to add index to your database if this one would take most time.