67% email-tracker

Code Review | Email Tracker – Email Tracking Plugin to track Emails for Open and Email Links Click (Compatible with WooCommerce)

WordPress plugin Email Tracker – Email Tracking Plugin to track Emails for Open and Email Links Click (Compatible with WooCommerce) scored 67% from 54 tests.

About plugin

  • Plugin page: email-tracker
  • Plugin version: 5.3.5
  • PHP compatiblity: 5.6.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.8.1
  • First release: Nov 29, 2016
  • Latest release: Feb 16, 2022
  • Number of updates: 145
  • Update frequency: every 13.1 days
  • Top authors: pmbaldha (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

600+ active / 11,261 total downloads

Benchmarks

Plugin footprint 64% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.09MB] [CPU: ▼160.94ms] 75% from 4 tests

This is a short check of server-side resources used by Email Tracker – Email Tracking Plugin to track Emails for Open and Email Links Click (Compatible with WooCommerce)
Please take the time to fix the following items
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 5.09MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /8.55 ▲5.7149.78 ▲23.31
Dashboard /wp-admin8.57 ▲5.5061.12 ▲12.50
Posts /wp-admin/edit.php8.57 ▲5.4560.47 ▲14.03
Add New Post /wp-admin/post-new.php9.29 ▲3.84108.17 ▼693.60
Media Library /wp-admin/upload.php8.57 ▲5.5650.34 ▲23.40
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.5745.74

Server storage [IO: ▲213.67MB] [DB: ▲0.01MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Try to limit filesystem usage to 25MB (currently using 213.67MB)
Filesystem: 13,391 new files
Database: 4 new tables, 6 new options
New tables
wp_emtr_email
wp_emtr_track_email_link_master
wp_emtr_track_email_open_log
wp_emtr_track_email_link_click_log
New WordPress options
fs_active_plugins
fs_accounts
fs_gdpr
emtr_version
emtr_db_version
fs_debug_mode

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email Tracker – Email Tracking Plugin to track Emails for Open and Email Links Click (Compatible with WooCommerce)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,715 ▲6416.00 ▲0.345.00 ▼0.9374.19 ▼2.51
Dashboard /wp-admin2,979 ▲836.13 ▼0.02133.40 ▼25.16196.12 ▼85.42
Posts /wp-admin/edit.php2,791 ▲513.25 ▲0.0065.22 ▼12.88149.67 ▼38.77
Add New Post /wp-admin/post-new.php3,828 ▲1321.66 ▲2.55478.57 ▲40.77172.66 ▲9.58
Media Library /wp-admin/upload.php1,798 ▲465.46 ▼0.06141.65 ▲5.41202.16 ▲14.56
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,4732.4956.10111.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/email-tracker/libs/freemius/includes/class-freemius.php+8552
    Undefined property: stdClass::$plugins
  • This plugin does not fully uninstall, leaving 4 options in the database
    • fs_active_plugins
    • fs_debug_mode
    • fs_gdpr
    • fs_accounts

Smoke tests 50% from 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 0% 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 take a closer look at the following
  • 57× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.1/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.0/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.0/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.7/libs/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.0/libs/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.2.3/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.10/libs/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.3.1/libs/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/1.3.7/freemius/templates/ajax-loader.php
    • > /wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.6/freemius/templates/ajax-loader.php
  • 572× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.7/libs/freemius/templates/account/partials/addon.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.10/email-tracker-main.php:4
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.3.1/libs/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.6/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.13/libs/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/email-tracker/tags/5.3.0/email-tracker-main.php:4
    • > PHP Warning
      require_once(EMTR_PLUGIN_PATHet-functions.php): failed to open stream: No such file or directory in wp-content/plugins/email-tracker/tags/5.2.2/main.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.13/libs/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/email-tracker/tags/5.3.2/tags/5.2.6/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/email-tracker/tags/5.3.0/libs/freemius/templates/account/partials/addon.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: track, email-woocommerce-email, email-mail-email, read, open...

email-tracker/email-tracker.php Passed 13 tests

"Email Tracker – Email Tracking Plugin to track Emails for Open and Email Links Click (Compatible with WooCommerce)" version 5.3.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
105 characters long description:
Email Tracker is a WordPress plugin that lets you know if the emails you have sent have been read or not.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin147,669 lines of code in 684 files:
LanguageFilesBlank linesComment linesLines of code
PHP51126,31160,074113,002
PO File2712,63614,76327,527
Sass386101243,810
JavaScript223133181,843
HTML22770468
Markdown51130328
XML301303
JSON1100275
CSS4211475
YAML32038

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,907)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity59.00
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.35
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces12
Interfaces291
Traits0
Classes3,546
▷ Abstract classes1413.98%
▷ Concrete classes3,40596.02%
▷ Final classes1464.29%
Methods69,395
▷ Static methods10,50615.14%
▷ Public methods50,71273.08%
▷ Protected methods9131.32%
▷ Private methods17,77025.61%
Functions6,795
▷ Named functions6,78299.81%
▷ Anonymous functions130.19%
Constants7,209
▷ Global constants5,83480.93%
▷ Class constants1,37519.07%
▷ Public constants1,375100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
244 PNG files occupy 2.93MB with 1.88MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
tags/5.2.13/libs/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
tags/5.3.2/tags/5.2.1/libs/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
tags/5.3.2/tags/1.3/images/track-log.png0.90KB0.09KB▼ 89.69%
tags/5.3.2/tags/5.2.3/libs/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
tags/5.3.2/tags/5.2.8/images/track-log.png0.90KB0.09KB▼ 89.69%