You can remember the meaning of 有效 with this easy mnemonic:
My new diet must be effective because it has (有) been scientifically proven to affect (效) my metabolism in a good way.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.