Troubleshooting the router as a cause
Plug in a different router (with no filter) into your wall socket and run another speed test.
If a different router gives you better speeds, the first router may be faulty and may need to be replaced.
If a different router also gives you slow speeds then it’s safe to say that the original modem isn’t faulty.