Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/utm-generator/includes/functions.php+81
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.67MB] [CPU: ▼50.03ms] Passed 4 tests
Server-side resources used by UTM Code Generator for Google Analytics Tracking URL
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 5.40 ▼33.00 |
Dashboard /wp-admin | 2.33 ▼0.97 | 8.50 ▼47.21 |
Posts /wp-admin/edit.php | 2.33 ▼1.02 | 8.11 ▼37.26 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.55 | 7.85 ▼79.85 |
Media Library /wp-admin/upload.php | 2.33 ▼0.89 | 7.09 ▼35.81 |
Settings /wp-admin/admin.php?page=tch-utm-generator | 2.33 | 6.71 |
UTM Generator /wp-admin/admin.php?page=tch-utm-generator-buildnew | 2.33 | 6.46 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 21 new options
New WordPress options |
---|
technoUTM_analytics_position |
technoUTM_item_id |
db_upgraded |
widget_recent-comments |
technoUTM_default_utm_campaign |
technoUTM_install_analytics |
widget_theysaidso_widget |
technoUTM_analytics_id |
technoUTM_default_utm_content |
technoUTM_enable_adminbar |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for UTM Code Generator for Google Analytics Tracking URL
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲110 | 14.47 ▲0.17 | 1.73 ▼0.17 | 40.75 ▼0.50 |
Dashboard /wp-admin | 2,248 ▲60 | 5.85 ▲0.98 | 97.50 ▼8.39 | 79.14 ▲36.38 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 1.98 ▼0.03 | 38.76 ▲2.48 | 35.98 ▲2.19 |
Add New Post /wp-admin/post-new.php | 6,602 ▲5,088 | 23.50 ▲5.96 | 994.74 ▲317.50 | 83.79 ▲30.72 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.24 ▲0.05 | 111.97 ▲16.85 | 79.65 ▲33.16 |
Settings /wp-admin/admin.php?page=tch-utm-generator | 990 | 2.05 | 26.10 | 46.78 |
UTM Generator /wp-admin/admin.php?page=tch-utm-generator-buildnew | 1,043 | 2.02 | 24.26 | 49.07 |
Uninstaller [IO: ▲0.10MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the followingZombie WordPress options were found after uninstall: 22 options
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/utm-generator/includes/functions.php+81
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin has failed uninstalling correctly, leaving 15 files (0.10MB) in the plugin directory
- (new file) images/loading.gif
- (new file) images/lN.jpg
- (new file) includes/class.technoUTM.install.php
- (new file) images/external-link-square-16.png
- (new file) images/emblem-symbolic-link.png
- (new file) includes/class.technoUTM.main.php
- (new file) css/dashboard.css
- (new file) images/external_link.png
- (new file) images/icon.png
- (new file) includes/class.technoUTM.utms.php
- ...
- widget_recent-posts
- technoUTM_item_id
- technoUTM_databse_version
- db_upgraded
- technoUTM_default_utm_source
- widget_recent-comments
- technoUTM_active_pages
- widget_theysaidso_widget
- technoUTM_active_posts
- technoUTM_default_utm_campaign
- ...
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=tch-utm-generator-buildnew
- > Deprecated in wp-content/plugins/utm-generator/includes/functions.php+81
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
7 plugin tags: url tracker, google analytics url builder, utm url builder, google url builder, google campaign builder...
utm-generator/tch-utm-generator.php 92% from 13 tests
The main file in "UTM Code Generator for Google Analytics Tracking URL" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("utm-generator.php" instead of "tch-utm-generator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,613 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 162 | 307 | 850 |
CSS | 1 | 43 | 10 | 763 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 1 | 2.78% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 1 | 2.78% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/external_link.png | 1.23KB | 0.30KB | ▼ 75.60% |
images/emblem-symbolic-link.png | 0.38KB | 0.45KB | 0.00% |
images/icon.png | 0.77KB | 0.85KB | 0.00% |
images/external-link-square-16.png | 0.28KB | 0.31KB | 0.00% |