Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-google-tag-manager/wp-google-tag-manager.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; WpGoogleTagManager has a deprecated constructor
Server metrics [RAM: ▼2.48MB] [CPU: ▼357.01ms] Passed 4 tests
Server-side resources used by WP Google Tag Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.89 ▼1.62 | 4.62 ▼47.86 |
Dashboard /wp-admin | 1.91 ▼1.50 | 3.43 ▼29.52 |
Posts /wp-admin/edit.php | 1.91 ▼1.73 | 4.29 ▼34.51 |
Add New Post /wp-admin/post-new.php | 1.91 ▼5.06 | 4.65 ▼1,316.15 |
Media Library /wp-admin/upload.php | 1.91 ▼1.38 | 3.52 ▼19.73 |
WP Google Tag Manager /wp-admin/options-general.php?page=wp_google_tag_manager | 1.91 | 4.82 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Google Tag Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,830 ▲76 | 15.66 ▲0.08 | 6.20 ▲0.14 | 3.28 ▲0.69 |
Dashboard /wp-admin | 2,908 ▲50 | 6.11 ▼0.07 | 119.72 ▼18.48 | 158.64 ▼0.18 |
Posts /wp-admin/edit.php | 2,706 ▲12 | 3.24 ▲0.00 | 66.58 ▲3.84 | 147.07 ▲7.87 |
Add New Post /wp-admin/post-new.php | 1,666 ▲5 | 16.69 ▲0.30 | 412.89 ▼0.43 | 155.31 ▲1.51 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.67 ▲0.18 | 142.63 ▼8.35 | 192.65 ▼4.68 |
WP Google Tag Manager /wp-admin/options-general.php?page=wp_google_tag_manager | 1,062 | 2.44 | 53.57 | 110.01 |
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
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-google-tag-manager/wp-google-tag-manager.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; WpGoogleTagManager has a deprecated constructor
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_google_tag_manager
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/wp-google-tag-manager/wp-google-tag-manager.php+44
Methods with the same name as their class will not be constructors in a future version of PHP; WpGoogleTagManager has a deprecated constructor
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-google-tag-manager/wp-google-tag-manager.php:57
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: code, snippet, manager, google, tagmanager...
wp-google-tag-manager/wp-google-tag-manager.php Passed 13 tests
Analyzing the main PHP file in "WP Google Tag Manager" version 1.1
69 characters long description:
Include code snippets from Google Tag Manager (google.com/tagmanager)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin116 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 81 | 116 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 22.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin