79% tracking-url

Code Review | Tracking URL

WordPress plugin Tracking URL scored 79% from 54 tests.

About plugin

  • Plugin page: tracking-url
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 5.8.1
  • First release: Aug 26, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: sebat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 623 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.82MB] [CPU: ▼169.84ms] Passed 4 tests

An overview of server-side resources used by Tracking URL
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1433.82 ▲11.61
Dashboard /wp-admin2.83 ▼0.2226.62 ▼20.37
Posts /wp-admin/edit.php2.83 ▼0.2822.25 ▼23.21
Add New Post /wp-admin/post-new.php2.83 ▼2.6022.46 ▼625.19
Media Library /wp-admin/upload.php2.83 ▼0.1722.05 ▼10.60
Tracking URL /wp-admin/options-general.php?page=tracking-url2.8318.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tracking URL
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.93 ▲0.0311.99 ▼0.3848.37 ▼0.02
Dashboard /wp-admin2,975 ▲415.95 ▼0.16146.13 ▲3.89110.59 ▲6.32
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0265.27 ▼3.3598.65 ▲4.71
Add New Post /wp-admin/post-new.php1,503 ▼18018.39 ▼0.30366.67 ▼62.25107.01 ▼6.09
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.00159.75 ▲8.32113.09 ▼1.49
Tracking URL /wp-admin/options-general.php?page=tracking-url1,0452.0564.7976.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/tracking-url/tracking-url.php+136
    Invalid argument supplied for foreach()

Smoke tests 50% 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)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=tracking-url
    • > Warning in wp-content/plugins/tracking-url/tracking-url.php+136
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/options-general.php?page=tracking-url
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tracking-url
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tracking-url
    • > Notice in wp-content/plugins/tracking-url/tracking-url.php+169
    Trying to access array offset on value of type bool
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tracking-url
    • > Notice in wp-content/plugins/tracking-url/tracking-url.php+171
    Trying to access array offset on value of type null

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tracking-url/tracking-url.php:207

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: tracking, marketing, google analytics, sharing, social media

tracking-url/tracking-url.php Passed 13 tests

The main PHP file in "Tracking URL" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Displays tracking URLs for sharing in Social Networks or where ever

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12110096
PO File1121245

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin