Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.56MB] [CPU: ▼15.80ms] Passed 4 tests
An overview of server-side resources used by GTM+ WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 40.59 ▲4.92 |
Dashboard /wp-admin | 3.42 ▲0.12 | 43.13 ▼8.46 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 46.43 ▲0.18 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.59 | 35.64 ▼53.35 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.30 ▼1.58 |
GTM /wp-admin/options-general.php?page=gtm4wordpress | 3.31 | 31.39 |
Server storage [IO: ▲11.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3,775 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for GTM+ WordPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.80 ▲0.42 | 1.80 ▲0.02 | 43.56 ▲3.08 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.03 | 106.84 ▲0.65 | 40.90 ▼3.70 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.05 ▼0.01 | 39.54 ▼1.64 | 34.77 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 23.44 ▲5.78 | 691.32 ▼0.94 | 62.68 ▲6.83 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.20 ▼0.04 | 97.68 ▼9.62 | 45.35 ▲2.72 |
GTM /wp-admin/options-general.php?page=gtm4wordpress | 918 | 2.06 | 26.04 | 28.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3560× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/gtmpluswp/vendor/google/auth/tests/Credentials/UserRefreshCredentialsTest.php:37
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/ServiceBroker/GoogleIamV1Policy.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Collection' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/ServiceUsage/Type.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/Testing/GoogleAuto.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/Manager/DiskAttachment.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Service_Resource' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/Analytics/Resource/Data.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/Manager/ReplicaPoolParams.php:18
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/AdExchangeBuyer/CreativeNativeAdImage.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/gtmpluswp/vendor/guzzlehttp/psr7/src/BufferStream.php:14
- > PHP Fatal error
Uncaught Error: Class 'Google_Model' not found in wp-content/plugins/gtmpluswp/vendor/google/apiclient-services/src/Google/Service/Analytics/EntityUserLinkEntity.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% 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
5 plugin tags: wordpress, tag management, tag container, google tag manager, gtm
gtmpluswp/gtm4wordpress.php 62% from 13 tests
This is the main PHP file of "GTM+ WordPress" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: Required version does not match the one declared in readme.txt ("4.6" instead of "4.3.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gtmpluswp.php" instead of "gtm4wordpress.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
Code Analysis 97% from 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 detected259,898 lines of code in 3,744 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3,684 | 16,411 | 118,210 | 253,979 |
Markdown | 33 | 1,450 | 0 | 4,585 |
JSON | 18 | 0 | 0 | 1,164 |
YAML | 4 | 19 | 0 | 97 |
XML | 4 | 7 | 0 | 64 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 628.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 39 | |
Interfaces | 28 | |
Traits | 6 | |
Classes | 3,675 | |
▷ Abstract classes | 10 | 0.27% |
▷ Concrete classes | 3,665 | 99.73% |
▷ Final classes | 10 | 0.27% |
Methods | 25,796 | |
▷ Static methods | 149 | 0.58% |
▷ Public methods | 25,326 | 98.18% |
▷ Protected methods | 211 | 0.82% |
▷ Private methods | 259 | 1.00% |
Functions | 292 | |
▷ Named functions | 78 | 26.71% |
▷ Anonymous functions | 214 | 73.29% |
Constants | 830 | |
▷ Global constants | 21 | 2.53% |
▷ Class constants | 809 | 97.47% |
▷ Public constants | 809 | 100.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 files were detected