Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼7.51ms] Passed 4 tests
Analyzing server-side resources used by GTM4WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 38.15 ▼1.79 |
Dashboard /wp-admin | 3.81 ▲0.47 | 43.19 ▼15.07 |
Posts /wp-admin/edit.php | 3.93 ▲0.57 | 49.91 ▲3.03 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 78.14 ▼13.58 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 35.80 ▲0.41 |
Google Tag Manager /wp-admin/options-general.php?page=gtm4wp-settings | 3.71 | 36.80 |
Server storage [IO: ▲4.46MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 139 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by GTM4WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,854 ▲93 | 14.26 ▼0.01 | 1.74 ▲0.06 | 35.74 ▼7.20 |
Dashboard /wp-admin | 2,221 ▲44 | 5.65 ▲0.05 | 94.80 ▲8.59 | 44.93 ▲2.11 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.03 ▲0.07 | 42.48 ▲4.62 | 37.23 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.29 ▼5.33 | 654.27 ▲48.19 | 71.25 ▲29.32 |
Media Library /wp-admin/upload.php | 1,417 ▲14 | 4.28 ▲0.08 | 95.97 ▼0.73 | 41.22 ▲0.44 |
Google Tag Manager /wp-admin/options-general.php?page=gtm4wp-settings | 2,699 | 1.90 | 36.63 | 51.37 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 77× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\BuildIds' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/build-android.php:5
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/indices/models-s40.php:5
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/indices/models-tizen.php:5
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/indices/models-palmos.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/duracelltomi-google-tag-manager/integration/amp.php:157
- > PHP Fatal error
Trait 'WhichBrowser\\Analyser\\Header\\Useragent\\Os' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/src/Analyser/Header/Useragent.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/duracelltomi-google-tag-manager/common/readoptions.php:452
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Constants\\DeviceType' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/models-android.php:13
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/indices/models-bada.php:5
- > PHP Fatal error
Uncaught Error: Class 'WhichBrowser\\Data\\DeviceModels' not found in wp-content/plugins/duracelltomi-google-tag-manager/integration/whichbrowser/data/models-s30plus.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
duracelltomi-google-tag-manager/duracelltomi-google-tag-manager-for-wordpress.php 85% from 13 tests
"GTM4WP" version 1.18.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("duracelltomi-google-tag-manager.php" instead of "duracelltomi-google-tag-manager-for-wordpress.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin59,406 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 4,701 | 1,877 | 57,519 |
JavaScript | 10 | 328 | 133 | 1,827 |
CSS | 1 | 12 | 0 | 60 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 107)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 37.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 484.00 |
Average method complexity | 9.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 107.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 25 | |
Classes | 36 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 36 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 274 | |
▷ Static methods | 19 | 6.93% |
▷ Public methods | 87 | 31.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 187 | 68.25% |
Functions | 94 | |
▷ Named functions | 80 | 85.11% |
▷ Anonymous functions | 14 | 14.89% |
Constants | 222 | |
▷ Global constants | 147 | 66.22% |
▷ Class constants | 75 | 33.78% |
▷ Public constants | 75 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
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 |
admin/images/tag_manager-64.png | 0.89KB | 0.46KB | ▼ 48.47% |
admin/images/tag_manager-32.png | 1.28KB | 1.38KB | 0.00% |