62% a-click-tracker

Code Review | a click tracker

WordPress plugin a click tracker scored62%from 54 tests.

About plugin

  • Plugin page: a-click-tracker
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2013
  • Latest release: Oct 3, 2013
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: kazunii (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,158 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.33ms] Passed 4 tests

Analyzing server-side resources used by a click tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.05 ▼1.414.60 ▼28.28
Dashboard /wp-admin2.07 ▼1.235.35 ▼51.76
Posts /wp-admin/edit.php2.08 ▼1.285.24 ▼46.97
Add New Post /wp-admin/post-new.php2.07 ▼3.815.45 ▼78.70
Media Library /wp-admin/upload.php2.07 ▼1.165.37 ▼31.88
a click tracker /wp-admin/options-general.php?page=a-click-tracker/a-click-tracker.php2.085.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for a click tracker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.46 ▼0.828.93 ▲7.3343.27 ▲4.18
Dashboard /wp-admin2,202 ▲255.63 ▼0.0287.49 ▼14.6438.58 ▼3.56
Posts /wp-admin/edit.php2,104 ▲11.95 ▼0.0335.38 ▼6.4935.16 ▼2.63
Add New Post /wp-admin/post-new.php1,531 ▲323.25 ▲0.36604.94 ▼81.8548.96 ▼6.07
Media Library /wp-admin/upload.php1,398 ▲14.12 ▼0.0295.70 ▼7.5340.68 ▲0.99
a click tracker /wp-admin/options-general.php?page=a-click-tracker/a-click-tracker.php8661.9923.6581.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=a-click-tracker/a-click-tracker.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/a-click-tracker/a-click-tracker.php:27

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=a-click-tracker/a-click-tracker.php
    • > Network (severe)
    https://si0.twimg.com/profile_images/2074468470/_______mini.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: No valid plugin tags found
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

a-click-tracker/a-click-tracker.php Passed 13 tests

Analyzing the main PHP file in "a click tracker" version 0.1
86 characters long description:
全てのaタグのクリックをGoogle Analyticsのイベントに記録します。

Code Analysis Passed 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 plugin96 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP182486
JavaScript10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin