2 issues:
1. You have not cached a LOT of templates causing 20 extra queries for no reason.
You need to add these templates to be cached (including newpm - make that a global template to be cached, not an actiontemplate).
Replace globaltemplates with these ones:
PHP Code:
// pre-cache templates used by all actions
$globaltemplates = array(
'PM',
'newpm',
'newwpm',
'pmsent',
'editor_clientscript',
'editor_jsoptions_font',
'editor_jsoptions_size',
'editor_smilie_wysiwyg',
'editor_smilie_standard',
'editor_smiliebox',
'editor_smiliebox_category',
'editor_smiliebox_row',
'editor_smiliebox_straggler',
'editor_smiliemenu_category',
'editor_smiliemenu_smilie',
'editor_toolbar_wysiwyg',
'editor_toolbar_standard',
'newpost_disablesmiliesoption',
'newpost_quote',
'posticonbit',
'posticons',
'forumrules',
'usercp_nav_folderbit'
);
And remove the actiontemplates bit - no need.
2. Get rid of the smilie panel by doing this:
Find:
PHP Code:
require_once('./includes/functions_editor.php');
ABOVE this, ADD:
PHP Code:
$vboptions['wysiwyg_show_smiliebox'] = '0';
Enjoy.