Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.86MB] [CPU: ▲13.32ms] Passed 4 tests
Server-side resources used by Opt-Out for Google Analytics (DSGVO / GDPR)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.35 ▲0.88 | 54.51 ▲15.51 |
Dashboard /wp-admin | 4.17 ▲0.87 | 70.06 ▲20.53 |
Posts /wp-admin/edit.php | 4.22 ▲0.86 | 59.87 ▲11.09 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.87 | 105.10 ▲12.33 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 48.61 ▲14.33 |
GA Opt-Out /wp-admin/options-general.php?page=gaoo | 4.13 | 50.20 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Opt-Out for Google Analytics (DSGVO / GDPR)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲178 | 13.21 ▼1.16 | 2.06 ▲0.44 | 32.79 ▼12.42 |
Dashboard /wp-admin | 2,272 ▲87 | 5.90 ▲0.05 | 102.82 ▲3.03 | 45.57 ▼1.88 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.04 ▲0.04 | 37.08 ▼3.29 | 34.11 ▼4.18 |
Add New Post /wp-admin/post-new.php | 6,355 ▲4,821 | 27.89 ▲4.85 | 889.65 ▲196.14 | 60.83 ▲10.34 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.23 ▲0.02 | 99.48 ▼9.04 | 45.17 ▲1.60 |
GA Opt-Out /wp-admin/options-general.php?page=gaoo | 1,334 | 2.11 | 31.06 | 57.37 |
Uninstaller [IO: ▲0.28MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the followingZombie WordPress options detected upon uninstall: 6 options
- The plugin did not uninstall correctly, leaving 33 files (0.28MB) in the plugin directory
- (new file) assets/optout-block.js
- (new file) assets/icon.png
- (new file) assets/admin.js
- (new file) assets/public.min.js
- (new file) assets/index.php
- (new file) constants.php
- (new file) assets/public.js
- (new file) assets/tinymce.js
- (new file) assets/admin.css
- (new file) ga-opt-out.php
- ...
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/opt-out-for-google-analytics/templates/promotion.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant GAOO_LOCALE - assumed 'GAOO_LOCALE' (this will throw an Error in a future version of PHP) in wp-content/plugins/opt-out-for-google-analytics/templates/settings.php on line 1
- > PHP Notice
Undefined variable: promo in wp-content/plugins/opt-out-for-google-analytics/templates/promotion.php on line 5
- > PHP Notice
Undefined variable: popup in wp-content/plugins/opt-out-for-google-analytics/templates/promotion.php on line 1
- > PHP Notice
Undefined variable: popup in wp-content/plugins/opt-out-for-google-analytics/templates/promotion.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/opt-out-for-google-analytics/templates/settings.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/opt-out-for-google-analytics/templates/promotion.php on line 5
- > PHP Warning
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: dsgvo, google analytics, analytics, opt-out, gdpr
opt-out-for-google-analytics/ga-opt-out.php 85% from 13 tests
The principal PHP file in "Opt-Out for Google Analytics (DSGVO / GDPR)" v. 2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 203 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("opt-out-for-google-analytics.php" instead of "ga-opt-out.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected4,737 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 803 | 1,623 | 4,276 |
CSS | 1 | 60 | 2 | 248 |
JavaScript | 5 | 45 | 2 | 205 |
XML | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 153)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 74.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 286.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 153.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 32 | 18.39% |
▷ Public methods | 163 | 93.68% |
▷ Protected methods | 3 | 1.72% |
▷ Private methods | 8 | 4.60% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 0.59KB | 0.60KB | 0.00% |