Are there any files which are NOT restored from a Time Machine backup but taken from the recovery partition?
As long as you haven't excluded something manually from the backup it will backup everything, except some cache and log files.
I do also have custom programs in /opt, /usr/bin,... and everything still worked after restoring the system from my Time Machine backup.

There is a good collection of Time Machine FAQ on the web you may like to consult.