"There is a total of twenty insects," sounds good - but if you consider the whole sentence, including on the wall, the case is different for me. It's the insects that are crawling on the wall, not the abstract entity "total". So I would prefer the plural, as in "there are a lot of insects on the wall".