how can I test quality of sbox? I have 11 sboxes, I want to test them and find the best one. How can I do that, I found several criterions for that but I could not understand.
I'd advise the result of Daemen and Rijmen on the matter called the wide-trail design strategy that has been used to construct the current AES.
Shortly you want s-boxes that have:

High algebraic degree

If you have the ANF of the Boolean function induced by your permutation which is a polynomial $\mathbb{F}_2[x_0,...,x_{n-1}]/(x_0^2 - x_0,..., x_{n-1}^2 - x_{n-1})$ then the algebraic degree is the number of variables in the largest product term of the function’s ANF having a non-zero coefficient.

Balancedness

Let $F$ be a function from $\mathbb{F}_n^2$ into $\mathbb{F}_n^2$. $F$ is balanced if it takes every value of the range exactly once.

High Nonlinearity

The aggregated nonlinearity of your S-box is the minimum nonlinearity of all of it's component functions which you can get with the Walsh-Hadamard transform

Low Differential uniformity

Define the difference distribution of any a function with respect to $a$ and $b$ elements from $\mathbb{F}_2^n$ as $DF(a,b) = \{x∈F_2^n:F(x)⊕F(x⊕a) =b\}.$
Then the differential uniformity is the maximum value got with this function using any pair of $a$ and $b$.

High differential branch number

this is calculated by $min_{x\neq y}wt(x⊕y) +wt(F(x)⊕F(y))$ where $wt$ is the hamming weight.

Note that these are still a subset of all tricks used in literature used to argue about s-boxes but the wide-trail strategy is currently still a good pivot point.
There are very useful tools in the SageMath library to easily check these properties: http://doc.sagemath.org/html/en/reference/cryptography/sage/crypto/sbox.html