Secondary metabolism (also called specialised metabolism) is a term for pathways and metabolites are small molecule produced by metabolism that are not absolutely required for the survival of the organism.
In case of plant, metabolites aid in the growth and development of plants. It also facilitates the primary metabolism.