Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▲0.04ms] Passed 4 tests
An overview of server-side resources used by utm.codes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.65 ▼3.64 |
Dashboard /wp-admin | 3.61 ▲0.30 | 55.42 ▼1.90 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 57.87 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.31 | 96.02 ▲2.87 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 41.52 ▲3.25 |
utm.codes /wp-admin/options-general.php?page=utm-dot-codes | 3.50 | 45.11 |
All Marketing Links /wp-admin/edit.php?post_type=utmdclink | 3.59 | 50.54 |
Add New Link /wp-admin/post-new.php?post_type=utmdclink | 3.57 | 54.87 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for utm.codes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲108 | 13.32 ▼1.41 | 1.76 ▼0.20 | 40.03 ▼11.24 |
Dashboard /wp-admin | 2,284 ▲78 | 5.03 ▲0.17 | 107.16 ▼3.88 | 41.43 ▼1.88 |
Posts /wp-admin/edit.php | 2,182 ▲93 | 2.17 ▲0.13 | 42.20 ▲3.57 | 38.94 ▲6.65 |
Add New Post /wp-admin/post-new.php | 1,549 ▲10 | 23.13 ▼0.05 | 687.03 ▼2.89 | 55.27 ▼0.91 |
Media Library /wp-admin/upload.php | 1,450 ▲62 | 4.37 ▲0.10 | 97.75 ▼10.79 | 41.53 ▼5.73 |
utm.codes /wp-admin/options-general.php?page=utm-dot-codes | 1,217 | 2.19 | 31.15 | 41.05 |
All Marketing Links /wp-admin/edit.php?post_type=utmdclink | 1,180 | 2.14 | 35.89 | 28.11 |
Add New Link /wp-admin/post-new.php?post_type=utmdclink | 1,557 | 2.79 | 50.28 | 55.40 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/utm-dot-codes/utm-dot-codes.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'UtmDotCodes\\Shorten' not found in wp-content/plugins/utm-dot-codes/classes/shorten/class-rebrandly.php:13
- > PHP Fatal error
Uncaught Error: Interface 'UtmDotCodes\\Shorten' not found in wp-content/plugins/utm-dot-codes/classes/shorten/class-bitly.php:13
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: campaign marketing, link generator, google analytics, analytics, utm codes
utm-dot-codes/utm-dot-codes.php Passed 13 tests
The main PHP file in "utm.codes" ver. 1.8.4 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
A plugin that makes building analytics friendly links quick and easy.
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
Everything looks great! No dangerous files found in this plugin1,610 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 272 | 510 | 1,608 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 32.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 98.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.92% |
Functions | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.00% |
Constants | 13 | |
▷ Global constants | 6 | 46.15% |
▷ Class constants | 7 | 53.85% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/utm-dot-codes-logo.png | 8.53KB | 5.92KB | ▼ 30.61% |