84% animate-in-view

Code Review | Animate In View

WordPress plugin Animate In View scored84%from 54 tests.

About plugin

  • Plugin page: animate-in-view
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Apr 26, 2022
  • Latest release: Jul 21, 2023
  • Number of updates: 16
  • Update frequency: every 28.2 days
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /5,128 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.86ms] Passed 4 tests

An overview of server-side resources used by Animate In View
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.97 ▼5.68
Dashboard /wp-admin3.32 ▲0.0144.47 ▼2.98
Posts /wp-admin/edit.php3.37 ▲0.0146.92 ▲0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.44 ▼2.67
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▼0.09

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Animate In View
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.81 ▼0.571.68 ▼0.1144.12 ▲0.66
Dashboard /wp-admin2,203 ▲125.83 ▼0.08104.11 ▼2.0840.31 ▼4.88
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0235.91 ▼2.0632.35 ▼4.81
Add New Post /wp-admin/post-new.php6,417 ▲4,89528.51 ▲5.22912.27 ▲248.1562.95 ▼0.28
Media Library /wp-admin/upload.php1,382 ▼04.24 ▲0.0996.08 ▲1.1040.24 ▼1.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/animate-in-view/animate-in-view.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: intersection, slide-in, screen, fade, block...

animate-in-view/animate-in-view.php Passed 13 tests

The entry point to "Animate In View" version 1.2.2 is a PHP file that has certain tags in its header comment area
94 characters long description:
This block will animate in as soon as it enters the viewport of the browser window. That's it.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin651 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
TypeScript5913279
JSON500167
JavaScript4310124
PHP221442
CSS40127
Markdown15012

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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
No PNG images were found in this plugin