90% css-animation-retrigger-for-wpbakery

Code Review | CSS Animation Retrigger for WPBakery

WordPress plugin CSS Animation Retrigger for WPBakery scored90%from 54 tests.

About plugin

  • Plugin page: css-animation-ret...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Jul 13, 2022
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: WPExplorer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by CSS Animation Retrigger for WPBakery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0145.69 ▲1.66
Dashboard /wp-admin3.57 ▲0.0148.98 ▲0.11
Posts /wp-admin/edit.php3.69 ▲0.0150.73 ▼3.68
Add New Post /wp-admin/post-new.php6.15 ▲0.0188.44 ▼13.61
Media Library /wp-admin/upload.php3.50 ▲0.0140.31 ▲0.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by CSS Animation Retrigger for WPBakery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.60 ▼0.141.77 ▼0.3143.92 ▼6.77
Dashboard /wp-admin2,198 ▲185.63 ▼0.0384.93 ▼4.7540.11 ▼3.21
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0334.34 ▼4.2538.58 ▼1.45
Add New Post /wp-admin/post-new.php1,549 ▲423.32 ▼0.24642.70 ▼56.1863.00 ▲8.31
Media Library /wp-admin/upload.php1,397 ▼04.27 ▲0.07103.10 ▼11.2141.95 ▼4.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
No output text or server-side errors detected 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)
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
3 plugin tags: css animation, animations, wpbakery

css-animation-retrigger-for-wpbakery/css-animation-retrigger-for-wpbakery.php Passed 13 tests

Analyzing the main PHP file in "CSS Animation Retrigger for WPBakery" version 1.0.0
82 characters long description:
Retriggers the WPBakery CSS animations whenever the element is scrolled into view.

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
Success! There were no dangerous files found in this plugin65 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122935
JavaScript14030

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods4
▷ Static methods375.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin