90% animations-for-blocks

Code Review | Animations for Blocks

WordPress plugin Animations for Blocks scored90%from 54 tests.

About plugin

  • Plugin page: animations-for-bl...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2021
  • Latest release: Jul 16, 2023
  • Number of updates: 16
  • Update frequency: every 43.6 days
  • Top authors: websevendev (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /10,132 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Animations for Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.82 ▲0.25
Dashboard /wp-admin3.33 ▼0.0244.54 ▼20.09
Posts /wp-admin/edit.php3.38 ▲0.0247.43 ▼0.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.42 ▼20.45
Media Library /wp-admin/upload.php3.25 ▲0.0235.07 ▲0.94

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Animations for Blocks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.62 ▼0.767.06 ▲5.1144.23 ▼3.38
Dashboard /wp-admin2,209 ▲185.89 ▼0.00107.71 ▲6.1937.83 ▼5.51
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0440.72 ▲5.3135.67 ▲1.53
Add New Post /wp-admin/post-new.php6,355 ▲4,83728.03 ▲4.93857.17 ▲202.0959.30 ▲1.03
Media Library /wp-admin/upload.php1,388 ▲64.23 ▼0.0096.10 ▼0.5843.93 ▲4.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
10 plugin tags: flip, animation, move, scroll, fade...

animations-for-blocks/animations-for-blocks.php Passed 13 tests

The main PHP script in "Animations for Blocks" version 1.1.2 is automatically included on every request by WordPress
55 characters long description:
Allows to add animations to Gutenberg blocks on scroll.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin264 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP47481257
CSS2004
JavaScript3003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
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
Namespaces1
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
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
There are no PNG files in this plugin