You can check for the latest available official firmware by going to Settings > Software Updates or by using the OPPO System Upgrade Tool on a PC.
Even on the best custom ROMs, you will face bugs:
Some regions saw a limited beta for Android 7.1.1 Nougat (ColorOS 3.1), but it was never widely rolled out as a final stable build for all global variants.