It is quite laughable to me that we could think that Paul is referring here to the old testament commandments producing these things in verse five. But so many in the church of Jesus Christ teach exactly that. They take this one verse out of it’s context because they see the word “commandment” and link it back to old testament law.
Continuing on looking at Ephesians 2 we see Paul repeating what he mentioned in verse 5- ‘we are saved by grace.’ Eph 2:8 For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, Eph 2:9 not of works, lest anyone should boast. NKJV