Not searchable means the is no content text in the document or the document is entirely and image or photograph of text. One can use JavaScript to get the number of words an each page of the PDF. If any page is found to have a word then the PDF is searchable.
Hidden text is whole different issue. This includes the metadata of the PDF, JavaScript within the PDF, etc. There is also the issue of Steganography or hidden messages within an image.
You might even need to develop a program in a computer language like C using a PDF Developers Library to access all the objects within the PDF structure that you cannot access using Acrobat JavaScript.