Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.88ms] Passed 4 tests
A check of server-side resources used by Sugoi Tag Inserter: GTM & gtag.js Made Easy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 27.24 ▼14.62 |
Dashboard /wp-admin | 3.34 ▲0.04 | 52.15 ▲1.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.91 ▼6.04 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.86 ▼12.17 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 49.81 ▲15.14 |
Sugoi Tag Inserter for Google Ads & Analytics /wp-admin/options-general.php?page=sugoi-tag-inserter | 3.30 | 36.46 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/sugoi-tag-inserter/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/sugoi-tag-inserter/_modules/icons/icon-256\303\227256.png"
- (new file) "wp-content/plugins/sugoi-tag-inserter/_modules/icons/icon-128\303\227128.png"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Sugoi Tag Inserter: GTM & gtag.js Made Easy: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.37 ▼0.19 | 1.74 ▲0.16 | 31.65 ▼8.32 |
Dashboard /wp-admin | 2,208 ▲28 | 5.59 ▼0.01 | 96.81 ▲4.98 | 53.97 ▲8.26 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.06 | 37.81 ▲1.22 | 44.29 ▲9.01 |
Add New Post /wp-admin/post-new.php | 1,688 ▲159 | 22.62 ▼0.49 | 657.25 ▲15.99 | 69.55 ▲13.65 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.16 ▼0.02 | 103.27 ▼4.09 | 53.85 ▲7.49 |
Sugoi Tag Inserter for Google Ads & Analytics /wp-admin/options-general.php?page=sugoi-tag-inserter | 1,054 | 2.21 | 28.66 | 81.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sugoi-tag-inserter/_modules/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sugoi-tag-inserter/sugotag.php:210
- > 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 96% from 29 tests
readme.txt Passed 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
5 plugin tags: google analytics, google, google tag manager, google ads, gtm
sugoi-tag-inserter/sugotag.php 92% from 13 tests
The main PHP script in "Sugoi Tag Inserter: GTM & gtag.js Made Easy" version 1.0.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("sugoi-tag-inserter.php" instead of "sugotag.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected528 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 72 | 260 |
JavaScript | 1 | 22 | 11 | 181 |
CSS | 2 | 12 | 6 | 47 |
Markdown | 1 | 9 | 0 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_modules/icons/icon-256×256.png | 17.04KB | 4.66KB | ▼ 72.62% |
_modules/icons/icon-128×128.png | 1.98KB | 1.01KB | ▼ 49.02% |
_modules/icons/icon_128.png | 1.98KB | 1.01KB | ▼ 49.02% |