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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.43ms] Passed 4 tests
A check of server-side resources used by Integrate Umami
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.17 ▼4.06 |
Dashboard /wp-admin | 3.40 ▲0.05 | 44.05 ▼16.58 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 44.88 ▲2.67 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 80.62 ▲0.24 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.98 ▲5.87 |
Integrate Umami /wp-admin/options-general.php?page=integrate-umami | 3.31 | 37.12 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Integrate Umami
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.29 ▼0.27 | 1.66 ▲0.00 | 39.09 ▼5.93 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.09 | 84.48 ▼15.69 | 39.17 ▼2.83 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.06 | 36.79 ▲1.18 | 32.97 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 18.09 ▼5.02 | 632.52 ▼78.79 | 61.82 ▲3.77 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▼0.02 | 108.89 ▲5.27 | 43.96 ▼1.44 |
Integrate Umami /wp-admin/options-general.php?page=integrate-umami | 954 | 2.03 | 26.54 | 52.06 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Ancozockt\\Umami\\plugin_dir_path() in wp-content/plugins/integrate-umami/wp-umami.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/integrate-umami/inc/templates/settings-page.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: umami, analytics
integrate-umami/wp-umami.php 92% from 13 tests
The entry point to "Integrate Umami" version 0.5.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("integrate-umami.php" instead of "wp-umami.php")
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 detected1,639 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 183 | 519 | 922 |
Markdown | 2 | 136 | 0 | 610 |
JSON | 2 | 0 | 0 | 44 |
CSS | 1 | 7 | 0 | 33 |
XML | 1 | 7 | 2 | 30 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 16.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 22 | 40.00% |
▷ Public methods | 52 | 94.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.45% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected