79% utm-leads-tracker-lite

Code Review | UTM Leads Tracker - XLPlugins

WordPress plugin UTM Leads Tracker - XLPlugins scored79%from 54 tests.

About plugin

  • Plugin page: utm-leads-tracker...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: May 26, 2022
  • Number of updates: 10
  • Update frequency: every 172.2 days
  • Top authors: amans2k (90%)xlplugins (20%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /4,261 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

This is a short check of server-side resources used by UTM Leads Tracker - XLPlugins
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.90 ▼4.57
Dashboard /wp-admin3.32 ▲0.0249.03 ▼1.93
Posts /wp-admin/edit.php3.43 ▲0.0847.29 ▲1.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.16 ▼17.05
Media Library /wp-admin/upload.php3.24 ▲0.0237.51 ▼1.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: 2 new tables, 6 new options
New tables
wp_xlutmmeta
wp_xlutm
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

UTM Leads Tracker - XLPlugins: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.71 ▲0.081.59 ▼0.1343.41 ▼0.41
Dashboard /wp-admin2,200 ▲235.52 ▼0.1485.54 ▼7.8741.13 ▼2.36
Posts /wp-admin/edit.php2,099 ▲22.00 ▲0.0537.55 ▲1.2035.89 ▲0.97
Add New Post /wp-admin/post-new.php1,531 ▲123.29 ▲0.18639.82 ▼49.3955.27 ▼0.93
Media Library /wp-admin/upload.php1,399 ▼14.18 ▲0.09100.51 ▼13.6343.09 ▼4.95

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_xlutmmeta
    • wp_xlutm
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
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
Looking good! No server-side errors or output on direct access of PHP files

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: orders campaign tracking, xlplugins, woocommerce, utm tracking, utm tracker...

utm-leads-tracker-lite/utm-leads-tracker.php 85% from 13 tests

"UTM Leads Tracker - XLPlugins" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("utm-leads-tracker-lite.php" instead of "utm-leads-tracker.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,098 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP91491551,055
CSS10043

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity33.29
▷ Minimum class complexity2.00
▷ Maximum class complexity77.00
Average method complexity4.59
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes114.29%
▷ Concrete classes685.71%
▷ Final classes00.00%
Methods63
▷ Static methods1422.22%
▷ Public methods63100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin