Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.68ms] 75% from 4 tests
This is a short check of server-side resources used by AJdG Matomo Tracker
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,334.63ms on /wp-admin/tools.php?page=matomo-tracker)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.77 ▼8.47 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.31 ▼19.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.16 ▲0.69 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.09 ▼2.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.28 ▼0.41 |
Matomo Tracker /wp-admin/tools.php?page=matomo-tracker | 4.44 | 1,334.63 |
Server storage [IO: ▲0.05MB] [DB: ▲0.10MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 17 new options
New WordPress options |
---|
ajdg_matomo_hide_review |
ajdg_matomo_track_error_pages |
ajdg_matomo_siteurl |
ajdg_matomo_heartbeat_enable |
ajdg_matomo_wc_downloads |
ajdg_matomo_track_feed_impressions |
widget_recent-posts |
ajdg_matomo_high_accuracy |
ajdg_matomo_track_feed_clicks |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for AJdG Matomo Tracker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.34 ▼0.02 | 1.57 ▼0.22 | 44.42 ▲0.64 |
Dashboard /wp-admin | 2,198 ▲24 | 5.57 ▼0.06 | 86.23 ▼14.80 | 38.10 ▼6.50 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.99 ▲0.02 | 42.72 ▲5.91 | 34.60 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.54 ▼0.19 | 701.99 ▲12.32 | 68.71 ▲3.27 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.15 ▼0.05 | 92.82 ▼13.06 | 46.03 ▲2.30 |
Matomo Tracker /wp-admin/tools.php?page=matomo-tracker | 1,188 | 2.11 | 25.15 | 42.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.10MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
matomo-analytics/ajdg-matomo-tracker.php 85% from 13 tests
The main file in "AJdG Matomo Tracker" v. 1.2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("matomo-analytics.php" instead of "ajdg-matomo-tracker.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected418 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 96 | 117 | 397 |
CSS | 1 | 2 | 2 | 21 |
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.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
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 |
images/notification.png | 4.16KB | 1.91KB | ▼ 54.05% |