Q:

Lighten my cms loading

I am creating a cms system and so far so good. But as i go further with my project i develloped alot of plugins for my cms like a guestbook, calendar, comments, events, blog,...
Now every plugin is loaded in my index.php file with the require function.
A plugin gets loaded like this.
// START PLUGINS //
/////////////
// COUNTER
ob_start();
require 'plugins/counter/counter.php';
$counter = ob_get_clean();

and the plugins gets displayed only on the pages with the correct TAG like this
$template = file_get_contents('./templates/' . $default_template . '/template.php');
$search = array('[[SITE_TITLE]]', '[[PAGE_TITLE]]', '[[PAGE_CONTENT]]', '[[MENU_LINKS]]', '[[DEFAULT_TEMPLATE]]', '[[COUNTER]]');
$replace = array($site_title, $page_title, $page_content, $newresult, $default_template, $counter);
echo $template

Now, this is the main structure, but in the last few months i have like 35 plugins now. The require plugins gets heavy and i am affraid that my website will go slow with lots of traffic.
Is there an other way i can "require" all the plugins but with less effect on my website speed?
thx for any suggestions. I have been looking arround here but found no solution yet.

A:

There is no silver bullet for optimization. I suggest you turn on Xdebug profiler and find the bottleneck. Then eliminate it.
Also you can follow some common optimization techniques. 

A good resource on Stackoverflow.com. Tactics for using PHP in a high-load site
A page from Google.

