Plugin overhead when not in use

I was trying different kinds of image related plugins, and decided to check how much overhead each one of them have when just activated. What I did was upload some plugins, and before I timed it I just activated it. Nothing more. The plugins are activated but not configured or in use.

These are the plugins testet:

Plugin Average page load time Added page load size DB Queries
No plugins 980 ms 16 KB 15
Flickr Manager 3.72 s 75 KB 1 16
Flickr Photo Gallery 1.35 s 0 KB 15
flickrRSS 1.37 s 0 KB 15
Flickr Tag 6.47 s 166 KB 27
NextGEN Gallery 4.36 s 61 KB 16
SimpleFlickr 1.88 s 9 KB 15
Wordpress Media Flickr 971 ms 0 KB 15
WP-Highslide 2.82 s 49 KB 15
Post Thumb Revisited 1.02 s 0 KB 15
FAlbum 1.07 s 0 KB 16
Wordpress Imager 2.41 s 42 KB 15

As you can see, some plugins behave and take no unnecessary overhead when not in use, while others add to the pageload no matter if they are in use or not. Also, since these plugins are all image related, the size of the images themself are of course added to this when in use!

  1. Flickr Manager: The default option for image viewer is Lightbox, but if you configure it to use Highslide the added size is 31 KB

CSS Performance

Just read an interesting article over at jpsykes.com; testing css performance (pt 2).  His conclusion is that using child selectors are slower than using direct class name declarations (in some browsers).

Head on over and read for yourself!

NOTE! Just noticed that part 3 of his testing css article series is out. Check it out.

Margin error in Firefox?

I’m currently working on a webdesign with a centered div, and what’s really irritating is that in Firefox the entire div moves when the content goes below the screen length. Firefox shows the scrollbar and moves the entire page abit to the left. Why does it do that?? IE doesn’t! I have tried with the latest beta of Firefox 3, and same thing happens there.

If you want to test this yourself open this css layout over at Layout Gala in Firefox, and keep clicking the “Add Text to this section” link in the content area until the content goes below the screen length. When Firefox adds the scrollbar at the right side it shifts the entire page to the left.

Surely this must be a bug?

Update: I just checked using Opera and the same thing happens.

Update2: After googling around some, I found the solution to this “problem”. 
The following CSS will make sure the vertical scrollbar are always present:

html {overflow-y: scroll;}

Glad I sorted that out! Now I can consentrate on the design again. :)

Update3: This is still a “problem” in Opera. At least with version 9.27.

Script compression pt.2 - Enter PHP Speedy

After the failure of getting Script Compressor to work, I decided to test out PHP Speedy by Leon Chevalier. A plugin that is suppose to to the same thing as Script Compressor.

There is one big difference though.. PHP Speedy works!

I timed the average load time of my blog page with, and without, the plugin activated. Here are the results:

Without PHP Speedy 1.12s
With PHP Speedy at default settings 1.19s
With PHP Speedy, gzip page on, and footer text/image off 0.97s

As you can see the default settings didn’t work too well with me. But then again. I only have a small css file, and no javascript. Given a “heavier” site I think the default settings would work better. But as you see when I tweaked to settings a bit you see the plugin doing it’s job! Well done!

Script Compressor plugin not working?

I downloaded and installed the Script Compressor plugin with the intent to check how much faster the blog would load with scripts compressed. I don’t have much javascript on my site, so I thought I would start out with just the css compression.

But I can’t see any difference in the css file. Isn’t it working? I’m checking the css using Firebug and the size stays the same, and the structure in the file is the same also. I thought the script was suppose to remove blank lines and comments etc, but all comments are intact in the file.

Am i using it wrong? Are there anyone out there that get this to work?