There is no any specific method of detecting undeclared active principal but there are some obeservations that observ animal that which plant is eating and why, when it is eating? Observ the habitat of the plant. Its taste, colour, smell etc. This will give some guideline to undeclared active principals.
AAS (Atomic absorption spectroscopy) is available to detect undeclared metals but we need to do lot of permutation and combination as the metals re not known. it will be a R & D project and will cost very high.