73% 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 scored73%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: 6.3.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

30+ active /878 total downloads

Benchmarks

Plugin footprint 65% 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.06MB] [CPU: ▼4.99ms] Passed 4 tests

Server-side resources used by UE Tracker - UTM Track and Analyze Leads For Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.45 ▲0.39
Dashboard /wp-admin3.36 ▲0.0646.83 ▼0.59
Posts /wp-admin/edit.php3.41 ▲0.0546.93 ▼7.08
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.99 ▼12.68
Media Library /wp-admin/upload.php3.29 ▲0.0643.92 ▲11.29

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, 6 new options
New tables
wp_utm_builder
wp_collects
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

UE Tracker - UTM Track and Analyze Leads For Elementor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲16918.27 ▲3.971.91 ▲0.0629.39 ▼17.20
Dashboard /wp-admin2,306 ▲1188.04 ▲2.24154.89 ▲37.39105.77 ▲64.95
Posts /wp-admin/edit.php2,206 ▲1205.23 ▲3.1869.05 ▲31.1654.98 ▲15.83
Add New Post /wp-admin/post-new.php1,778 ▲25822.60 ▼0.57723.90 ▲93.9240.70 ▼11.52
Media Library /wp-admin/upload.php1,503 ▲1156.89 ▲2.79130.51 ▲33.1093.27 ▲51.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_collects
    • wp_utm_builder
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > 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 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
    • > 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

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
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
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ue-tracker-utm-track-and-analyze-leads-for-elementor.php" instead of "ue-traker.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: Please keep the plugin description shorter than 140 characters (currently 385 characters long)
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected4,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

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
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

PNG files should be compressed to save space and minimize bandwidth usage
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%