The core is not too bad in the sense that it's stable, well-maintained, and mostly well-documented. The online code reference is also pretty great. The quality of the code is otherwise atrocious. Nobody should look at WordPress for any sort of guidance on what good code looks like.