Are User Levels Still Currently Used?

Many plugins (and themes) use user levels, you shouldn’t use them in yours. They are still used in WordPress probably to offer backward compatibility with the huge number of plugins and themes that use them.

WPCS will throw a warning whenever it busts user levels in code.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)