*Review* **Plant Metabolomics: An Overview of the Role of Primary and Secondary Metabolites against Different Environmental Stress Factors**

**Uzma Salam 1,†, Shakir Ullah 1,†, Zhong-Hua Tang 1,\*, Ahmed A. Elateeq 2, Yaseen Khan 3, Jafar Khan 1, Asif Khan <sup>4</sup> and Sajid Ali 5,\***


**Abstract:** Several environmental stresses, including biotic and abiotic factors, adversely affect the growth and development of crops, thereby lowering their yield. However, abiotic factors, e.g., drought, salinity, cold, heat, ultraviolet radiations (UVr), reactive oxygen species (ROS), trace metals (TM), and soil pH, are extremely destructive and decrease crop yield worldwide. It is expected that more than 50% of crop production losses are due to abiotic stresses. Moreover, these factors are responsible for physiological and biochemical changes in plants. The response of different plant species to such stresses is a complex phenomenon with individual features for several species. In addition, it has been shown that abiotic factors stimulate multi-gene responses by making modifications in the accumulation of the primary and secondary metabolites. Metabolomics is a promising way to interpret biotic and abiotic stress tolerance in plants. The study of metabolic profiling revealed different types of metabolites, e.g., amino acids, carbohydrates, phenols, polyamines, terpenes, etc, which are accumulated in plants. Among all, primary metabolites, such as amino acids, carbohydrates, lipids polyamines, and glycine betaine, are considered the major contributing factors that work as osmolytes and osmoprotectants for plants from various environmental stress factors. In contrast, plant-derived secondary metabolites, e.g., phenolics, terpenoids, and nitrogen-containing compounds (alkaloids), have no direct role in the growth and development of plants. Nevertheless, such metabolites could play a significant role as a defense by protecting plants from biotic factors such as herbivores, insects, and pathogens. In addition, they can enhance the resistance against abiotic factors. Therefore, metabolomics practices are becoming essential and influential in plants by identifying different phytochemicals that are part of the acclimation responses to various stimuli. Hence, an accurate metabolome analysis is important to understand the basics of stress physiology and biochemistry. This review provides insight into the current information related to the impact of biotic and abiotic factors on variations of various sets of metabolite levels and explores how primary and secondary metabolites help plants in response to these stresses.

**Keywords:** metabolomics; tolerance; metabolic responses; biotic stress; abiotic stress; metabolites variation
