83% ue-tracker-utm-track-and-analyze-leads-for-elementor

Code Review | UE Tracker - UTM Track and Analyze Leads For Elementor

WordPress plugin UE Tracker - UTM Track and Analyze Leads For Elementor scored 83% from 54 tests.

About plugin

  • Plugin page: ue-tracker-utm-tr...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.3
  • WordPress version: 5.8.1
  • First release: Jan 2, 2020
  • Latest release: Jan 28, 2020
  • Number of updates: 21
  • Update frequency: every 1.6 days
  • Top authors: liorgem (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 581 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.02MB] [CPU: ▼147.76ms] Passed 4 tests

Analyzing server-side resources used by UE Tracker - UTM Track and Analyze Leads For Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0124.13 ▲2.22
Dashboard /wp-admin3.09 ▲0.0236.66 ▼10.77
Posts /wp-admin/edit.php3.14 ▲0.0330.08 ▼6.49
Add New Post /wp-admin/post-new.php5.45 ▲0.0172.58 ▼574.15
Media Library /wp-admin/upload.php3.03 ▲0.0323.60 ▲0.36

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: 2 new tables, no new options
New tables
wp_utm_builder
wp_collects

Browser metrics Passed 4 tests

An overview of browser requirements for UE Tracker - UTM Track and Analyze Leads For Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲14120.99 ▲5.119.68 ▲4.2279.90 ▲3.03
Dashboard /wp-admin3,052 ▲1569.12 ▲3.07174.75 ▲43.86201.91 ▲25.71
Posts /wp-admin/edit.php2,866 ▲1236.22 ▲2.9898.39 ▲32.29187.79 ▲43.47
Add New Post /wp-admin/post-new.php3,778 ▼2926.37 ▲7.97440.92 ▲15.05190.81 ▲24.41
Media Library /wp-admin/upload.php1,870 ▲1188.44 ▲2.87173.51 ▲29.52234.83 ▲58.61

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_utm_builder
    • wp_collects

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/ue-tracker-utm-track-and-analyze-leads-for-elementor/get_data.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ue-tracker-utm-track-and-analyze-leads-for-elementor/ue-traker.php:28
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ue-tracker-utm-track-and-analyze-leads-for-elementor/get_data.php on line 5

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)
No browser errors were detected

Optimizations

Plugin configuration 83% 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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
The official readme.txt is a good inspiration

ue-tracker-utm-track-and-analyze-leads-for-elementor/ue-traker.php 69% from 13 tests

The principal PHP file in "UE Tracker - UTM Track and Analyze Leads For Elementor" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ue-tracker-utm-track-and-analyze-leads-for-elementor.php" instead of "ue-traker.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 385 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,106 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS11338751,724
JavaScript93051,0231,184
PHP2142471,167
SVG12031

PHP code Passed 2 tests

A short review 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.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon.png0.23KB0.32KB0.00%