84% am-lottieplayer

Code Review | AM LottiePlayer – Vector animations for WordPress

WordPress plugin AM LottiePlayer – Vector animations for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: am-lottieplayer
  • Plugin version: 2.5.17
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4
  • WordPress version: 6.3.1
  • First release: Dec 12, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 96
  • Update frequency: every 3.7 days
  • Top authors: johanaarstein (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /3,537 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.77ms] Passed 4 tests

Analyzing server-side resources used by AM LottiePlayer – Vector animations for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1736.00 ▼0.27
Dashboard /wp-admin3.47 ▲0.1654.65 ▲10.79
Posts /wp-admin/edit.php3.58 ▲0.2245.56 ▼0.04
Add New Post /wp-admin/post-new.php6.06 ▲0.1787.84 ▼4.08
Media Library /wp-admin/upload.php3.51 ▲0.2837.01 ▲1.31

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 54 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 AM LottiePlayer – Vector animations for WordPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6313.93 ▼0.362.24 ▲0.5040.80 ▼9.19
Dashboard /wp-admin2,205 ▲255.30 ▼0.23104.15 ▲7.3439.70 ▼3.90
Posts /wp-admin/edit.php2,110 ▲72.62 ▲0.6245.15 ▲2.0131.04 ▼7.11
Add New Post /wp-admin/post-new.php6,209 ▲4,67319.61 ▼3.44955.93 ▲267.0238.17 ▼19.65
Media Library /wp-admin/upload.php1,474 ▲745.07 ▲0.87112.83 ▲15.0244.07 ▼1.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/am-lottieplayer/includes/flatsome/visibility.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

am-lottieplayer/am-lottieplayer.php 92% from 13 tests

The main PHP script in "AM LottiePlayer – Vector animations for WordPress" version 2.5.17 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 164 characters long)

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
Success! There were no dangerous files found in this plugin3,978 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity15.30
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
▷ Static methods35.36%
▷ Public methods4783.93%
▷ Protected methods610.71%
▷ Private methods35.36%
▷ Named functions1482.35%
▷ Anonymous functions317.65%
▷ Global constants4100.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