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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼7.23ms] Passed 4 tests
This is a short check of server-side resources used by Google Analytics and Google Tag Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.20 | 44.83 ▲3.05 |
Dashboard /wp-admin | 3.50 ▲0.15 | 54.29 ▼9.94 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 51.60 ▲1.49 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 91.09 ▼19.55 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.67 ▼0.90 |
Google Analytics /wp-admin/options-general.php?page=google_analytics | 3.39 | 38.62 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 128 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Analytics and Google Tag Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.88 ▲0.67 | 10.12 ▲8.30 | 43.57 ▲3.10 |
Dashboard /wp-admin | 2,196 ▲16 | 5.48 ▼0.18 | 90.36 ▼5.28 | 38.02 ▼7.35 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▲0.06 | 40.05 ▼0.76 | 36.39 ▼2.57 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.11 ▲4.88 | 677.37 ▲49.81 | 58.96 ▼22.07 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▲0.01 | 104.80 ▲8.73 | 46.76 ▲1.96 |
Google Analytics /wp-admin/options-general.php?page=google_analytics | 910 | 2.06 | 32.26 | 27.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 96× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/PlentymarketsInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/ElggInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/UserFrostingInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/EzPlatformInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/PortoInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/WordPressInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/MODXEvoInstaller.php:8
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/wk-google-analytics/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:5
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wk-google-analytics/wk-ga.php 77% from 13 tests
The principal PHP file in "Google Analytics and Google Tag Manager" v. 1.11.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wk-google-analytics.php" instead of "wk-ga.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin4,120 lines of code in 120 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 113 | 652 | 1,082 | 3,131 |
PO File | 3 | 96 | 104 | 598 |
JavaScript | 2 | 35 | 18 | 204 |
JSON | 1 | 0 | 0 | 153 |
CSS | 1 | 13 | 6 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 103 | |
▷ Abstract classes | 1 | 0.97% |
▷ Concrete classes | 102 | 99.03% |
▷ Final classes | 1 | 0.98% |
Methods | 157 | |
▷ Static methods | 20 | 12.74% |
▷ Public methods | 111 | 70.70% |
▷ Protected methods | 38 | 24.20% |
▷ Private methods | 8 | 5.10% |
Functions | 10 | |
▷ Named functions | 2 | 20.00% |
▷ Anonymous functions | 8 | 80.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.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 images were found in this plugin