73% openmost-site-kit

Code Review | Matomo Site Kit by Openmost

WordPress plugin Matomo Site Kit by Openmost scored73%from 54 tests.

About plugin

  • Plugin page: openmost-site-kit
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: May 17, 2023
  • Latest release: Jun 29, 2023
  • Number of updates: 48
  • Update frequency: every 1.0 days
  • Top authors: openmost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.10ms] Passed 4 tests

Analyzing server-side resources used by Matomo Site Kit by Openmost
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0726.41 ▼17.43
Dashboard /wp-admin3.48 ▲0.1747.31 ▼1.53
Posts /wp-admin/edit.php3.59 ▲0.2451.68 ▲5.06
Add New Post /wp-admin/post-new.php5.64 ▼0.2575.62 ▼21.39
Media Library /wp-admin/upload.php3.40 ▲0.1738.02 ▲3.94
Privacy /wp-admin/admin.php?page=omsk-privacy3.3432.99
Data Layer /wp-admin/admin.php?page=omsk-datalayer3.3433.25
Dashboard /wp-admin/admin.php?page=openmost-site-kit3.3430.60
General Settings /wp-admin/admin.php?page=omsk-settings3.3432.32

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Matomo Site Kit by Openmost
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12916.97 ▲2.741.90 ▼0.1139.11 ▼6.45
Dashboard /wp-admin2,254 ▲668.53 ▲3.63364.76 ▲247.5943.34 ▼0.76
Posts /wp-admin/edit.php2,146 ▲544.88 ▲2.8458.27 ▲22.4735.20 ▲3.43
Add New Post /wp-admin/post-new.php6,485 ▲4,94822.50 ▼0.64927.31 ▲278.1640.40 ▼14.66
Media Library /wp-admin/upload.php1,448 ▲576.64 ▲2.38120.93 ▲19.3541.92 ▼3.46
Privacy /wp-admin/admin.php?page=omsk-privacy8524.8042.4727.03
Data Layer /wp-admin/admin.php?page=omsk-datalayer9614.8240.8331.75
Dashboard /wp-admin/admin.php?page=openmost-site-kit8294.7644.6624.14
General Settings /wp-admin/admin.php?page=omsk-settings8964.6743.9728.22

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=omsk-settings
    • > Notice in wp-content/plugins/openmost-site-kit/includes/helpers.php+29
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/openmost-site-kit/openmost-site-kit.php
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function omsk_get_matomo_date() in wp-content/plugins/openmost-site-kit/modules/dashboard/views/widgets/channel-types.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/openmost-site-kit/modules/datalayer/admin.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/openmost-site-kit/modules/privacy/views/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/openmost-site-kit/modules/privacy/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/openmost-site-kit/modules/post-type-charts/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function omsk_get_matomo_period() in wp-content/plugins/openmost-site-kit/modules/dashboard/views/widgets/visits-summary.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/openmost-site-kit/modules/datalayer/views/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/openmost-site-kit/modules/dashboard/views/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/openmost-site-kit/modules/dashboard/views/widgets/pages.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function omsk_get_matomo_host() in wp-content/plugins/openmost-site-kit/modules/post-type-charts/views/index.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: analytic, site, statistics, kit, analytics...

openmost-site-kit/openmost-site-kit.php Passed 13 tests

The main PHP script in "Matomo Site Kit by Openmost" version 1.1.0 is automatically included on every request by WordPress
90 characters long description:
A complete Matomo integration for WordPress with dashboard, data layer and code injection.

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
Success! There were no dangerous files found in this plugin99,865 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript519,12729,04282,589
JSON30015,855
PHP35288301,238
PO File14654119
Sass39032
CSS11028
SVG1004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions73
▷ Named functions73100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin