In the last weeks I follow a discussion at wp-hackers and trac ticket #11509. Currently I used a couple of direct calls to my plugin , due to the fact that I need to output some AJAX request or a XML content. Joseph Scott says in the trac ticket :
The wp-config.php, wp-load.php, etc. files should never be directly included by a theme or plugin.
I start thinking what could be the solution for my problems and in the same second I’ve spined my ideas he linked to an article from Will Norris. I never ever get the same idea since I wrote my first plugin, it’s really simple to realize and a more robust solution. Very stupid that I missed that before…
I will start to remove direct calls to my plugins with the next Version 1.4.2. There are more more work on it, so it’s a first test for the slideshow XML output.