Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.27ms] Passed 4 tests
Analyzing server-side resources used by UTM Generator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.05 ▼6.56 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.62 ▼7.61 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 53.59 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.22 ▼2.09 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 40.05 ▲4.48 |
UTM Generator /wp-admin/admin.php?page=tru_utm_generator | 3.29 | 37.54 |
Settings /wp-admin/admin.php?page=tru_utm_generator_settings | 3.29 | 37.35 |
Email /wp-admin/admin.php?page=tru_utm_generator_email_settings | 3.29 | 35.91 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_tru_utm_generator |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for UTM Generator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲172 | 13.98 ▼0.49 | 9.08 ▲7.23 | 21.90 ▼19.44 |
Dashboard /wp-admin | 2,236 ▲62 | 5.11 ▼0.49 | 93.69 ▲3.93 | 48.06 ▲5.94 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.37 ▲0.35 | 40.21 ▲4.72 | 39.66 ▲3.47 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.59 ▲0.21 | 665.62 ▼1.26 | 63.53 ▲9.11 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.44 ▲0.29 | 103.20 ▼6.01 | 45.84 ▼2.66 |
UTM Generator /wp-admin/admin.php?page=tru_utm_generator | 1,104 | 2.55 | 45.69 | 62.10 |
Settings /wp-admin/admin.php?page=tru_utm_generator_settings | 940 | 1.86 | 26.79 | 48.49 |
Email /wp-admin/admin.php?page=tru_utm_generator_email_settings | 957 | 1.87 | 25.75 | 37.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_tru_utm_generator
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/tru-utm-generator/classes/tru_utm_generator.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/tru-utm-generator/tru-utm-generator.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in tru-utm-generator/assets to your readme.txt
tru-utm-generator/tru-utm-generator.php Passed 13 tests
"UTM Generator" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
18 characters long description:
Generate UTM links
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,802 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 123 | 60 | 1,724 |
PHP | 6 | 45 | 52 | 510 |
SVG | 4 | 0 | 0 | 291 |
JavaScript | 4 | 6 | 12 | 277 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/delete.png | 1.16KB | 0.40KB | ▼ 65.74% |
images/search.png | 1.29KB | 0.52KB | ▼ 60.12% |