The recently developed SOGGA11 and M11-L density functionals have been tested for the prediction of bandgaps and lattice constants by comparing to databases containing 31 bandgaps and 34 lattice constants. To make a comparative assessment we also test several other density functionals against the same databases; in particular, we test the local spin density approximation, PBE, PBEsol, SOGGA, TPSS, revTPSS, and M06-L local density functionals and the HSE screened-exchange hybrid nonlocal density functional; and for a subset of 13 lattice constants we also compare the mean errors to those of the AM05 and WC local density functionals and the HISS and HSEsol nonlocal density functionals. The tests show that, of the ten functionals tested against all 65 data, the SOGGA, PBEsol, and HSE functionals are the most accurate for lattice constants, whereas the HSE, M11-L, and M06-L density functionals are the most accurate for bandgaps. However, the SOGGA11 density functional is the most accurate generalized gradient approximation for bandgaps.