10% adluge-visitor-tracking

Code Review | AdLuge Visitor Tracker

WordPress plugin AdLuge Visitor Tracker scored 10% from 54 tests.

About plugin

  • Plugin page: adluge-visitor-tr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.9.1
  • WordPress version: 5.9.2
  • First release: Jun 6, 2014
  • Latest release: Jun 11, 2014
  • Number of updates: 11
  • Update frequency: every 0.5 days
  • Top authors: jaytwintl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,287 total downloads


Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/adluge-visitor-tracking/AdLugeVT.php+24
    Methods with the same name as their class will not be constructors in a future version of PHP; AdLugeVT has a deprecated constructor

Server metrics [RAM: ▼2.47MB] [CPU: ▼338.86ms] Passed 4 tests

An overview of server-side resources used by AdLuge Visitor Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0452.98 ▲2.46
Dashboard /wp-admin1.85 ▼1.553.84 ▼31.38
Posts /wp-admin/edit.php1.86 ▼1.783.94 ▼34.64
Add New Post /wp-admin/post-new.php1.85 ▼5.113.85 ▼1,262.61
Media Library /wp-admin/upload.php1.86 ▼1.443.53 ▼26.80

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AdLuge Visitor Tracker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,923 ▲20116.03 ▲0.365.60 ▼0.082.09 ▼0.27
Dashboard /wp-admin3,020 ▲1597.28 ▲1.13127.10 ▼3.78164.41 ▲6.61
Posts /wp-admin/edit.php2,817 ▲1303.41 ▲0.1667.76 ▲2.88132.39 ▼3.45
Add New Post /wp-admin/post-new.php1,779 ▲2716.32 ▼5.01398.52 ▼48.67213.02 ▲56.99
Media Library /wp-admin/upload.php1,821 ▲1266.03 ▲0.49138.51 ▼11.10205.83 ▲14.17

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
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5768
    wp_register_style 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 AdLugeVTStyleSheet1 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/adluge-visitor-tracking/AdLugeVT-sidebar.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/adluge-visitor-tracking/AdLugeVT.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

adluge-visitor-tracking/AdLugeVT.php 92% from 13 tests

This is the main PHP file of "AdLuge Visitor Tracker" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("adluge-visitor-tracking.php" instead of "AdLugeVT.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected817 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods330.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo-wp-admin.png12.07KB5.03KB▼ 58.32%
img/switch.png3.01KB0.64KB▼ 78.70%