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 gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▲1.94ms] Passed 4 tests
Analyzing server-side resources used by GTM Kit - Google Tag Manager integration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 35.04 ▼1.13 |
Dashboard /wp-admin | 3.67 ▲0.36 | 47.65 ▲1.50 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 50.13 ▲6.30 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 94.44 ▲13.86 |
Media Library /wp-admin/upload.php | 3.53 ▲0.29 | 34.87 ▲1.10 |
/wp-admin/options.php?page=gtmkit_setup_wizard | 3.55 | 33.27 |
General /wp-admin/admin.php?page=gtmkit_general | 3.51 | 34.10 |
Help /wp-admin/admin.php?page=gtmkit_help | 3.51 | 35.01 |
Integrations /wp-admin/admin.php?page=gtmkit_integrations | 3.51 | 36.06 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 92 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
gtmkit |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for GTM Kit - Google Tag Manager integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲107 | 14.21 ▼0.03 | 1.90 ▲0.35 | 39.01 ▼1.68 |
Dashboard /wp-admin | 2,242 ▲65 | 5.57 ▲0.03 | 95.17 ▼3.23 | 42.49 ▲0.07 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 1.99 ▼0.01 | 41.87 ▼0.19 | 36.05 ▲0.53 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,733 | 26.24 ▲2.90 | 914.71 ▲249.70 | 59.25 ▲8.97 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.20 ▼0.01 | 101.87 ▲1.83 | 44.47 ▲0.03 |
/wp-admin/options.php?page=gtmkit_setup_wizard | 1,012 | 7.62 | 179.36 | 41.93 |
General /wp-admin/admin.php?page=gtmkit_general | 1,109 | 7.75 | 76.55 | 45.53 |
Help /wp-admin/admin.php?page=gtmkit_help | 1,038 | 7.51 | 72.07 | 40.35 |
Integrations /wp-admin/admin.php?page=gtmkit_integrations | 1,025 | 7.57 | 79.07 | 40.10 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Integration\\AbstractIntegration' not found in wp-content/plugins/gtm-kit/src/Integration/AbstractEcommerce.php:17
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Admin\\AbstractOptionsPage' not found in wp-content/plugins/gtm-kit/src/Admin/IntegrationsOptionsPage.php:13
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Admin\\AbstractOptionsPage' not found in wp-content/plugins/gtm-kit/src/Admin/GeneralOptionsPage.php:13
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Admin\\AbstractOptionsPage' not found in wp-content/plugins/gtm-kit/src/Admin/HelpOptionsPage.php:13
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Integration\\AbstractEcommerce' not found in wp-content/plugins/gtm-kit/src/Integration/EasyDigitalDownloads.php:21
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Integration\\AbstractEcommerce' not found in wp-content/plugins/gtm-kit/src/Integration/WooCommerce.php:27
- > PHP Fatal error
Uncaught Error: Class 'TLA_Media\\GTM_Kit\\Integration\\AbstractIntegration' not found in wp-content/plugins/gtm-kit/src/Integration/ContactForm7.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: woocommerce, gtag, ga4, analytics, google tag manager...
gtm-kit/gtm-kit.php Passed 13 tests
The principal PHP file in "GTM Kit - Google Tag Manager integration" v. 1.16.2 is loaded by WordPress automatically on each request
72 characters long description:
Google Tag Manager implementation focusing on flexibility and pagespeed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin5,427 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 970 | 1,930 | 3,467 |
Sass | 3 | 250 | 0 | 1,092 |
JavaScript | 17 | 144 | 78 | 813 |
XML | 1 | 33 | 68 | 43 |
JSON | 1 | 0 | 0 | 5 |
SVG | 5 | 0 | 0 | 5 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of 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.41 |
Average class complexity | 18.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 3 | 11.54% |
▷ Concrete classes | 23 | 88.46% |
▷ Final classes | 18 | 78.26% |
Methods | 238 | |
▷ Static methods | 43 | 18.07% |
▷ Public methods | 193 | 81.09% |
▷ Protected methods | 25 | 10.50% |
▷ Private methods | 20 | 8.40% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 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
12 PNG files occupy 0.72MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-2.png | 121.33KB | 81.79KB | ▼ 32.59% |
src/images/banner-1544x500.png | 12.06KB | 6.15KB | ▼ 49.00% |
assets/images/screenshot-1.png | 46.71KB | 29.24KB | ▼ 37.39% |
assets/images/screenshot-3.png | 27.45KB | 17.85KB | ▼ 34.99% |
src/images/banner-772x250.png | 2.24KB | 2.48KB | 0.00% |