Porphyrins are a group of compounds defined by their chemical structure. Most porphyrin tests detect and measure the by-products of heme synthesis. Heme is an iron-containing pigment that is a necessary component of hemoglobin and a number of other proteins. The synthesis of heme is a step-by-step process that requires the sequential action of eight different enzymes.