Benchmarks
Plugin footprint 65% 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.13MB] [CPU: ▼4.74ms] Passed 4 tests
This is a short check of server-side resources used by Cookieless Analytics - Self Hosted Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 37.04 ▼3.24 |
Dashboard /wp-admin | 3.43 ▲0.12 | 48.79 ▼0.31 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 44.96 ▼3.26 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.61 ▼10.79 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.86 ▼1.67 |
Cookieless Analytics /wp-admin/index.php?page=cookieless-analytics | 3.31 | 31.85 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 46 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_ckls_analytics |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Cookieless Analytics - Self Hosted Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,118 ▲372 | 23.46 ▲8.83 | 31.59 ▲29.72 | 42.08 ▼1.50 |
Dashboard /wp-admin | 2,503 ▲317 | 11.11 ▲6.17 | 254.07 ▲146.35 | 61.52 ▲16.60 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 3.92 ▲1.91 | 52.03 ▲10.68 | 35.37 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,369 ▼151 | 17.79 ▼5.39 | 552.64 ▼123.44 | 27.95 ▼33.77 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 5.50 ▲1.40 | 105.17 ▼5.82 | 42.30 ▼5.26 |
Cookieless Analytics /wp-admin/index.php?page=cookieless-analytics | 1,172 | 8.19 | 272.26 | 72.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_ckls_analytics
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/index.php?page=cookieless-analytics
- > Javascript (severe) in unknown
/wp-content/plugins/cookieless-analytics/admin/app/dist/bundle.js?ver=1.0.0 1:158786 Uncaught Error: Minified React error #299; visit https://reactjs.o… for full errors and additional helpful warnings.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: ga4, statistics, metrics, analytics, statistic...
cookieless-analytics/cookieless-analytics.php 85% from 13 tests
The main file in "Cookieless Analytics - Self Hosted Analytics" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/languages *")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,635 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 194 | 191 | 725 |
JavaScript | 14 | 184 | 29 | 608 |
JSX | 2 | 49 | 19 | 235 |
Sass | 1 | 5 | 0 | 34 |
CSS | 2 | 8 | 5 | 32 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 6 | 10.53% |
▷ Public methods | 51 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.53% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
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 |
admin/app/assets/dash-logo-white.png | 8.83KB | 3.85KB | ▼ 56.41% |