Public transport in Porto is very good and cost effective.  There are a few main options:

More details are below as well as how to get to and from the airport