Sao Martinho do Porto is a reasonably safe place to travel, even at night. Like everywhere, it's always crucial to take sensible precautions. The area is mainly populated by families, and locals are usually friendly and helpful. However, the town is quieter at night, and some places might feel a bit isolated. Therefore, it's best to stick to well-lit, populated areas when walking alone after dark.