89% animated-blocks

Code Review | Animated Blocks on Scroll

WordPress plugin Animated Blocks on Scroll scored89%from 54 tests.

About plugin

  • Plugin page: animated-blocks
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 28, 2018
  • Latest release: Oct 5, 2023
  • Number of updates: 52
  • Update frequency: every 37.6 days
  • Top authors: virgildia (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /14,439 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Animated Blocks on Scroll
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0239.51 ▼0.10
Dashboard /wp-admin3.31 ▲0.0146.49 ▼4.02
Posts /wp-admin/edit.php3.36 ▲0.0146.86 ▼0.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.13 ▼17.01
Media Library /wp-admin/upload.php3.24 ▲0.0134.33 ▼14.79

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Animated Blocks on Scroll: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6914.84 ▲0.451.73 ▼0.0642.83 ▼4.11
Dashboard /wp-admin2,203 ▲185.81 ▼0.05103.02 ▼3.9739.74 ▼5.15
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0435.26 ▼5.5632.68 ▼2.21
Add New Post /wp-admin/post-new.php6,256 ▲4,71423.86 ▲5.52859.83 ▲222.9868.66 ▲17.32
Media Library /wp-admin/upload.php1,388 ▲94.18 ▼0.1098.82 ▼2.1442.23 ▼0.33

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: A description for screenshot #3 is required in animated-blocks/assets to your readme.txt
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt might help

animated-blocks/plugin.php 92% from 13 tests

The main PHP file in "Animated Blocks on Scroll" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("animated-blocks.php" instead of "plugin.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 detected1,034 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin