Well yes, currently this is wrong.
But you are not alone, see InvalidArgumentException plugin installation · Issue #5 · wsssoftware/cakephp-datatables · GitHub
Basically all wsssoftware has to do is to create a tag with version 4.0 in github and then create a new release with that tagged version. Then everything works as expected.