Ok, Trump apparently did criticize North Korea's human rights record, last November, in front of South Korea’s National Assembly. I couldn't find his speech right away, but I found a summary:
When President Trump spoke to South Korea’s National Assembly last week, his emphasis on the systematic abuses and absence of basic freedoms in the authoritarian state to the north made him sound like a fervent champion of universal human rights.
So his criticism is contextual, at least with regard to North Korea. There's some further commentary in that article that other Presidents have done the same with respect to other countries, particularly with respect to those with which the US tried to gain or maintain closeclose[r] relations.
The article also reproduces some criticism that Trump may be more driven (than past Presidents) by his personal like or dislike of the leader of the country in question. Honestly, I didn't find that too convincing. While Trump's lack of criticism of Duarte came with some praise (for DuarteDuarte's tough anti-drug enforcement), it's not clear what Trump liked about Vietnam's leadership, even though he avoided criticizing the human rights record of the latter as well (on his visit there).