Testing performance of WordPress files

No. And even if there was, it would be probably useless anyway.

You would get incorrect results, because a .php file might call slow functions from WordPress core files, and there are a lot of situations like this.

You could try using the xdebug extension, it’s pretty close to what you’re looking for