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
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.90ms] Passed 4 tests
Analyzing server-side resources used by Simple Matomo Tracking Code
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.36 ▲3.13 |
Dashboard /wp-admin | 3.36 ▲0.02 | 50.32 ▼18.51 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 47.66 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 94.38 ▼8.49 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 38.41 ▼1.12 |
All Posts /wp-admin/edit.php?post_type=book | 3.33 | 37.00 |
Add New /wp-admin/post-new.php?post_type=book | 3.40 | 49.36 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
MatomoAnalyticsPP |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Matomo Tracking Code
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.28 ▼0.07 | 1.76 ▲0.10 | 44.85 ▲1.64 |
Dashboard /wp-admin | 2,226 ▲52 | 5.66 ▲0.05 | 88.89 ▼8.32 | 36.09 ▼7.39 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 2.05 ▲0.03 | 35.53 ▼5.99 | 36.70 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,567 ▲27 | 18.27 ▼0.15 | 632.00 ▼1.70 | 51.65 ▲2.24 |
Media Library /wp-admin/upload.php | 1,431 ▲28 | 4.25 ▲0.01 | 95.93 ▼5.67 | 41.97 ▲0.74 |
All Posts /wp-admin/edit.php?post_type=book | 1,095 | 2.00 | 31.59 | 31.73 |
Simple Matomo Tracking Code /wp-admin/simple-matomo-tracking-code.php | 26 | 0.44 | 0.10 | 16.38 |
Add New /wp-admin/post-new.php?post_type=book | 2,179 | 7.57 | 187.29 | 62.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/simple-matomo-tracking-code.php
- > Network (severe)
wp-admin/simple-matomo-tracking-code.php - Failed to load resource: the server responded with a status of 404 (Not 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
5 plugin tags: matomo, piwik, statistics, analytics, stats
simple-matomo-tracking-code/simple-matomo-tracking-code.php Passed 13 tests
"Simple Matomo Tracking Code" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
This plugin makes it simple to add Matomo Web Analytics code to your WebSite.
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
There were no executable files found in this plugin259 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 43 | 36 | 259 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 8 | 88.89% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin