Phone sometimes can't detect any WIFI networks
This is an issue happening because of problem in the wifi module of the ROM you have flashed. 

Try to get a fresh ROM and also don't forget to read the bug reports of it.

If you see many download links, download the stable instead of nightly / experimental.

Flash it. Or else, go back to stock ROM