84% animate-it

Code Review | Animate It!

WordPress plugin Animate It! scored84%from 54 tests.

About plugin

  • Plugin page: animate-it
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Feb 23, 2023
  • Number of updates: 125
  • Update frequency: every 24.7 days
  • Top authors: eleopard (100%)

Code review

54 tests

User reviews

125 reviews

Install metrics

30,000+ active /631,810 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 gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▲0.68ms] Passed 4 tests

An overview of server-side resources used by Animate It!
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3851.70 ▲13.65
Dashboard /wp-admin3.64 ▲0.3451.46 ▼1.49
Posts /wp-admin/edit.php3.75 ▲0.4046.77 ▼2.87
Add New Post /wp-admin/post-new.php6.22 ▲0.3495.31 ▲3.48
Media Library /wp-admin/upload.php3.56 ▲0.3337.16 ▲3.58
Animate It! /wp-admin/options-general.php?page=animate-it/edsanimate.php3.5333.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 13 new options
New WordPress options
eds_custom_css
eds_enable_on_phone
eds_animate_it_version
eds_enable_on_tab
widget_theysaidso_widget
can_compress_scripts
db_upgraded
eds_hide_overflow_x
widget_recent-posts
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Animate It!
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲17013.59 ▼0.787.20 ▲5.4742.55 ▼5.34
Dashboard /wp-admin2,215 ▲304.80 ▼1.0299.36 ▼4.5141.02 ▲0.14
Posts /wp-admin/edit.php2,098 ▲92.02 ▼0.1038.18 ▼2.8334.93 ▼4.24
Add New Post /wp-admin/post-new.php6,598 ▲5,05629.17 ▲10.82910.60 ▲298.5058.19 ▲2.33
Media Library /wp-admin/upload.php1,388 ▲64.40 ▲0.17103.00 ▲3.6743.83 ▼2.06
Animate It! /wp-admin/options-general.php?page=animate-it/edsanimate.php9602.1830.2433.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/animate-it/assets/helper/edsanimate-tinymce-popup.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: iteration, entry exit, animatecss, jquery, css3 animation...

animate-it/edsanimate.php 85% from 13 tests

The main PHP script in "Animate It!" version 3.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("animate-it.php" instead of "edsanimate.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,170 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS5821584,797
PHP74049151,957
PO File114621,0781,122
JavaScript76511283
JSON110011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity74.67
▷ Minimum class complexity4.00
▷ Maximum class complexity139.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods63
▷ Static methods914.29%
▷ Public methods6095.24%
▷ Protected methods23.17%
▷ Private methods11.59%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/badge.png4.91KB2.63KB▼ 46.45%
assets/images/edsanimate.png1.60KB0.70KB▼ 56.38%
assets/images/corona-plugin-banner.png13.66KB12.93KB▼ 5.35%