Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼295.07ms] Passed 4 tests
Server-side resources used by Journey Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.25 | 55.18 ▲2.32 |
Dashboard /wp-admin | 3.63 ▲0.22 | 38.17 ▲3.82 |
Posts /wp-admin/edit.php | 3.85 ▲0.21 | 42.75 ▲6.51 |
Add New Post /wp-admin/post-new.php | 7.09 ▲0.12 | 101.46 ▼1,182.77 |
Media Library /wp-admin/upload.php | 3.52 ▲0.21 | 26.87 ▼3.63 |
Journey Funnel /wp-admin/admin.php?page=kontxt_journeys_funnel | 3.49 | 25.89 |
Journey Points /wp-admin/admin.php?page=kontxt_journeys_points | 3.49 | 24.34 |
Journey Flow /wp-admin/admin.php?page=kontxt_journeys | 3.49 | 23.69 |
Settings & Help /wp-admin/admin.php?page=kontxt_journeys_settings | 3.50 | 26.25 |
Server storage [IO: ▲3.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 38 new files
Database: no new tables, 4 new options
New WordPress options |
---|
KONTXT_JOURNEYS_apikey |
kontxt_allowable_html |
KONTXT_JOURNEYS_optin |
KONTXT_JOURNEYS_apiuid |
Browser metrics Passed 4 tests
An overview of browser requirements for Journey Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,144 ▲400 | 24.92 ▲9.33 | 19.24 ▲11.70 | 2.48 ▲0.51 |
Dashboard /wp-admin | 3,038 ▲177 | 12.94 ▲6.79 | 231.36 ▲100.30 | 159.96 ▼1.79 |
Posts /wp-admin/edit.php | 2,844 ▲150 | 12.13 ▲8.89 | 133.05 ▲68.35 | 136.02 ▼6.67 |
Add New Post /wp-admin/post-new.php | 1,728 ▼30 | 21.02 ▼1.17 | 548.70 ▲111.10 | 193.55 ▲35.14 |
Media Library /wp-admin/upload.php | 1,844 ▲146 | 14.95 ▲9.47 | 200.67 ▲54.61 | 186.12 ▼9.06 |
Journey Funnel /wp-admin/admin.php?page=kontxt_journeys_funnel | 1,730 | 12.53 | 145.70 | 119.81 |
Journey Points /wp-admin/admin.php?page=kontxt_journeys_points | 1,889 | 11.74 | 193.79 | 135.31 |
Journey Flow /wp-admin/admin.php?page=kontxt_journeys | 1,625 | 11.97 | 130.07 | 111.21 |
Settings & Help /wp-admin/admin.php?page=kontxt_journeys_settings | 1,622 | 11.67 | 123.98 | 112.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 4 options in the database
- KONTXT_JOURNEYS_apikey
- KONTXT_JOURNEYS_optin
- kontxt_allowable_html
- KONTXT_JOURNEYS_apiuid
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=kontxt_journeys
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/journey-analytics/admin/class-kontxt-JourneysAdmin.php+119
Undefined index: security
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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/journey-analytics/app.ini.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/journey-analytics/admin/partials/kontxt-journey-funnel.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/journey-analytics/admin/partials/kontxt-journey-flow.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/journey-analytics/admin/partials/kontxt-journey-points.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/journey-analytics/admin/partials/kontxt-banner.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/journey-analytics/admin/partials/kontxt-admin-display.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is required in journey-analytics/assets to your readme.txt
journey-analytics/kontxt-journeys.php 85% from 13 tests
"Journey Analytics" version 1.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("journey-analytics.php" instead of "kontxt-journeys.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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 plugin3,321 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 48 | 57 | 1,256 |
PHP | 16 | 570 | 642 | 1,163 |
JavaScript | 4 | 290 | 75 | 902 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 46 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.54% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
admin/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
admin/css/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
admin/css/images/ui-icons_ffffff_256x240.png | 6.33KB | 4.18KB | ▼ 33.99% |
admin/css/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |