72% animate-everything

Code Review | WordPress Animation Plugin - Animated Everything

WordPress plugin WordPress Animation Plugin - Animated Everything scored 72% from 54 tests.

About plugin

  • Plugin page: animate-everything
  • Plugin version: 1.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.5
  • WordPress version: 5.9.2
  • First release: Apr 12, 2018
  • Latest release: May 19, 2018
  • Number of updates: 37
  • Update frequency: every 1.0 days
  • Top authors: galoover (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 2,643 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.31MB] [CPU: ▼289.95ms] Passed 4 tests

This is a short check of server-side resources used by WordPress Animation Plugin - Animated Everything
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /7.17 ▲3.6676.71 ▲23.07
Dashboard /wp-admin7.19 ▲3.7953.48 ▲17.04
Posts /wp-admin/edit.php7.19 ▲3.5538.52 ▼1.10
Add New Post /wp-admin/post-new.php9.21 ▲2.2493.44 ▼1,186.54
Media Library /wp-admin/upload.php7.19 ▲3.9036.44 ▲10.82
Freemius Debug [v.2.0.1] /wp-admin/admin.php?page=freemius7.1946.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 218 new files
Database: no new tables, 5 new options
New WordPress options
fs_accounts
galoover_ae_loading_page_options
fs_api_cache
fs_active_plugins
fs_debug_mode

Browser metrics Passed 4 tests

A check of browser resources used by WordPress Animation Plugin - Animated Everything
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,999 ▲27716.36 ▲0.7212.55 ▲6.366.38 ▲4.11
Dashboard /wp-admin2,941 ▲886.17 ▼0.00122.44 ▼2.43175.44 ▲14.33
Posts /wp-admin/edit.php2,722 ▲313.38 ▲0.02105.06 ▲39.51173.23 ▲28.72
Add New Post /wp-admin/post-new.php1,799 ▲13822.80 ▲0.42453.97 ▲24.05201.31 ▼7.12
Media Library /wp-admin/upload.php1,747 ▲465.52 ▲0.06147.06 ▲0.81214.02 ▲6.55
Freemius Debug [v.2.0.1] /wp-admin/admin.php?page=freemius1,4602.6655.97132.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 5 options in the database
    • fs_accounts
    • fs_debug_mode
    • fs_active_plugins
    • fs_api_cache
    • galoover_ae_loading_page_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Warning in wp-content/plugins/animate-everything/admin/admin-assets.php+27
    Use of undefined constant REQUEST_URI - assumed 'REQUEST_URI' (this will throw an Error in a future version of PHP)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/animate-everything/freemius/templates/ajax-loader.php
  • 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/animate-everything/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/animate-everything/freemius/templates/account/partials/addon.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/animate-everything/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/animate-everything/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animate-everything/admin/admin-view.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animate-everything/admin/admin-assets.php:23
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/animate-everything/freemius/templates/account/partials/addon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animate-everything/function.php:2
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/animate-everything/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/animate-everything/freemius/templates/account/partials/addon.php on line 7

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

animate-everything/animated.php 92% from 13 tests

This is the main PHP file of "WordPress Animation Plugin - Animated Everything" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("animate-everything.php" instead of "animated.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin37,728 lines of code in 168 files:
LanguageFilesBlank linesComment linesLines of code
PHP1025,80313,45226,412
PO File73,4223,8587,476
Sass23377772,357
CSS17195771,053
JavaScript123467206
Markdown1610192
JSON10027
SVG5005

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
  • Class cyclomatic complexity should be reduced to less than 1000 (currently 2,092)
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity69.84
▷ Minimum class complexity1.00
▷ Maximum class complexity2,092.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity82.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes43
▷ Abstract classes24.65%
▷ Concrete classes4195.35%
▷ Final classes00.00%
Methods973
▷ Static methods15015.42%
▷ Public methods68270.09%
▷ Protected methods151.54%
▷ Private methods27628.37%
Functions123
▷ Named functions123100.00%
▷ Anonymous functions00.00%
Constants109
▷ Global constants8981.65%
▷ Class constants2018.35%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon1.png4.12KB1.61KB▼ 60.94%
assets/img/icon2.png4.12KB1.61KB▼ 60.99%
freemius/assets/img/animated-anything.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/img/hover-1.png10.44KB4.54KB▼ 56.56%