How can I add a menu item to the admin area?

The code itself is fine. But you would need to activate the plug-in: you can’t simply place the file in the plug-ins directory. You will need to give the plug-in a ‘header’ too. See the Codex.

Alternatively, place the code in your theme’s functions.php, but really it should be in a plug-in.