10% scroll-triggered-animations

Code Review | Animator - Scroll Triggered Animations

WordPress plugin Animator - Scroll Triggered Animations scored10%from 54 tests.

About plugin

  • Plugin page: scroll-triggered-...
  • Plugin version: 3.0.11
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.4
  • WordPress version: 6.3.1
  • First release: May 16, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 157
  • Update frequency: every 10.5 days
  • Top authors: toastwebsites (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active /56,337 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/scroll-triggered-animations/frontend/init.php+2
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼50.77ms] Passed 4 tests

An overview of server-side resources used by Animator - Scroll Triggered Animations
Server-side resource usage in normal parameters
Page Memory (MB) CPU Time (ms)
Home / 2.03 ▼1.44 5.42 ▼34.24
Dashboard /wp-admin 2.05 ▼1.26 5.90 ▼43.31
Posts /wp-admin/edit.php 2.05 ▼1.31 5.49 ▼37.20
Add New Post /wp-admin/post-new.php 2.05 ▼3.84 5.39 ▼88.34
Media Library /wp-admin/upload.php 2.05 ▼1.18 6.66 ▼24.09

Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Animator - Scroll Triggered Animations
This plugin has a minimal impact on browser resources
Page Nodes Memory (MB) Script (ms) Layout (ms)
Home / 2,892 ▲130 13.38 ▼0.86 9.43 ▲7.79 41.39 ▼1.26
Dashboard /wp-admin 2,214 ▲39 5.67 ▼0.04 89.10 ▼23.40 40.98 ▼2.83
Posts /wp-admin/edit.php 2,119 ▲19 2.09 ▲0.13 38.26 ▲1.60 32.10 ▼2.61
Add New Post /wp-admin/post-new.php 1,539 ▲13 23.57 ▲0.40 623.93 ▲9.92 50.95 ▲2.50
Media Library /wp-admin/upload.php 1,416 ▲19 4.17 ▼0.01 94.44 ▼2.63 40.97 ▼1.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/scroll-triggered-animations/frontend/init.php+2
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/scroll-triggered-animations/backend/pages/visual-animations.php
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-triggered-animations/frontend/init.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-triggered-animations/backend/pages/hub.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-triggered-animations/backend/pages/custom-animations.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/scroll-triggered-animations/backend/pages/hub.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-triggered-animations/frontend/js.php:77
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-triggered-animations/backend/hooks-free.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-triggered-animations/backend/hooks-free.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scroll-triggered-animations/backend/hooks-free.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/scroll-triggered-animations/backend/pages/easy-animations.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: You can take inspiration from this readme.txt

scroll-triggered-animations/toaststa.php 92% from 13 tests

Analyzing the main PHP file in "Animator - Scroll Triggered Animations" version 3.0.11
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("scroll-triggered-animations.php" instead of "toaststa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected671 lines of code in 14 files:
Language Files Blank lines Comment lines Lines of code
PHP 11 40 19 364
CSS 2 56 12 172
JavaScript 1 20 27 135

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code 0.29
Average class complexity 0.00
▷ Minimum class complexity 0.00
▷ Maximum class complexity 0.00
Average method complexity 0.00
▷ Minimum method complexity 0.00
▷ Maximum method complexity 0.00
Code structure
Namespaces 0
Interfaces 0
Traits 0
Classes 0
▷ Abstract classes 0 0.00%
▷ Concrete classes 0 0.00%
▷ Final classes 0 0.00%
Methods 0
▷ Static methods 0 0.00%
▷ Public methods 0 0.00%
▷ Protected methods 0 0.00%
▷ Private methods 0 0.00%
Functions 9
▷ Named functions 9 100.00%
▷ Anonymous functions 0 0.00%
Constants 0
▷ Global constants 0 0.00%
▷ Class constants 0 0.00%
▷ Public constants 0 0.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.28MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
File Size - original Size - compressed Savings
assets/logo.png 22.13KB 12.24KB ▼ 44.67%
assets/logo-white.png 22.13KB 11.52KB ▼ 47.96%
assets/STA-logo.png 239.91KB 294.98KB 0.00%