68% email-tracker

Code Review | Email Tracker – WordPress Email Tracking Plugin for Email Read and Click (Compatible with WooCommerce)

WordPress plugin Email Tracker – WordPress Email Tracking Plugin for Email Read and Click (Compatible with WooCommerce) scored 68% from 54 tests.

About plugin

  • Plugin page: email-tracker
  • Plugin version: 5.2.7
  • PHP compatiblity: 5.6.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 5.8.1
  • First release: Nov 29, 2016
  • Latest release: Nov 3, 2021
  • Number of updates: 98
  • Update frequency: every 18.3 days
  • Top authors: pmbaldha (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

600+ active / 8,392 total downloads

Benchmarks

Plugin footprint 65% 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: ▲4.78MB] [CPU: ▼119.95ms] Passed 4 tests

This is a short check of server-side resources used by Email Tracker – WordPress Email Tracking Plugin for Email Read and Click (Compatible with WooCommerce)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /8.27 ▲5.5562.85 ▲36.59
Dashboard /wp-admin8.29 ▲5.2470.43 ▲24.16
Posts /wp-admin/edit.php8.29 ▲5.1874.32 ▲29.27
Add New Post /wp-admin/post-new.php8.84 ▲3.41115.63 ▼558.40
Media Library /wp-admin/upload.php8.29 ▲5.2961.71 ▲25.17
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius8.2954.03

Server storage [IO: ▲3.15MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 222 new files
Database: 4 new tables, 6 new options
New tables
wp_emtr_track_email_link_click_log
wp_emtr_track_email_link_master
wp_emtr_track_email_open_log
wp_emtr_email
New WordPress options
fs_gdpr
fs_debug_mode
emtr_db_version
emtr_version
fs_accounts
fs_active_plugins

Browser metrics Passed 4 tests

This is an overview of browser requirements for Email Tracker – WordPress Email Tracking Plugin for Email Read and Click (Compatible with WooCommerce)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,752 ▲15616.42 ▲0.3911.48 ▲1.3943.15 ▼4.38
Dashboard /wp-admin3,022 ▲885.94 ▼0.02137.01 ▼29.79120.00 ▲8.69
Posts /wp-admin/edit.php2,790 ▲512.72 ▼0.0168.29 ▼3.2096.68 ▲10.59
Add New Post /wp-admin/post-new.php2,330 ▲83016.06 ▼2.60399.63 ▲2.67104.80 ▼2.94
Media Library /wp-admin/upload.php1,782 ▼285.02 ▼0.02149.50 ▼7.10127.19 ▲14.70
Freemius Debug [v.2.4.2] /wp-admin/admin.php?page=freemius1,5082.0955.5164.82

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_accounts
    • fs_debug_mode
    • fs_gdpr

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/email-tracker/libs/freemius/templates/ajax-loader.php
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/email-tracker/libs/freemius/templates/partials/network-activation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/email-tracker/email-tracker-main.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/email-tracker/libs/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/email-tracker/libs/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/email-tracker/libs/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/email-tracker/libs/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/libs/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/email-tracker/libs/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/email-tracker/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 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: Screenshot #4 (Settings to manage all emails) image missing
Please take inspiration from this readme.txt

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

"Email Tracker – WordPress Email Tracking Plugin for Email Read and Click (Compatible with WooCommerce)" version 5.2.7'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 plugin33,311 lines of code in 170 files:
LanguageFilesBlank linesComment linesLines of code
PHP1487,62016,88332,436
JavaScript8122144700
PO File14647125
CSS121125
JSON10025

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.61
Average class complexity55.65
▷ Minimum class complexity1.00
▷ Maximum class complexity2,907.00
Average method complexity4.39
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces9
Interfaces9
Traits0
Classes68
▷ Abstract classes34.41%
▷ Concrete classes6595.59%
▷ Final classes57.69%
Methods1,309
▷ Static methods19114.59%
▷ Public methods96373.57%
▷ Protected methods151.15%
▷ Private methods33125.29%
Functions110
▷ Named functions110100.00%
▷ Anonymous functions00.00%
Constants129
▷ Global constants10480.62%
▷ Class constants2519.38%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/track-log.png0.90KB0.09KB▼ 89.69%
libs/freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
libs/freemius/assets/img/email-tracker.png29.10KB28.73KB▼ 1.27%