You can remember the meaning of 虫子 with this easy mnemonic:
There is no insect (虫) that my child (子) doesn't recognize.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.