84% tracking-url-builder-for-analytics

Code Review | Tracking URL Builder for Analytics

WordPress plugin Tracking URL Builder for Analytics scored 84% from 54 tests.

About plugin

  • Plugin page: tracking-url-buil...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Aug 12, 2015
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: raldi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,153 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.81ms] Passed 4 tests

An overview of server-side resources used by Tracking URL Builder for Analytics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.79 ▼1.26
Dashboard /wp-admin3.31 ▲0.0150.90 ▲0.27
Posts /wp-admin/edit.php3.36 ▲0.0045.64 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.32 ▼12.74
Media Library /wp-admin/upload.php3.23 ▲0.0037.89 ▲1.16
Tracking URL Builder for Analytics /wp-admin/tools.php?page=tracking-url-builder-for-analytics3.2031.46

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Tracking URL Builder for Analytics: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.31 ▼1.374.13 ▲1.4542.68 ▼7.44
Dashboard /wp-admin2,207 ▲255.81 ▼0.0694.11 ▼24.1936.85 ▼8.62
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0333.00 ▼1.4835.37 ▼2.00
Add New Post /wp-admin/post-new.php1,523 ▲323.14 ▲0.04642.56 ▲19.8551.50 ▼1.28
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0395.13 ▼4.0041.95 ▼5.38
Tracking URL Builder for Analytics /wp-admin/tools.php?page=tracking-url-builder-for-analytics9342.0622.0632.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tracking-url-builder-for-analytics/admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tracking-url-builder-for-analytics/tracking-url-builder-for-analytics.php:20

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Tracking URL Builder for Analytics - Form for generate a url with Google Analytics parameters) image not found
The official readme.txt might help

tracking-url-builder-for-analytics/tracking-url-builder-for-analytics.php Passed 13 tests

The entry point to "Tracking URL Builder for Analytics" version 1.0.1 is a PHP file that has certain tags in its header comment area
80 characters long description:
A simple form to create url for tracking of custom campaigns on Google Analytics

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
No dangerous file extensions were detected105 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22216105

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png108.78KB38.45KB▼ 64.66%