Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.39ms] Passed 4 tests
Server-side resources used by WP VisitorFlow
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 42.58 ▼2.45 |
Dashboard /wp-admin | 3.57 ▲0.26 | 44.08 ▼5.30 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 47.20 ▼6.21 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.22 | 96.48 ▲4.42 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 47.14 ▲13.72 |
Full Website /wp-admin/admin.php?page=wpvf_mode_website | 3.46 | 56.84 |
Single Page /wp-admin/admin.php?page=wpvf_mode_singlepage | 3.48 | 31.70 |
Overview /wp-admin/admin.php?page=wpvf_menu | 3.43 | 33.61 |
Data Export /wp-admin/admin.php?page=wpvf_admin_export | 3.48 | 32.39 |
Settings /wp-admin/admin.php?page=wpvf_admin_settings | 3.57 | 32.49 |
Server storage [IO: ▲2.76MB] [DB: ▲0.01MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification detected: 2 files (0.00KB) outside of "wp-content/plugins/wp-visitorflow/" and "wp-content/uploads/"
- (new file) wp-content/extensions/wp-visitorflow/cache/.empty
- (new file) wp-content/extensions/wp-visitorflow/export/.empty
Filesystem: 198 new files
Database: 5 new tables, 8 new options
New tables |
---|
wp_visitorflow_meta |
wp_visitorflow_visits |
wp_visitorflow_pages |
wp_visitorflow_flow |
wp_visitorflow_aggregation |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
wp_visitorflow_plugin_version |
db_upgraded |
wp_visitorflow |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP VisitorFlow
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲209 | 13.74 ▼0.84 | 1.76 ▼0.39 | 42.63 ▼9.82 |
Dashboard /wp-admin | 2,382 ▲197 | 5.03 ▼0.12 | 104.17 ▼9.10 | 42.91 ▼1.32 |
Posts /wp-admin/edit.php | 2,149 ▲57 | 2.04 ▲0.04 | 36.56 ▼7.23 | 37.85 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,550 ▲14 | 22.29 ▼0.77 | 712.84 ▲54.28 | 56.19 ▼0.54 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.20 ▲0.03 | 127.42 ▲19.80 | 57.32 ▲11.05 |
Full Website /wp-admin/admin.php?page=wpvf_mode_website | 1,344 | 2.21 | 35.64 | 33.17 |
Single Page /wp-admin/admin.php?page=wpvf_mode_singlepage | 1,020 | 1.92 | 27.06 | 25.96 |
Overview /wp-admin/admin.php?page=wpvf_menu | 1,840 | 3.16 | 80.32 | 45.29 |
Data Export /wp-admin/admin.php?page=wpvf_admin_export | 865 | 2.07 | 26.25 | 22.43 |
Settings /wp-admin/admin.php?page=wpvf_admin_settings | 1,355 | 2.06 | 26.08 | 37.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 35 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpvf_menu
- > Notice in wp-content/plugins/wp-visitorflow/includes/views/tables/table-dbinfo.php+94
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=wpvf_mode_singlepage
- > Notice in wp-content/plugins/wp-visitorflow/includes/classes/class-wp-visitorflow-admin-single.php+122
Trying to get property 'title' of non-object
- > GET request to /wp-admin/admin.php?page=wpvf_mode_singlepage
- > Notice in wp-content/plugins/wp-visitorflow/includes/classes/class-wp-visitorflow-admin-single.php+124
Trying to get property 'f_post_id' of non-object
SRP 0% 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 perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-visitorflow/vendor/mustangostang/spyc/examples/yaml-load.php
- > /wp-content/plugins/wp-visitorflow/vendor/mustangostang/spyc/php4/5to4.php
- 79× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/wp-visitorflow/vendor/doctrine/cache/lib/Doctrine/Common/Cache/RedisCache.php:31
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/wp-visitorflow/vendor/doctrine/cache/lib/Doctrine/Common/Cache/PredisCache.php:12
- > PHP Fatal error
Uncaught Error: Call to a member function setQueries() on null in wp-content/plugins/wp-visitorflow/includes/views/analysis/website-visitors.php:20
- > PHP Notice
Undefined variable: timeframePage in wp-content/plugins/wp-visitorflow/includes/views/analysis/single-timeline.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Device\\AbstractDeviceParser' not found in wp-content/plugins/wp-visitorflow/vendor/matomo/device-detector/Parser/Device/Camera.php:18
- > PHP Fatal error
Uncaught Error: Class 'Doctrine\\Common\\Cache\\CacheProvider' not found in wp-content/plugins/wp-visitorflow/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ArrayCache.php:33
- > PHP Notice
Undefined variable: db in wp-content/plugins/wp-visitorflow/includes/views/analysis/website-single-flow.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Client\\AbstractClientParser' not found in wp-content/plugins/wp-visitorflow/vendor/matomo/device-detector/Parser/Client/PIM.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Client\\AbstractClientParser' not found in wp-content/plugins/wp-visitorflow/vendor/matomo/device-detector/Parser/Client/Library.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeviceDetector\\Parser\\Client\\AbstractClientParser' not found in wp-content/plugins/wp-visitorflow/vendor/matomo/device-detector/Parser/Client/MediaPlayer.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
These attributes need your attention:
- Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: A description for screenshot #5 is missing in wp-visitorflow/assets to your readme.txt
wp-visitorflow/wp-visitorflow.php Passed 13 tests
The main file in "WP VisitorFlow" v. 1.6.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Detailed web analytics and visualization of your website's visitor flow
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin57,197 lines of code in 166 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 19 | 2,116 | 1,474 | 22,673 |
JavaScript | 20 | 1,413 | 3,437 | 17,131 |
PHP | 115 | 2,849 | 5,314 | 13,490 |
PO File | 2 | 941 | 1,728 | 2,082 |
CSS | 7 | 100 | 67 | 1,522 |
JSON | 1 | 0 | 0 | 191 |
Ant | 1 | 13 | 0 | 97 |
Markdown | 1 | 5 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 6 | 8.11% |
▷ Concrete classes | 68 | 91.89% |
▷ Final classes | 0 | 0.00% |
Methods | 549 | |
▷ Static methods | 98 | 17.85% |
▷ Public methods | 305 | 55.56% |
▷ Protected methods | 174 | 31.69% |
▷ Private methods | 70 | 12.75% |
Functions | 29 | |
▷ Named functions | 26 | 89.66% |
▷ Anonymous functions | 3 | 10.34% |
Constants | 42 | |
▷ Global constants | 4 | 9.52% |
▷ Class constants | 38 | 90.48% |
▷ Public constants | 38 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
22 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/Arrow-4p.png | 1.15KB | 1.14KB | ▼ 0.94% |
assets/images/tabicon_zoom_in.png | 1.00KB | 1.03KB | 0.00% |
assets/images/Arrow-3m.png | 0.88KB | 0.52KB | ▼ 41.14% |
assets/images/tabicon_zoom_out.png | 0.95KB | 0.94KB | ▼ 1.43% |
assets/images/tabicon_all.png | 0.51KB | 0.39KB | ▼ 22.80% |