Content authoring and CKEditor
I believe what you see is normal. In any case, having the WYSIWYG editor for Plain text would result in that the output would display the HTML source code. Using the WYSIWYG editor for PHP input format would probably reformat and destroy the PHP code.