what contaminant will be the one that most affects the pH of soap?

How are you making the soap? caustic (NaOH or potash) and fat. Then it;s the base. A little of that and the soap will be QUITE basic and tough on the skin when washing.