I use magnets on doors quite a bit. The important thing is that the magnets must touch. A gap drastically reduces the force. So for your job, a good depth stop is essential. My best depth stop is on my plunge router.