Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/tag-manager-web-analytics-for-amp/admin/misc.php+11
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.22ms] Passed 4 tests
Analyzing server-side resources used by Google Tag Manager & Google Analytics for AMP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 6.20 ▼35.31 |
Dashboard /wp-admin | 2.05 ▼1.26 | 8.38 ▼41.80 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 7.34 ▼47.93 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.46 ▼95.85 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.64 ▼30.68 |
Dashboard /wp-admin/admin.php?page=gtm-ga-amp | 2.05 | 7.29 |
Google Analytics /wp-admin/admin.php?page=google-analytics | 2.05 | 6.83 |
Google Tag Manager /wp-admin/admin.php?page=google-tag-manager | 2.05 | 8.68 |
Server storage [IO: ▲0.05MB] [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: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Google Tag Manager & Google Analytics for AMP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.25 ▼1.12 | 1.98 ▲0.33 | 43.13 ▲1.89 |
Dashboard /wp-admin | 2,237 ▲49 | 5.79 ▼0.03 | 96.35 ▼4.26 | 40.95 ▼2.74 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 1.99 ▼0.06 | 38.55 ▼2.34 | 31.91 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 23.40 ▲5.88 | 584.47 ▼97.74 | 59.16 ▲5.34 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.24 ▲0.03 | 96.88 ▲1.59 | 43.20 ▼2.43 |
Dashboard /wp-admin/admin.php?page=gtm-ga-amp | 894 | 2.18 | 22.90 | 27.60 |
Google Analytics /wp-admin/admin.php?page=google-analytics | 986 | 2.15 | 22.71 | 30.13 |
Google Tag Manager /wp-admin/admin.php?page=google-tag-manager | 832 | 2.06 | 23.56 | 28.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/tag-manager-web-analytics-for-amp/admin/misc.php+11
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=google-tag-manager
- > Notice in wp-content/plugins/tag-manager-web-analytics-for-amp/admin/gtm.php+25
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=google-analytics
- > Warning in wp-admin/includes/template.php+1771
call_user_func() expects parameter 1 to be a valid callback, function 'gtm_ga_amp_ga_section_cd_cb' not found or invalid function name
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-manager-web-analytics-for-amp/admin/ga.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-manager-web-analytics-for-amp/admin/gtm.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-manager-web-analytics-for-amp/public/ga.php:170
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-manager-web-analytics-for-amp/public/gtm.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tag-manager-web-analytics-for-amp/admin/misc.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in tag-manager-web-analytics-for-amp/assets to your readme.txt
tag-manager-web-analytics-for-amp/gtm-ga-wordpress-amp.php 92% from 13 tests
The primary PHP file in "Google Tag Manager & Google Analytics for AMP" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("tag-manager-web-analytics-for-amp.php" instead of "gtm-ga-wordpress-amp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin472 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 74 | 143 | 472 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 35 | |
▷ Named functions | 35 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected