83% liza-spotify-widget-for-elementor

Code Review | Liza Spotify Widget For Elementor

WordPress plugin Liza Spotify Widget For Elementor scored83%from 54 tests.

About plugin

  • Plugin page: liza-spotify-widg...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.0
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Mar 30, 2023
  • Number of updates: 18
  • Update frequency: every 36.2 days
  • Top authors: fallentroj (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /9,612 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Liza Spotify Widget For Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.90 ▼12.27
Dashboard /wp-admin3.34 ▼0.0151.17 ▼30.48
Posts /wp-admin/edit.php3.38 ▲0.0355.15 ▲4.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0391.20 ▼59.15
Media Library /wp-admin/upload.php3.26 ▲0.0338.83 ▲1.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Liza Spotify Widget For Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.28 ▼0.261.87 ▲0.1243.77 ▲1.54
Dashboard /wp-admin2,258 ▲845.56 ▼0.0482.25 ▼11.5841.24 ▼2.76
Posts /wp-admin/edit.php2,125 ▲252.03 ▲0.0435.06 ▼4.2736.42 ▲3.63
Add New Post /wp-admin/post-new.php1,544 ▲823.37 ▲5.22662.53 ▼14.4061.46 ▼5.69
Media Library /wp-admin/upload.php1,422 ▲224.19 ▲0.04107.13 ▼2.6845.00 ▼0.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/liza-spotify-widget-for-elementor/widgets/spotify-widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

liza-spotify-widget-for-elementor/liza-spotify-widget.php 85% from 13 tests

This is the main PHP file of "Liza Spotify Widget For Elementor" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("liza-spotify-widget-for-elementor.php" instead of "liza-spotify-widget.php")
  • 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 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin203 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP248111202
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.50
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods16.25%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin