Quick note, there has been a long standing bug(?) that prevents that code from always opening to the addon. The work around I use is first calling InterfaceOptionsFrame_Show before opening the category.
Lua Code:
InterfaceOptionsFrame_Show()
InterfaceOptionsFrame_OpenToCategory("ADDON NAME")