73% animategl

Code Review | AnimateGL Animations for WordPress - Elementor & Gutenberg Blocks Animations

WordPress plugin AnimateGL Animations for WordPress - Elementor & Gutenberg Blocks Animations scored73%from 54 tests.

About plugin

  • Plugin page: animategl
  • Plugin version: 1.4.23
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 31, 2023
  • Latest release: Aug 17, 2023
  • Number of updates: 235
  • Update frequency: every 0.8 days
  • Top authors: creativeinteractivemedia (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /9,978 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲5.32MB] [CPU: ▲23.47ms] 75% from 4 tests

This is a short check of server-side resources used by AnimateGL Animations for WordPress - Elementor & Gutenberg Blocks Animations
Please fix the following
  • Extra RAM: Extra memory usage should kept under 5MB (currently 5.32MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.16 ▲5.7065.43 ▲23.37
Dashboard /wp-admin9.18 ▲5.8772.13 ▲17.65
Posts /wp-admin/edit.php9.18 ▲5.8281.96 ▲36.68
Add New Post /wp-admin/post-new.php9.77 ▲3.89130.40 ▲26.65
Media Library /wp-admin/upload.php9.18 ▲5.9565.11 ▲26.21
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius9.1858.99

Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 202 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
fs_accounts
fs_debug_mode
fs_active_plugins
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

AnimateGL Animations for WordPress - Elementor & Gutenberg Blocks Animations: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.13 ▼0.2568.39 ▲66.6128.16 ▼14.25
Dashboard /wp-admin2,231 ▲515.61 ▼0.1192.75 ▼2.5045.51 ▲4.69
Posts /wp-admin/edit.php2,134 ▲342.01 ▼0.0041.84 ▲3.5036.49 ▼0.16
Add New Post /wp-admin/post-new.php1,561 ▲1623.79 ▲0.65650.12 ▲11.9356.53 ▼11.03
Media Library /wp-admin/upload.php1,436 ▲364.17 ▼0.06100.73 ▼11.1344.32 ▼1.96
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,0851.8424.1527.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/animategl/freemius/includes/class-freemius.php+8486
    Undefined property: stdClass::$plugins
  • Zombie WordPress options detected upon uninstall: 9 options
    • fs_active_plugins
    • fs_debug_mode
    • db_upgraded
    • theysaidso_admin_options
    • fs_accounts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/animategl/includes/agl_admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/animategl/includes/agl_addons.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #7 in animategl/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
You can look at the official readme.txt

animategl/animate-gl.php 92% from 13 tests

The main PHP script in "AnimateGL Animations for WordPress - Elementor & Gutenberg Blocks Animations" version 1.4.23 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("animategl.php" instead of "animate-gl.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin34,411 lines of code in 153 files:
LanguageFilesBlank linesComment linesLines of code
PHP1248,08017,22933,467
JavaScript1113384531
Markdown1680214
CSS16373188
SVG10011

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity89.64
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,273
▷ Static methods19915.63%
▷ Public methods88269.29%
▷ Protected methods191.49%
▷ Private methods37229.22%
Functions102
▷ Named functions9997.06%
▷ Anonymous functions32.94%
Constants147
▷ Global constants10068.03%
▷ Class constants4731.97%
▷ Public constants47100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.16MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) freemius/assets/img/plugin-icon.png16.63KB0.00KB▼ 100.00%
(invalid) freemius/assets/img/theme-icon.png20.19KB0.00KB▼ 100.00%
img/logo.png64.87KB14.31KB▼ 77.94%
img/logo_small.png59.28KB12.84KB▼ 78.33%