The one in your second picture is Plumeria pudica. I cut those back to 18" every early spring. This is what they end up looking like late summer.
Your plumeria in the first picture is suffering from lack of sun, it will always be reaching for the light. They should be in 100% full sun, ideally. If not they grow lanky, like yours.