94% advanced-animation

Code Review | Advanced Block Animation - Block Parallax and Custom Gutenberg Animation

WordPress plugin Advanced Block Animation - Block Parallax and Custom Gutenberg Animation scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-animation
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.0
  • WordPress version: 5.9.2
  • First release: Jan 9, 2022
  • Latest release: Apr 4, 2022
  • Number of updates: 31
  • Update frequency: every 3.7 days
  • Top authors: syarifstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 572 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼288.76ms] Passed 4 tests

Analyzing server-side resources used by Advanced Block Animation - Block Parallax and Custom Gutenberg Animation
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1068.88 ▼12.82
Dashboard /wp-admin3.47 ▲0.0637.06 ▼10.18
Posts /wp-admin/edit.php3.69 ▲0.0480.99 ▲29.57
Add New Post /wp-admin/post-new.php6.89 ▼0.08128.73 ▼1,131.94
Media Library /wp-admin/upload.php3.34 ▲0.0534.20 ▼0.11

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Block Animation - Block Parallax and Custom Gutenberg Animation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,838 ▲9016.03 ▲0.6413.18 ▲3.003.54 ▼0.68
Dashboard /wp-admin2,961 ▲386.40 ▼0.03187.04 ▼21.32189.71 ▼42.03
Posts /wp-admin/edit.php2,721 ▲33.43 ▲0.01120.13 ▲30.15238.35 ▲38.13
Add New Post /wp-admin/post-new.php1,703 ▼4020.77 ▼0.09683.93 ▲14.13241.56 ▼8.74
Media Library /wp-admin/upload.php1,730 ▼05.76 ▲0.05199.68 ▲8.15239.21 ▼33.52

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-animation/advanced-animation.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: block animation, parallax, gutenberg animation, parallax animation, animation

advanced-animation/advanced-animation.php Passed 13 tests

The primary PHP file in "Advanced Block Animation - Block Parallax and Custom Gutenberg Animation" version 1.2.2 is used by WordPress to initiate all plugin functionality
39 characters long description:
Advanced animation for gutenberg block.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,094 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS27881297,907
PHP32521150
JSON10035
JavaScript2002

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.69
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%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants1
▷ Global constants1100.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