If it ran better unplugged, then it could be the whole issue.

But a smoke test fill all the vacuum hoses and whole motor with smoke and if any comes out of spaces that would suck in air like a gasket or vacuum line, then you know you have a leak.