84% track-the-click

Code Review | Track The Click

WordPress plugin Track The Click scored84%from 54 tests.

About plugin

  • Plugin page: track-the-click
  • Plugin version: 0.3.13
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 11, 2021
  • Latest release: Nov 17, 2023
  • Number of updates: 34
  • Update frequency: every 22.7 days
  • Top authors: tracktheclick (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active /26,302 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.40ms] Passed 4 tests

An overview of server-side resources used by Track The Click
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0433.54 ▼8.17
Dashboard /wp-admin3.37 ▲0.0345.77 ▼13.05
Posts /wp-admin/edit.php3.42 ▲0.0746.47 ▲1.81
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.33 ▲1.87
Media Library /wp-admin/upload.php3.30 ▲0.0731.31 ▼2.19
Clicks /wp-admin/admin.php?page=track-the-click3.2929.27
Settings /wp-admin/admin.php?page=track-the-click-settings3.3033.71

Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 39 new files
Database: 4 new tables, 8 new options
New tables
wp_track_the_click_link_group
wp_track_the_click_hit
wp_track_the_click_group
wp_track_the_click_link
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
track_the_click_local
track_the_click_version
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Track The Click: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,961 ▲17413.93 ▼0.407.91 ▲5.8838.59 ▼4.14
Dashboard /wp-admin2,267 ▲905.30 ▼0.34100.36 ▲13.4476.91 ▲36.67
Posts /wp-admin/edit.php2,148 ▲512.32 ▲0.3543.35 ▲8.3835.83 ▲2.64
Add New Post /wp-admin/post-new.php1,566 ▲3723.49 ▲0.33609.59 ▲2.6234.34 ▼18.01
Media Library /wp-admin/upload.php1,436 ▲394.92 ▲0.7799.62 ▼4.2263.63 ▲23.22
Clicks /wp-admin/admin.php?page=track-the-click1,6943.4598.6330.57
Settings /wp-admin/admin.php?page=track-the-click-settings1,0962.2832.1829.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/track-the-click/admin/partials/track-the-click-tools-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/track-the-click/admin/partials/track-the-click-settings-display.php:26

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: link, affiliate, seo, click tracking, track outbound link...

track-the-click/track-the-click.php 92% from 13 tests

Analyzing the main PHP file in "Track The Click" version 0.3.13
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
There were no executable files found in this plugin3,259 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP135019781,690
CSS370521,276
JavaScript42624290
SVG1003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.38
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods87
▷ Static methods33.45%
▷ Public methods7080.46%
▷ Protected methods00.00%
▷ Private methods1719.54%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/ui-bg_glass_55_fbf9ee_1x400.png0.38KB0.12KB▼ 67.68%
admin/img/ui-icons_2e83ff_256x240.png4.51KB4.18KB▼ 7.28%
admin/img/ui-icons_888888_256x240.png6.94KB4.18KB▼ 39.78%
admin/img/ui-bg_glass_95_fef1ec_1x400.png0.38KB0.15KB▼ 61.54%
admin/img/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%