I wrote my own forum software a few years back and was distributing it for a while until I discovered MyBB. When I found it initially, I security audited their code and found the behind-the-scenes code to consist of extremely solid programming in a very similar style to how I develop software. Since then, I’ve authored about 10 plugins for MyBB and I’ve opted to point everyone at MyBB instead of my own product.