84% link-log

Code Review | Smart External Link Click Monitor [Link Log]

WordPress plugin Smart External Link Click Monitor [Link Log] scored 84% from 54 tests.

About plugin

  • Plugin page: link-log
  • Plugin version: 5.0.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2014
  • Latest release: Oct 1, 2023
  • Number of updates: 43
  • Update frequency: every 81.6 days
  • Top authors: petersplugins (67.44%)smartware.cc (34.88%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 11,291 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.07MB] [CPU: ▼1.81ms] Passed 4 tests

Server-side resources used by Smart External Link Click Monitor [Link Log]
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.08 ▼1.33
Dashboard /wp-admin3.36 ▲0.0645.68 ▼3.69
Posts /wp-admin/edit.php3.48 ▲0.1252.78 ▲11.59
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.87 ▼5.06
Media Library /wp-admin/upload.php3.29 ▲0.0639.81 ▲2.85
link-log /wp-admin/options-general.php?page=link-log-settings3.2630.95
/wp-admin/admin.php?page=link-log-gdpr3.2530.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: 2 new tables, 10 new options
New tables
wp_linklog
wp_linklog_descriptions
New WordPress options
swcc_linklog_gdpr_compliant
pp-link-log-admin-notice-2-start
swcc_linklog_version
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
pp-link-log-admin-notice-1-start
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Smart External Link Click Monitor [Link Log]
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.24 ▼1.121.54 ▼0.6137.56 ▼10.17
Dashboard /wp-admin2,224 ▲334.85 ▼0.99116.90 ▲8.4042.58 ▲1.12
Posts /wp-admin/edit.php2,107 ▲182.03 ▼0.0244.69 ▲3.8236.10 ▼1.09
Add New Post /wp-admin/post-new.php1,548 ▲623.31 ▲5.10636.50 ▲24.4450.87 ▼9.75
Media Library /wp-admin/upload.php1,409 ▲184.25 ▲0.0497.71 ▼5.3742.10 ▼4.11
link-log /wp-admin/options-general.php?page=link-log-settings9662.0429.0140.99
/wp-admin/admin.php?page=link-log-gdpr7652.0723.8821.95

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • pp-link-log-admin-notice-2-start
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • pp-link-log-admin-notice-1-start
    • widget_recent-comments
    • swcc_linklog_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function status_header() in wp-content/plugins/link-log/uninstall.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: visitor tracking, click counting, log, link analytics, click...

link-log/link-log.php Passed 13 tests

This is the main PHP file of "Smart External Link Click Monitor [Link Log]" version 5.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
24 characters long description:
Log external link clicks

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,103 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6486364949
CSS3280143
JavaScript12011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity69.00
▷ Minimum class complexity12.00
▷ Maximum class complexity126.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods70
▷ Static methods11.43%
▷ Public methods6491.43%
▷ Protected methods22.86%
▷ Private methods45.71%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/gdpr.png2.39KB1.90KB▼ 20.42%
assets/img/pluginicon.png1.60KB1.10KB▼ 31.12%