90% animentor-lottie-bodymovin-elementor

Code Review | Animentor – Lottie & Bodymovin for Elementor

WordPress plugin Animentor – Lottie & Bodymovin for Elementor scored 90% from 54 tests.

About plugin

  • Plugin page: animentor-lottie-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Jan 29, 2021
  • Number of updates: 11
  • Update frequency: every 31.4 days
  • Top authors: overengineer (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

9,000+ active / 55,149 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Animentor – Lottie & Bodymovin for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.50 ▼1.49
Dashboard /wp-admin3.31 ▲0.0149.62 ▲0.71
Posts /wp-admin/edit.php3.36 ▲0.0045.05 ▲0.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.77 ▲0.67
Media Library /wp-admin/upload.php3.23 ▲0.0032.80 ▲0.42

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

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

Browser metrics Passed 4 tests

Animentor – Lottie & Bodymovin for Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.73 ▲0.491.84 ▲0.0145.11 ▲2.60
Dashboard /wp-admin2,227 ▲364.85 ▲0.02113.50 ▼7.7843.32 ▼4.50
Posts /wp-admin/edit.php2,106 ▲172.02 ▲0.0536.48 ▲1.7231.01 ▼3.52
Add New Post /wp-admin/post-new.php1,546 ▲1323.34 ▲0.24648.74 ▼25.1856.41 ▲4.80
Media Library /wp-admin/upload.php1,406 ▲244.22 ▲0.0695.30 ▼12.3042.92 ▼5.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP 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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: animations, animation, lottie, bodymovin, elementor

animentor-lottie-bodymovin-elementor/animentor-lottie-bodymovin-elementor.php Passed 13 tests

"Animentor – Lottie & Bodymovin for Elementor" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
64 characters long description:
An Elementor extension that adds a widget for Lottie animations.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected846 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4109190586
JavaScript21932116
Markdown1620116
SVG10028

PHP code Passed 2 tests

An overview 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.23
Average class complexity9.67
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods27
▷ Static methods13.70%
▷ Public methods1970.37%
▷ Protected methods27.41%
▷ Private methods622.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants450.00%
▷ Class constants450.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected