Benchmarks
Plugin footprint 83% 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.07MB] [CPU: ▼5.10ms] Passed 4 tests
An overview of server-side resources used by Fathom Analytics for WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.06 ▼4.09 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.50 ▼6.59 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.87 ▲5.76 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 85.34 ▼8.19 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.59 ▼1.52 |
Fathom Analytics /wp-admin/options-general.php?page=fathom-analytics | 3.26 | 30.77 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
fathom_exclude_roles |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Fathom Analytics for WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.34 ▼0.00 | 1.67 ▼0.27 | 39.82 ▼5.60 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.00 | 95.57 ▼3.30 | 42.66 ▼1.79 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.06 | 39.92 ▲0.76 | 34.96 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.06 ▼0.27 | 627.13 ▼130.95 | 51.63 ▼1.31 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.26 ▼0.00 | 96.27 ▼2.61 | 41.84 ▲0.18 |
Fathom Analytics /wp-admin/options-general.php?page=fathom-analytics | 873 | 2.01 | 28.47 | 34.00 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- fathom_exclude_roles
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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 no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/fathom-analytics/fathom-analytics.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: google analytics, stats, privacy, website analytics, web analytics...
fathom-analytics/fathom-analytics.php Passed 13 tests
The primary PHP file in "Fathom Analytics for WP" version 3.2.1 is used by WordPress to initiate all plugin functionality
77 characters long description:
Fathom analytics is a simple, GDPR-compliant alternative to Google Analytics.
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
No dangerous file extensions were detected283 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 158 | 216 |
Markdown | 1 | 41 | 0 | 48 |
SVG | 1 | 0 | 0 | 15 |
JavaScript | 2 | 1 | 7 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 3 | 30.00% |
▷ Class constants | 7 | 70.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.08MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 61.53KB | 61.50KB | 0.06% |
fathom.png | 0.74KB | 0.45KB | ▼ 39.29% |
screenshot-1.png | 19.99KB | 19.98KB | 0.06% |