Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.63MB] [CPU: ▲5.42ms] Passed 4 tests
An overview of server-side resources used by UTM Switcher
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 50.87 ▲4.40 |
Dashboard /wp-admin | 4.08 ▲0.77 | 61.10 ▲7.25 |
Posts /wp-admin/edit.php | 4.13 ▲0.77 | 58.42 ▲13.95 |
Add New Post /wp-admin/post-new.php | 6.59 ▲0.70 | 90.38 ▼0.21 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 43.59 ▲10.22 |
Help /wp-admin/edit.php?post_type=utm_switcher&page=utm_switcher_ref_general | 3.91 | 40.02 |
Help /wp-admin/admin.php?page=utm_switcher_ref_cf7 | 3.91 | 38.83 |
All UTM Switchers /wp-admin/edit.php?post_type=utm_switcher | 3.98 | 43.98 |
Add New /wp-admin/post-new.php?post_type=utm_switcher | 3.98 | 50.41 |
Server storage [IO: ▲1.22MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 142 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for UTM Switcher
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,078 ▲332 | 15.40 ▲1.02 | 6.90 ▲5.22 | 36.98 ▼8.16 |
Dashboard /wp-admin | 2,400 ▲212 | 6.68 ▲0.81 | 133.56 ▲19.29 | 41.62 ▼5.48 |
Posts /wp-admin/edit.php | 2,308 ▲219 | 3.57 ▲1.52 | 54.70 ▲16.79 | 34.47 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,563 ▲29 | 23.43 ▲0.16 | 652.53 ▼38.60 | 36.94 ▼23.27 |
Media Library /wp-admin/upload.php | 1,439 ▲54 | 4.34 ▲0.14 | 85.33 ▼14.45 | 44.53 ▲2.12 |
Help /wp-admin/edit.php?post_type=utm_switcher&page=utm_switcher_ref_general | 1,079 | 3.36 | 38.95 | 26.91 |
Help /wp-admin/admin.php?page=utm_switcher_ref_cf7 | 1,081 | 3.27 | 39.84 | 25.39 |
All UTM Switchers /wp-admin/edit.php?post_type=utm_switcher | 1,283 | 3.49 | 49.85 | 28.33 |
Add New /wp-admin/post-new.php?post_type=utm_switcher | 1,770 | 4.09 | 67.41 | 40.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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 fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/tests/bootstrap.php
- > /wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 66× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Container/Nav_Menu_Container.php:12
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Datastore.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Field/Textarea_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Container/Widget_Container.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Field/Sidebar_Field.php:5
- > PHP Notice
Undefined variable: errors in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/tests/bootstrap.php on line 45
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Map_Field' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Field/Map_With_Address_Field.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Datastore/Comment_Meta_Datastore.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/utm-switcher/vendor/htmlburger/carbon-fields/core/Field/Text_Field.php:8
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Contributors: Plugin contributors not specified
utm-switcher/utm-switcher.php Passed 13 tests
The main PHP script in "UTM Switcher" version 1.0.2 is automatically included on every request by WordPress
125 characters long description:
Allows GET variables from Social Media Campaigns to modify content based on criteria. Also, adds these variables to CF7 Forms
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 plugin9,159 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 1,664 | 3,577 | 5,732 |
JavaScript | 9 | 824 | 668 | 2,571 |
CSS | 2 | 87 | 66 | 302 |
JSON | 4 | 0 | 0 | 205 |
PO File | 1 | 75 | 79 | 193 |
Bourne Shell | 1 | 20 | 20 | 64 |
YAML | 2 | 9 | 0 | 48 |
Markdown | 2 | 19 | 0 | 26 |
XML | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.05 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 3 | 4.76% |
▷ Concrete classes | 60 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 516 | |
▷ Static methods | 47 | 9.11% |
▷ Public methods | 498 | 96.51% |
▷ Protected methods | 8 | 1.55% |
▷ Private methods | 10 | 1.94% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 12 | |
▷ Global constants | 7 | 58.33% |
▷ Class constants | 5 | 41.67% |
▷ Public constants | 5 | 100.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
5 PNG files occupy 0.53MB with 0.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-1544x500.png | 10.22KB | 9.63KB | ▼ 5.77% |
assets/icon-128x128.png | 19.97KB | 9.40KB | ▼ 52.95% |
assets/banner-772x250.png | 4.73KB | 5.06KB | 0.00% |
assets/icon-256x256.png | 55.12KB | 25.56KB | ▼ 53.62% |
assets/screenshot-1.png | 450.52KB | 105.76KB | ▼ 76.52% |