90% background-animation-blocks

Code Review | Background animation blocks

WordPress plugin Background animation blocks scored90%from 54 tests.

About plugin

  • Plugin page: background-animat...
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2021
  • Latest release: May 16, 2022
  • Number of updates: 17
  • Update frequency: every 13.9 days
  • Top authors: webarea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /3,090 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.00MB] [CPU: ▼5.26ms] Passed 4 tests

Server-side resources used by Background animation blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.73 ▼3.49
Dashboard /wp-admin3.31 ▲0.0144.94 ▼7.99
Posts /wp-admin/edit.php3.36 ▲0.0146.45 ▲1.88
Add New Post /wp-admin/post-new.php5.87 ▼0.0283.04 ▼11.45
Media Library /wp-admin/upload.php3.23 ▲0.0136.69 ▲2.47

Server storage [IO: ▲0.14MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Background animation blocks
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7913.19 ▼1.561.73 ▼0.1139.49 ▼6.82
Dashboard /wp-admin2,206 ▲185.85 ▼0.02101.19 ▼8.0438.63 ▼0.74
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0338.80 ▲1.9434.61 ▲3.56
Add New Post /wp-admin/post-new.php6,434 ▲4,89920.77 ▼2.26907.13 ▲314.3938.58 ▼12.12
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.06100.11 ▼0.9841.95 ▼2.46

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: editor, blocks, block, elementor, gutenberg...

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

The main PHP script in "Background animation blocks" version 2.1.5 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin2,456 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS11491,151
PHP135770719
JavaScript815458586

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 images were found in this plugin