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: ▲5.41MB] [CPU: ▲18.49ms] 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: The extra memory usage should kept under 5MB (currently 5.41MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 61.29 ▲25.92 |
Dashboard /wp-admin | 9.22 ▲5.87 | 72.05 ▲16.66 |
Posts /wp-admin/edit.php | 9.22 ▲5.86 | 77.53 ▲28.66 |
Add New Post /wp-admin/post-new.php | 10.04 ▲4.15 | 103.28 ▲2.72 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 67.27 ▲35.13 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.22 | 57.79 |
Server storage [IO: ▲5.36MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 314 new files
Database: 4 new tables, 11 new options
New tables |
---|
wp_emtr_track_email_link_master |
wp_emtr_track_email_link_click_log |
wp_emtr_track_email_open_log |
wp_emtr_email |
New WordPress options |
---|
emtr_db_version |
db_upgraded |
can_compress_scripts |
emtr_version |
theysaidso_admin_options |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
fs_debug_mode |
widget_recent-comments |
... |
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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.34 ▲0.09 | 1.80 ▲0.36 | 29.59 ▼9.01 |
Dashboard /wp-admin | 2,228 ▲48 | 5.58 ▼0.09 | 86.37 ▼12.76 | 40.60 ▼4.39 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.98 ▼0.05 | 35.32 ▲0.38 | 34.12 ▲3.60 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 18.72 ▼4.36 | 607.52 ▼46.71 | 67.11 ▲5.30 |
Media Library /wp-admin/upload.php | 1,433 ▲33 | 4.14 ▼0.09 | 96.54 ▲4.43 | 42.75 ▲2.59 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,101 | 1.68 | 23.38 | 25.24 |
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+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_active_plugins
- widget_theysaidso_widget
- widget_recent-comments
- fs_debug_mode
- can_compress_scripts
- widget_recent-posts
- fs_accounts
- db_upgraded
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/email-tracker/vendor/soundasleep/html2text/tests/Html2TextTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'ComponentTests\\ComponentTest' not found in wp-content/plugins/email-tracker/vendor/soundasleep/html2text/tests/Html2TextComponentTest.php:3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/email-tracker/vendor/soundasleep/html2text/convert.php on line 8
- > PHP Notice
Undefined variable: argv in wp-content/plugins/email-tracker/vendor/soundasleep/html2text/convert.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/email-tracker/email-tracker-main.php:4
- > PHP Fatal error
Uncaught InvalidArgumentException: Expected: php -f convert.php [input file] in wp-content/plugins/email-tracker/vendor/soundasleep/html2text/convert.php:9
- > PHP Fatal error
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 96% from 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
3 plugin tags: email-mail-email, email, email-woocommerce-email
email-tracker/email-tracker.php 92% from 13 tests
"Email Tracker – Email Tracking Plugin to track Emails for Open and Email Links Click (Compatible with WooCommerce)" version 5.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.0")
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 plugin38,108 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 175 | 8,686 | 18,382 | 36,299 |
JavaScript | 8 | 122 | 144 | 700 |
HTML | 22 | 77 | 0 | 468 |
Markdown | 4 | 113 | 0 | 328 |
JSON | 5 | 0 | 0 | 147 |
PO File | 1 | 46 | 47 | 125 |
CSS | 14 | 1 | 1 | 24 |
YAML | 1 | 0 | 0 | 10 |
XML | 1 | 0 | 1 | 7 |
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 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 55.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 3 | 3.90% |
▷ Concrete classes | 74 | 96.10% |
▷ Final classes | 4 | 5.41% |
Methods | 1,493 | |
▷ Static methods | 236 | 15.81% |
▷ Public methods | 1,098 | 73.54% |
▷ Protected methods | 17 | 1.14% |
▷ Private methods | 378 | 25.32% |
Functions | 120 | |
▷ Named functions | 119 | 99.17% |
▷ Anonymous functions | 1 | 0.83% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
libs/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
images/track-log.png | 0.90KB | 0.09KB | ▼ 89.69% |