I have made a WordPress plugin, and it works. But when I send it to the WordPress.org plugin team, they responded:
Calling wp-load.php directly
Including wp-config.php, wp-blog-header.php, wp-load.php, or pretty much any other WordPress core file that you have to call directly via an include is not a good idea and we cannot approve a plugin that does so unless it has a very good reason to load the file(s). It is prone to failure since not all WordPress installs have the exact same file structure. Usually plugins will include wp-config.php or wp-load.php in order to gain access to core WordPress functions, but there are much better ways to do this. It's best if you tie your processing functions (the ones that need but don't have access to core functions) into an action hook, such as "init" or "admin_init".
I don't know what to do :(
This is my plugin http://szymoon.nazwa.pl/plugins/Printer-Friendly-WP.zip
Where is a good example of making the correct plugin? Or one that was accepted by the WordPress.org team.