10% animate-wp-blocks

Code Review | Animate WP Blocks

WordPress plugin Animate WP Blocks scored10%from 54 tests.

About plugin

  • Plugin page: animate-wp-blocks
  • Plugin version: 2.0.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Feb 7, 2021
  • Latest release: Mar 13, 2021
  • Number of updates: 7
  • Update frequency: every 25.6 days
  • Top authors: dkress59 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,051 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/animate-wp-blocks/includes/admin-options-page.php+164
    syntax error, unexpected end of file

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

Server-side resources used by Animate WP Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.55 ▼4.17
Dashboard /wp-admin3.31 ▼0.0444.03 ▼22.28
Posts /wp-admin/edit.php3.36 ▲0.0045.92 ▼1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.98 ▼2.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.94 ▼0.09

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Animate WP Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.361.61 ▼0.2239.74 ▼11.70
Dashboard /wp-admin2,203 ▲155.81 ▲0.94103.38 ▲1.2041.60 ▼2.85
Posts /wp-admin/edit.php2,089 ▼01.99 ▲0.0238.63 ▼0.0033.96 ▼0.57
Add New Post /wp-admin/post-new.php1,533 ▲1923.15 ▲5.68648.54 ▼57.6459.77 ▲4.59
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0494.90 ▼23.3941.81 ▼2.22

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/animate-wp-blocks/includes/admin-options-page.php on line 164

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: block

animate-wp-blocks/animate-wp-blocks.php Passed 13 tests

The entry point to "Animate WP Blocks" version 2.0.2 is a PHP file that has certain tags in its header comment area
108 characters long description:
Add animation controls to each and every Gutenberg Block! Runs on Animate.css v4. Now with onScroll support!

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
No dangerous file extensions were detected535 lines of code in 10 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 cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG files were detected