Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.95ms] Passed 4 tests
A check of server-side resources used by Weberlo for UTM and Ad Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.24 ▲0.62 |
Dashboard /wp-admin | 3.34 ▲0.03 | 47.23 ▼4.41 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 44.28 ▼2.87 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.22 ▼5.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.58 ▲6.48 |
Weberlo /wp-admin/tools.php?page=weberlo | 3.23 | 31.04 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Weberlo for UTM and Ad Tracking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 13.13 ▼1.59 | 4.33 ▲2.49 | 43.76 ▼0.24 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▼0.02 | 87.95 ▼8.78 | 41.62 ▼2.91 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.05 | 36.88 ▼3.05 | 36.47 ▲0.05 |
Add New Post /wp-admin/post-new.php | 1,529 ▼1 | 23.68 ▲0.55 | 660.80 ▼35.72 | 51.31 ▲1.04 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.18 ▼0.03 | 96.18 ▼12.11 | 41.10 ▼3.75 |
Weberlo /wp-admin/tools.php?page=weberlo | 826 | 2.16 | 23.43 | 27.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WEBERLO_PLUGIN_URL - assumed 'WEBERLO_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/weberlo-for-utm-and-ad-tracking/admin/templates/admin-page.php on line 14
- > PHP Notice
Undefined variable: workspace_id_error in wp-content/plugins/weberlo-for-utm-and-ad-tracking/admin/templates/admin-page.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/weberlo-for-utm-and-ad-tracking/admin/templates/admin-page.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/weberlo-for-utm-and-ad-tracking/public/embed-code.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Contributors: Contributors not specified
weberlo-for-utm-and-ad-tracking/weberlo-auto-embed.php 92% from 13 tests
Analyzing the main PHP file in "Weberlo for UTM and Ad Tracking" version 0.0.9
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("weberlo-for-utm-and-ad-tracking.php" instead of "weberlo-auto-embed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin461 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 107 | 19 | 386 |
CSS | 1 | 12 | 0 | 59 |
JavaScript | 1 | 0 | 0 | 16 |
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 code | 0.38 |
Average class complexity | 5.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 25 | 78.12% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 3 | 9.38% |
▷ Private methods | 2 | 6.25% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.02MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
.wordpress-org/screenshot-3.png | 267.36KB | 268.03KB | 0.00% |
.wordpress-org/screenshot-4.png | 253.56KB | 250.72KB | ▼ 1.12% |
admin/img/logo-sm.png | 7.10KB | 3.36KB | ▼ 52.70% |
.wordpress-org/icon-256x256.png | 7.33KB | 3.61KB | ▼ 50.70% |
.wordpress-org/screenshot-1.png | 277.20KB | 271.00KB | ▼ 2.24% |