Unlock conditions in the Smash games are tied to specific challenges rather than codes. Across the series the pattern looks like this: play a timed Melee match to earn one character, complete the hundred-man Melee for another, and clear Classic mode with a particular fighter to open up a third.
Target Test with the full roster is another recurring requirement, and clearing every character's target stage tends to unlock something at the end of it. The exact list differs between the original, Melee, Brawl and later titles, so match the method to the game you are actually playing rather than a list from a different entry.