89% events-tracker-for-elementor

Code Review | Events Tracker for Elementor

WordPress plugin Events Tracker for Elementor scored89%from 54 tests.

About plugin

  • Plugin page: events-tracker-fo...
  • Plugin version: 1.3.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2019
  • Latest release: Oct 21, 2023
  • Number of updates: 22
  • Update frequency: every 65.0 days
  • Top authors: mihdan (90.91%)wplagency (13.64%)

Code review

54 tests

User reviews

48 reviews

Install metrics

10,000+ active /89,595 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.51ms] Passed 4 tests

Server-side resources used by Events Tracker for Elementor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.52 ▼1.94
Dashboard /wp-admin3.36 ▲0.0646.56 ▼3.93
Posts /wp-admin/edit.php3.48 ▲0.1243.97 ▲0.15
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.03 ▼14.28
Media Library /wp-admin/upload.php3.29 ▲0.0634.69 ▼1.87

Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Events Tracker for Elementor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.38 ▼0.181.74 ▲0.0445.81 ▲0.04
Dashboard /wp-admin2,201 ▲275.61 ▲0.0193.05 ▼7.4443.09 ▲0.61
Posts /wp-admin/edit.php2,109 ▲122.01 ▲0.0234.69 ▼0.7031.51 ▼3.19
Add New Post /wp-admin/post-new.php1,537 ▲923.15 ▲0.11657.92 ▼13.3952.67 ▼4.58
Media Library /wp-admin/upload.php1,409 ▲154.19 ▲0.0195.91 ▲0.7741.89 ▼5.00

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Heading widget with link click events tracking with Google Analytics), #2 (Button widget click events tracking with Facebook), #3 (Form widget submit events tracking with Google Analytics), #4 (Events tracking with VK.com), #5 (Events and conversions tracking with Yandex Metrika), #6 (Tracking codes and pixels insertion)
You can look at the official readme.txt

events-tracker-for-elementor/events-tracker-for-elementor.php 92% from 13 tests

"Events Tracker for Elementor" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,780 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP152655921,629
JavaScript12225146
JSON1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.71
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods61
▷ Static methods2032.79%
▷ Public methods5895.08%
▷ Protected methods00.00%
▷ Private methods34.92%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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