90% webstats-matomo

Code Review | Website statistics with Matomo

WordPress plugin Website statistics with Matomo scored90%from 54 tests.

About plugin

  • Plugin page: webstats-matomo
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 8, 2022
  • Latest release: Aug 14, 2023
  • Number of updates: 18
  • Update frequency: every 27.4 days
  • Top authors: awelzel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.41ms] Passed 4 tests

An overview of server-side resources used by Website statistics with Matomo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.15 ▲5.26
Dashboard /wp-admin3.32 ▲0.0245.71 ▲0.96
Posts /wp-admin/edit.php3.37 ▲0.0149.06 ▼3.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.79 ▲1.14
Media Library /wp-admin/upload.php3.24 ▲0.0135.70 ▲3.48
Website statistics with Matomo /wp-admin/options-general.php?page=webstats-matomo3.2131.50

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Website statistics with Matomo
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.37 ▼0.241.60 ▲0.0840.16 ▼5.57
Dashboard /wp-admin2,232 ▲555.54 ▼0.1385.47 ▲0.1038.15 ▼5.81
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0439.60 ▲2.1435.41 ▲0.90
Add New Post /wp-admin/post-new.php1,529 ▲323.14 ▼0.43703.95 ▲2.7558.12 ▲0.12
Media Library /wp-admin/upload.php1,401 ▲14.20 ▲0.0493.64 ▼14.3344.97 ▼1.17
Website statistics with Matomo /wp-admin/options-general.php?page=webstats-matomo8981.9925.4431.19

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
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: statistics

webstats-matomo/webstats-matomo.php Passed 13 tests

This is the main PHP file of "Website statistics with Matomo" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
42 characters long description:
Get statistics of your website with Matomo

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected321 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21964249
PO File1212272

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 code0.20
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin