Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.06ms] Passed 4 tests
A check of server-side resources used by CAOS | Host Google Analytics Locally
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.47 ▼3.71 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.20 ▼2.16 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.99 ▼4.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 92.81 ▼6.31 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.74 ▲1.93 |
Optimize Google Analytics /wp-admin/options-general.php?page=host_analyticsjs_local | 3.31 | 32.97 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
caos_settings |
caos_db_version |
theysaidso_admin_options |
can_compress_scripts |
caos_cron_file_aliases |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CAOS | Host Google Analytics Locally
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲84 | 14.22 ▼0.13 | 1.80 ▲0.05 | 38.85 ▼4.92 |
Dashboard /wp-admin | 2,196 ▲19 | 5.61 ▼0.06 | 91.07 ▼9.39 | 44.48 ▼2.10 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▲0.01 | 38.60 ▼0.76 | 35.25 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.25 ▲0.27 | 587.65 ▼63.25 | 47.16 ▼8.40 |
Media Library /wp-admin/upload.php | 1,395 ▼2 | 4.21 ▼0.06 | 99.07 ▼2.67 | 41.23 ▼2.45 |
Optimize Google Analytics /wp-admin/options-general.php?page=host_analyticsjs_local | 1,135 | 1.80 | 23.69 | 62.23 |
Uninstaller [IO: ▲0.11MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 9 options
- caos_cron_file_aliases
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- caos_settings
- can_compress_scripts
- caos_db_version
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CAOS_Admin_Settings_Builder' not found in wp-content/plugins/host-analyticsjs-local/includes/admin/settings/class-advanced.php:16
- > PHP Fatal error
Uncaught Error: Class 'CAOS_Admin_Settings_Builder' not found in wp-content/plugins/host-analyticsjs-local/includes/admin/settings/class-basic.php:16
- > PHP Fatal error
Uncaught Error: Class 'CAOS_Admin_Settings_Builder' not found in wp-content/plugins/host-analyticsjs-local/includes/admin/settings/class-help.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: analytics, leverage browser cache, locally, woocommerce, minimize external requests...
host-analyticsjs-local/host-analyticsjs-local.php Passed 13 tests
"CAOS | Host Google Analytics Locally" version 4.7.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
128 characters long description:
Completely optimize Google Analytics 4 for your WordPress Website - host gtag.js locally or use Minimal Analytics and much more!
Code Analysis Passed 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
There were no executable files found in this plugin2,486 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 574 | 1,523 | 2,145 |
LESS | 1 | 27 | 17 | 120 |
CSS | 2 | 0 | 18 | 107 |
JavaScript | 2 | 16 | 33 | 75 |
XML | 1 | 9 | 3 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 168 | |
▷ Static methods | 17 | 10.12% |
▷ Public methods | 133 | 79.17% |
▷ Protected methods | 3 | 1.79% |
▷ Private methods | 32 | 19.05% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 45 | |
▷ Global constants | 8 | 17.78% |
▷ Class constants | 37 | 82.22% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 5.29KB | 2.98KB | ▼ 43.74% |