Select 2 player mode and enter hg? as your initials. Exit and start 1 player and hold L + R and press select at the world selection screen to unlock all levels. Hold L + R and press select again to lock the levels.
Place first on the high score boards for each stage. Each one has it's own bonus stage.