Develop a PHP program that takes in a positive integer and outputs a formatted list of all factors of the integer, including 1 and the integer itself. The program should handle non-integer inputs and provide appropriate error messages. The output should include the total number of factors and be sorted in ascending order. The program should also incorporate comments and follow common coding conventions.
This prompt doesn't seem malicious.