A primary school in Bradford has been praised for its high standards but told to improve attendance and behaviour.