Which moral factors should a country consider when deciding who can and can’t immigrate to its lands?

The Ethics of Immigration

Do wealthy and freer nations have a duty to admit citizens from poorer and more oppressed countries if doing so would improve their quality of life? Why or why not?

Which moral factors should a country consider when deciding who can and can’t immigrate to its lands?