Secret Codes is an Open Source application allowing you to scan your device and discover hidden functionalities.
A secret code is defined by this pattern: *#*#code#*#*.
There are multiple ways to trigger them, but the simplest is to directly enter them in the dialer app.