I wouldn’t rush into saying that the sites been hacked. The code there is perfectly valid for a developer to check to ensure that the server envronment can support the requirements for WordPress.
The first thing to do is dleete the file – it’s not needed any more and it has the possibility of opening up security holes if osmeone finds it.
The second thing to do is run your site thorugh Sucuri’s site checker to check for any issues.
Third thing to do is check with your developer to see if they actually did put that file there (I’d be pretty sure that they did and just forgot to delete it).
If you find any issues, then go thorugh the steps that Esmi has given. Before establishing that it really was a hack or just a forgetful developer they might be a bit of overkill.