Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▼0.37ms] Passed 4 tests
Analyzing server-side resources used by Plausible Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 42.18 ▼2.69 |
Dashboard /wp-admin | 3.81 ▲0.51 | 52.81 ▲4.85 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 49.11 ▼1.48 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 88.55 ▼2.14 |
Media Library /wp-admin/upload.php | 3.67 ▲0.44 | 41.80 ▲9.33 |
Analytics /wp-admin/index.php?page=plausible_analytics_statistics | 3.64 | 41.93 |
Plausible Analytics /wp-admin/options-general.php?page=plausible_analytics | 3.64 | 38.23 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
plausible_analytics_proxy_resources |
plausible_analytics_is_default_settings_saved |
widget_recent-posts |
can_compress_scripts |
plausible_analytics_settings |
plausible_analytics_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Plausible Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲44 | 14.33 ▼0.02 | 1.86 ▲0.08 | 44.50 ▲3.44 |
Dashboard /wp-admin | 2,225 ▲48 | 5.63 ▼0.02 | 85.05 ▼14.11 | 36.92 ▼5.85 |
Posts /wp-admin/edit.php | 2,124 ▲21 | 1.98 ▲0.00 | 35.62 ▼5.69 | 35.77 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.09 ▲0.00 | 693.90 ▲87.34 | 54.91 ▲3.39 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.23 ▲0.02 | 100.84 ▼6.33 | 43.54 ▲0.36 |
Analytics /wp-admin/index.php?page=plausible_analytics_statistics | 826 | 2.00 | 24.23 | 32.39 |
Plausible Analytics /wp-admin/options-general.php?page=plausible_analytics | 1,280 | 2.02 | 22.83 | 42.77 |
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 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Plausible\\Analytics\\WP\\Admin\\Settings\\wp_die() in wp-content/plugins/plausible-analytics/src/Admin/Settings/API.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function Plausible\\Analytics\\WP\\Admin\\Settings\\wp_die() in wp-content/plugins/plausible-analytics/src/Admin/Settings/Page.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% 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 to be fixed:
- Screenshots: No descriptions were found for these screenshots #3, #4, #5 in plausible-analytics/assets to your readme.txt
plausible-analytics/plausible-analytics.php Passed 13 tests
The main file in "Plausible Analytics" v. 1.3.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
60 characters long description:
Simple and privacy-friendly alternative to Google Analytics.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,301 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 479 | 1,409 | 2,141 |
JSON | 1 | 0 | 0 | 154 |
YAML | 1 | 0 | 0 | 3 |
CSS | 2 | 0 | 2 | 2 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 13.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 136 | |
▷ Static methods | 37 | 27.21% |
▷ Public methods | 116 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 14.71% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/icon.png | 4.23KB | 3.68KB | ▼ 12.86% |