WordPress Theme and Plugin Name extraction

The function is called get_file_data, it uses a regular expression to parse the text and find headers.