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.03MB] [CPU: ▼3.02ms] Passed 4 tests
Analyzing server-side resources used by Microsoft Advertising Universal Event Tracking (UET)
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.16 ▼2.56 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.23 ▼4.94 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.60 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.75 ▼4.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.83 ▲1.43 |
UET tag /wp-admin/options-general.php?page=uet_tag_settings_page | 3.23 | 29.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Microsoft Advertising Universal Event Tracking (UET)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.16 ▼1.24 | 1.93 ▲0.06 | 38.71 ▼7.19 |
Dashboard /wp-admin | 2,221 ▲36 | 5.84 ▼0.04 | 105.48 ▲4.38 | 38.25 ▼7.02 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.02 | 35.98 ▼3.62 | 31.60 ▼3.13 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.20 ▲0.22 | 665.55 ▲15.89 | 69.75 ▲17.59 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.04 | 94.46 ▼10.86 | 40.74 ▼2.24 |
UET tag /wp-admin/options-general.php?page=uet_tag_settings_page | 790 | 2.03 | 25.29 | 31.64 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/microsoft-advertising-universal-event-tracking-uet/wp-uet-plugin.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: uet, advertising, microsoft advertising, microsoft, bing ads...
microsoft-advertising-universal-event-tracking-uet/wp-uet-plugin.php 92% from 13 tests
The primary PHP file in "Microsoft Advertising Universal Event Tracking (UET)" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("microsoft-advertising-universal-event-tracking-uet.php" instead of "wp-uet-plugin.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
There were no executable files found in this plugin160 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 23 | 18 | 160 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG images were found in this plugin