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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.50ms] Passed 4 tests
Server-side resources used by Analytics Event Tracking for GTAG
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.71 ▼1.11 |
Dashboard /wp-admin | 3.35 ▲0.04 | 45.70 ▼5.24 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.29 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 95.21 ▼1.32 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.28 ▲3.37 |
GTAG Event Options /wp-admin/options-general.php?page=dd-gtag-options | 3.24 | 31.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Analytics Event Tracking for GTAG
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.61 ▼0.78 | 5.23 ▲3.19 | 41.02 ▼11.63 |
Dashboard /wp-admin | 2,214 ▲26 | 5.84 ▲0.97 | 93.97 ▼23.02 | 38.68 ▼5.28 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.03 | 39.89 ▲2.92 | 35.74 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,537 ▲17 | 23.40 ▲0.24 | 653.96 ▼56.18 | 61.40 ▲3.46 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.30 ▲0.19 | 95.96 ▼18.55 | 41.13 ▼6.96 |
GTAG Event Options /wp-admin/options-general.php?page=dd-gtag-options | 796 | 2.06 | 24.33 | 25.32 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: gtag, google analytics, events, analytics events
dd-gtag-event-tracking/gtag-event-tracking.php 77% from 13 tests
This is the main PHP file of "Analytics Event Tracking for GTAG" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "5.6")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dd-gtag-event-tracking.php" instead of "gtag-event-tracking.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin273 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 48 | 35 | 140 |
JavaScript | 5 | 4 | 4 | 120 |
CSS | 2 | 3 | 51 | 13 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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