90% blocks-animation

Code Review | Blocks Animation: CSS Animations for Gutenberg Blocks

WordPress plugin Blocks Animation: CSS Animations for Gutenberg Blocks scored90%from 54 tests.

About plugin

  • Plugin page: blocks-animation
  • Plugin version: 2.5.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.4
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 62
  • Update frequency: every 26.9 days
  • Top authors: themeisle (88.71%)hardeepasrani (12.9%)

Code review

54 tests

User reviews

29 reviews

Install metrics

40,000+ active /573,195 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.91ms] Passed 4 tests

Analyzing server-side resources used by Blocks Animation: CSS Animations for Gutenberg Blocks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.85 ▼1.31
Dashboard /wp-admin3.36 ▲0.0146.38 ▼15.71
Posts /wp-admin/edit.php3.41 ▲0.0448.67 ▲3.22
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.42 ▼7.48
Media Library /wp-admin/upload.php3.28 ▲0.0435.01 ▲0.87

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Blocks Animation: CSS Animations for Gutenberg Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.22 ▼0.131.79 ▲0.1043.56 ▲1.69
Dashboard /wp-admin2,195 ▲185.62 ▲0.0395.71 ▲3.6243.99 ▲2.36
Posts /wp-admin/edit.php2,103 ▲31.96 ▼0.0640.88 ▲2.4734.19 ▼2.37
Add New Post /wp-admin/post-new.php1,538 ▲1223.05 ▲0.29687.73 ▲26.1355.84 ▲0.60
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0498.76 ▲3.0444.03 ▲2.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% 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
9 plugin tags: block animations, animation, animations, gutenberg, block editor...

blocks-animation/blocks-animation.php 92% from 13 tests

The principal PHP file in "Blocks Animation: CSS Animations for Gutenberg Blocks" v. 2.5.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path folder does not exist ("/languages")

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 detected4,704 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
JSON58004,513
PHP642103167
Markdown110017
JavaScript4004
CSS1263

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.36
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/animation/images/typing-animation.d84cccd1.png58.81KB22.46KB▼ 61.82%
build/animation/images/count-animation.1151d25d.png33.99KB9.04KB▼ 73.40%