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
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.18ms] Passed 4 tests
An overview of server-side resources used by Google Analytics alternative – Privacy and legally compliant – Fair Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.68 ▼3.43 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.39 ▼11.72 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 46.97 ▼11.59 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 86.35 ▼5.13 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.37 ▼4.29 |
Fair Analytics /wp-admin/options-general.php?page=dsgvo-analytics | 3.27 | 31.43 |
Server storage [IO: ▲5.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
dsgvo-analytics-service |
dsgvo-analytics-ID |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Google Analytics alternative – Privacy and legally compliant – Fair Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.73 ▼0.55 | 4.72 ▲2.75 | 45.42 ▲2.31 |
Dashboard /wp-admin | 2,213 ▲25 | 4.87 ▼1.00 | 112.44 ▼0.56 | 38.02 ▼9.57 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.05 ▲0.07 | 40.52 ▼0.95 | 36.28 ▼3.02 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.81 ▼0.29 | 674.41 ▼39.19 | 53.42 ▼11.20 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.29 ▲0.09 | 103.45 ▼18.19 | 47.25 ▼0.71 |
Fair Analytics /wp-admin/options-general.php?page=dsgvo-analytics | 917 | 2.07 | 32.03 | 62.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 8× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/fair-analytics/languages/index.php
- > /wp-content/plugins/fair-analytics/template/index.php
- > /wp-content/plugins/fair-analytics/assets/index.php
- > /wp-content/plugins/fair-analytics/fair-analytics.php
- > /wp-content/plugins/fair-analytics/assets/css/index.php
- > /wp-content/plugins/fair-analytics/template/main_page.php
- > /wp-content/plugins/fair-analytics/assets/js/index.php
- > /wp-content/plugins/fair-analytics/index.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
fair-analytics/fair-analytics.php 77% from 13 tests
Analyzing the main PHP file in "Google Analytics alternative – Privacy and legally compliant – Fair Analytics" version 1.1.3
It is important to fix the following:
- Domain Path: The domain path should use only dashes and lowercase characters ("fairanalytics")
- Domain Path: The domain path should be prefixed with a forward slash character ("/fairanalytics")
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 81 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,464 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 204 | 11 | 639 |
PO File | 2 | 184 | 326 | 520 |
PHP | 3 | 80 | 20 | 226 |
JavaScript | 2 | 63 | 4 | 78 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
6 PNG files occupy 0.32MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/fair-analytics-logo-negative.png | 9.08KB | 5.18KB | ▼ 42.95% |
assets/css/check-negative.png | 3.04KB | 1.53KB | ▼ 49.57% |
logo.png | 42.12KB | 22.98KB | ▼ 45.44% |
assets/css/check-fa.png | 1.13KB | 0.40KB | ▼ 64.25% |
assets/css/check-positive.png | 5.09KB | 1.13KB | ▼ 77.89% |