Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.58MB] [CPU: ▼1.63ms] 75% from 4 tests
Analyzing server-side resources used by Connect Matomo (WP-Matomo, WP-Piwik)
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 1,643.70ms on /wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 46.38 ▲6.17 |
Dashboard /wp-admin | 3.99 ▲0.64 | 58.37 ▼2.45 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 55.51 ▲5.54 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 95.37 ▼15.77 |
Media Library /wp-admin/upload.php | 3.93 ▲0.70 | 51.46 ▲15.17 |
Connect Matomo /wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php | 3.93 | 1,643.70 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 144 new files
Database: no new tables, 54 new options
New WordPress options |
---|
can_compress_scripts |
wp-piwik_global-track_user_id |
widget_recent-comments |
wp-piwik-dashboard_revision |
wp-piwik_global-filter_limit |
wp-piwik-site_id |
wp-piwik_global-add_download_extensions |
wp-piwik_global-set_link_classes |
wp-piwik_global-track_content |
wp-piwik_global-capability_stealth |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Connect Matomo (WP-Matomo, WP-Piwik)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 14.28 ▲0.31 | 1.68 ▲0.09 | 48.70 ▲5.40 |
Dashboard /wp-admin | 2,202 ▲34 | 5.61 ▲0.04 | 88.12 ▼0.78 | 39.71 ▼4.27 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▲0.06 | 39.60 ▼2.08 | 36.11 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.46 ▼0.15 | 683.08 ▲27.28 | 54.41 ▼2.24 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.22 ▲0.03 | 96.73 ▼6.57 | 42.45 ▲0.49 |
Connect Matomo /wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php | 2,742 | 2.02 | 23.38 | 24.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 16 options
- wp-piwik_global-set_link_classes
- wp-piwik_global-filter_limit
- widget_recent-comments
- wp-piwik_global-track_heartbeat
- wp-piwik_global-http_method
- widget_recent-posts
- wp-piwik_global-http_connection
- wp-piwik_global-set_download_extensions
- db_upgraded
- widget_theysaidso_widget
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-piwik/proxy/matomo.php
- > /wp-content/plugins/wp-piwik/proxy/piwik.php
- 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Template' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Template/MetaBoxCustomVars.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Widget' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Plugins.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Widget' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Post.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Widget' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Types.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Admin' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Statistics.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Widget' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Country.php:7
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wp-piwik/update/2015051101.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Widget\\Visitors' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Widget/Chart.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Piwik\\Admin' not found in wp-content/plugins/wp-piwik/classes/WP_Piwik/Admin/Settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/wp-piwik/update/91006.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (WP-Matomo settings.), #2 (WP-Matomo statistics page.), #3 (Closer look to a pie chart.), #4 (WordPress toolbar graph.), #5 (Matomo: Here you'll find your auth token.)
wp-piwik/wp-piwik.php Passed 13 tests
The entry point to "Connect Matomo (WP-Matomo, WP-Piwik)" version 1.0.30 is a PHP file that has certain tags in its header comment area
113 characters long description:
Adds Matomo statistics to your WordPress dashboard and is also able to add the Matomo Tracking Code to your blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected26,437 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 29 | 9,017 | 11,508 | 21,378 |
PHP | 58 | 635 | 972 | 4,380 |
HTML | 1 | 125 | 0 | 567 |
CSS | 1 | 15 | 0 | 59 |
Markdown | 3 | 17 | 0 | 37 |
JavaScript | 2 | 0 | 11 | 6 |
Bourne Shell | 1 | 0 | 0 | 5 |
XML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 19.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 4 | 9.30% |
▷ Concrete classes | 39 | 90.70% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 11 | 4.42% |
▷ Public methods | 140 | 56.22% |
▷ Protected methods | 35 | 14.06% |
▷ Private methods | 74 | 29.72% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
bitcoin.png | 1.97KB | 0.78KB | ▼ 60.54% |