Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.75MB] [CPU: ▲10.08ms] Passed 4 tests
Analyzing server-side resources used by Local Google Analytics for Wordpress - caches external requests
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.60 ▲1.14 | 45.81 ▲9.14 |
Dashboard /wp-admin | 5.27 ▲1.97 | 60.84 ▲11.42 |
Posts /wp-admin/edit.php | 5.31 ▲1.95 | 62.25 ▲10.44 |
Add New Post /wp-admin/post-new.php | 7.86 ▲1.97 | 103.26 ▲9.31 |
Media Library /wp-admin/upload.php | 5.18 ▲1.95 | 53.00 ▲17.15 |
Local Google Analytics /wp-admin/options-general.php?page=ga_cache-wbcr_gac | 6.10 | 310.75 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 240 new files
Database: no new tables, 9 new options
New WordPress options |
---|
wbcr_gac_plugin_version |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
wbcr_gac_is_migrate_up_to_230 |
wbcr_gac_plugin_activated |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Local Google Analytics for Wordpress - caches external requests
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲97 | 14.35 ▲0.08 | 1.72 ▼0.04 | 42.97 ▲5.75 |
Dashboard /wp-admin | 2,289 ▲114 | 5.72 ▼0.02 | 95.17 ▼23.14 | 40.02 ▼2.35 |
Posts /wp-admin/edit.php | 2,198 ▲98 | 2.18 ▲0.23 | 42.31 ▲0.83 | 36.83 ▼1.01 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.29 ▼0.25 | 603.00 ▲2.65 | 34.58 ▼17.70 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.20 ▼0.02 | 97.56 ▲0.85 | 41.03 ▼1.19 |
Local Google Analytics /wp-admin/options-general.php?page=ga_cache-wbcr_gac | 1,457 | 2.48 | 47.57 | 39.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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
Good news, no errors were detected
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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_FactoryForms469_FontControl' not found in wp-content/plugins/simple-google-analytics/libs/factory/forms/controls/google-font.php:18
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/simple-google-analytics/libs/factory/templates/pages/setup-parts/class-step-custom.php:11
- > PHP Fatal error
Uncaught Error: Class 'WBCR\\Factory_Templates_126\\Pages\\Step' not found in wp-content/plugins/simple-google-analytics/libs/factory/templates/pages/setup-parts/class-step-form.php:11
- > PHP Fatal error
Uncaught Error: Class 'Wbcr_Factory473_Update' not found in wp-content/plugins/simple-google-analytics/migrations/030002.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: gtag, google analytics plugin, analytics, google analytics dashboard, google analytics widget...
simple-google-analytics/simple_google_analytics.php 85% from 13 tests
Analyzing the main PHP file in "Local Google Analytics for Wordpress - caches external requests" version 3.2.7
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-google-analytics.php" instead of "simple_google_analytics.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 423 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin19,935 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 3,545 | 8,479 | 11,830 |
CSS | 25 | 166 | 251 | 2,570 |
LESS | 6 | 409 | 91 | 1,973 |
JSON | 1 | 0 | 0 | 1,810 |
PO File | 10 | 266 | 328 | 1,138 |
JavaScript | 15 | 185 | 199 | 612 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 16.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 1 | |
Classes | 103 | |
▷ Abstract classes | 17 | 16.50% |
▷ Concrete classes | 86 | 83.50% |
▷ Final classes | 0 | 0.00% |
Methods | 771 | |
▷ Static methods | 28 | 3.63% |
▷ Public methods | 549 | 71.21% |
▷ Protected methods | 146 | 18.94% |
▷ Private methods | 76 | 9.86% |
Functions | 43 | |
▷ Named functions | 18 | 41.86% |
▷ Anonymous functions | 25 | 58.14% |
Constants | 65 | |
▷ Global constants | 54 | 83.08% |
▷ Class constants | 11 | 16.92% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/factory/templates/pages/templates/impressive-lite/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |
libs/factory/templates/pages/templates/impressive/assets/img/webcraftic-plugin-icon.png | 1.97KB | 0.75KB | ▼ 61.79% |
libs/factory/templates/pages/templates/impressive/assets/img/5-stars22.png | 3.51KB | 0.70KB | ▼ 79.99% |
libs/factory/templates/pages/templates/impressive/assets/img/paypal-donate.png | 12.44KB | 4.99KB | ▼ 59.88% |
libs/factory/templates/pages/templates/impressive-lite/assets/img/paypal-donate.png | 12.44KB | 4.99KB | ▼ 59.88% |