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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.42 ▼34.24
Dashboard /wp-admin2.05 ▼1.265.90 ▼43.31
Posts /wp-admin/edit.php2.05 ▼1.315.49 ▼37.20
Add New Post /wp-admin/post-new.php2.05 ▼3.845.39 ▼88.34
Media Library /wp-admin/upload.php2.05 ▼1.186.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13013.38 ▼0.869.43 ▲7.7941.39 ▼1.26
Dashboard /wp-admin2,214 ▲395.67 ▼0.0489.10 ▼23.4040.98 ▼2.83
Posts /wp-admin/edit.php2,119 ▲192.09 ▲0.1338.26 ▲1.6032.10 ▼2.61
Add New Post /wp-admin/post-new.php1,539 ▲1323.57 ▲0.40623.93 ▲9.9250.95 ▲2.50
Media Library /wp-admin/upload.php1,416 ▲194.17 ▼0.0194.44 ▼2.6340.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:
LanguageFilesBlank linesComment linesLines of code
PHP114019364
CSS25612172
JavaScript12027135

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 code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/logo.png22.13KB12.24KB▼ 44.67%
assets/logo-white.png22.13KB11.52KB▼ 47.96%
assets/STA-logo.png239.91KB294.98KB0.00%