A function $f:X\to X$ on a group $X$ is called a polynomial if there exist $n\in\mathbb N=\{1,2,3,\dots\}$ and elements $a_0,a_1,\dots,a_n\in X$ such that $f(x)=a_0xa_1x\cdots xa_n$ for all $x\in X$. The smallest possible number $n$ in this representation is called the degree of the polynomial $f$ and is denoted by $\deg(f)$.
Let $\mathrm{Poly}(X)$ be the set of all polynomials on a group $X$.
In fact, $\mathrm{Poly}(X)$ is a submonoid of the monoid $X^X$ of all self-maps of $X$, endowed with the operation of composition of functions.
So, $|\mathrm{Poly}(X)|\le|X^X|=|X|^{|X|}$.
If the group $X$ is commutative, then each polynomial is of the form $f(x)=ax^n$ for some $a\in X$ and $n\in\mathbb N$. This implies that the number of semigroup polynomials on a finite Abelian group $X$ is equal to $|X|\cdot\exp(X)\le |X|^2$ where $\exp(X)=\min\{n\in\mathbb N:\forall x\in X\; (x^n=1)\}$.
Question 1. Is any reasonable upper bound on the number of polynomials on a finite group $X$? For example, is $|\mathrm{Poly}(X)|=o(|X|^{|X|})$?
Each polynomial $f:X\to X$ on a finite Abelian group $X$ has degree $\deg(f)\le\exp(X)$.
Question 2. Is $\deg(f)\le\exp(X)$ for any polynomial $f:X\to X$ on a finite group $X$?
Remark 2. The affirmative answer to Question 2 would imply that $$|\mathrm{Poly}(X)|\le \sum_{n=1}^{\exp(X)}|X|^{k+1}=\frac{|X|^{\exp(X)+2}-|X|^2}{|X|-1}.$$
Remark 3. Finite groups $X$ with $|\mathrm{Poly}(X)|=|X|\cdot\exp(X)$ are characterized in the following theorem.
Theorem. A finite group $X$ has $|\mathrm{Poly}(X)|=|X|\cdot\exp(X)$ if and only if $X$ is either commutative or is isomorphic to $Q_8\times A$ for some nontrivial commutative group $A$ of odd order.
Proof. To prove the ``if'' part, assume that $X$ is either commutative or $X$ is isomorphic to $Q_8\times A$ for some nontrivial commutative group $A$ of odd order. If $X$ is commutative, then the equality $|\mathrm{Poly}(X)|=|X|\cdot\exp(X)$ is clear.
Now assume that $X=Q_8\times A$ for some nontrivial commutative group $A$ of odd order. GAP-calculations of Peter Taylor show that the group $Q_8$ has exactly 32 polynomials of each degree $k\in\{1,2,3,4\}$. This implies that $$|\mathrm{Poly}(Q_8\times A)|=32\cdot|\mathrm{Poly}(A)|=32\cdot |A|\cdot\exp(A)=4\cdot|X|\cdot\exp(A)=|X|\cdot\exp(X).$$
To prove the ``only if'' part, assume that $X$ is a finite non-commutative group with $|\mathrm{Poly}(X)|=|X|\cdot\exp(X)$. For every $a\in X$ and $n\in\mathbb N$, consider the polynomial $p_{a,n}(x)=ax^n$. The definition of $\exp(X)$ implies that the set $\mathrm{Pol}(X):=\{p_{a,n}:a\in X,\;1\le n\le \exp(X)\}$ has cardinality $|X|\cdot\exp(X)$ and hence coincides with the set $\mathrm{Poly}(X)$. So, for any $a\in X$ there exists $n\le\exp(X)$ such that $axa^{-1}=x^n$ for all $x\in X$. This implies that every subgroup of $X$ is normal, so $X$ is a Dedekind group. By the classical Dedekind result, $X$ is isomorphic to the product $Q_8\times A\times B$ where $A$ is a Abelian group of odd order and $B$ is a Boolean group, i.e., a group of exponent $\exp(B)\le 2$.
If the group $A$ and $B$ is trivial, then $|\mathrm{Poly}(X)|=|\mathrm{Poly}(Q_8)|=128\ne |X|\cdot\exp(X)=32$.
Next, assume that the group $A$ is trivial and $B$ is not trivial. Then $|\mathrm{Poly}(B)|=|\{a,ax:a\in B\}|=2|B|$. GAP-calculations of Peter Taylor show that the group $Q_8$ has exactly 32 polynomials of each degree $k\in\{1,2,3,4\}$. In particular, $Q_8$ has exactly 64 polynomials of even degree and 64 polynomials of odd degree. This implies that $|\mathrm{Poly}(X)|=64\cdot 2|B|=16|Q_8\times B|=16|X|\ne 4|X|=|X|\cdot\exp(X)=|\mathrm{Poly}(X)|$. This contradiction shows that the group $A$ is nontrivial.
Taking into account that the group $Q_8$ has exactly 32 polynomials of each degree $k\in\{1,2,3,4\}$, we conclude that $$|X|\cdot\exp(X)=|\mathrm{Poly}(X)|=|\mathrm{Poly}(Q_8\times A\times B|=32\times|\mathrm{Poly}(A\times B)|=32\times |A\times B|\times \exp(A\times B)=4\times|Q_8\times A\times B|\times \exp(A\times B)=4\cdot |X|\cdot\exp(A\times B)$$ and hence $\exp(Q_8\times A\times B)=\exp(X)=4\exp(A\times B)$. Since $\exp(Q_8\times A\times B)=4\exp(A),$ this implies that the Boolean group $B$ is trivial and hence $X=Q_8\times A$. $\square$