Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.79MB] [CPU: ▼133.53ms] Passed 4 tests
An overview of server-side resources used by Hotspots Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.79 | 51.01 ▲15.38 |
Dashboard /wp-admin | 3.86 ▲0.80 | 50.94 ▲2.00 |
Posts /wp-admin/edit.php | 3.91 ▲0.80 | 51.64 ▲12.66 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.78 | 94.32 ▼556.60 |
Media Library /wp-admin/upload.php | 3.80 ▲0.80 | 41.37 ▲7.84 |
Reports /wp-admin/admin.php?page=ha_reports_page | 3.77 | 37.95 |
Heatmaps /wp-admin/admin.php?page=ha_heatmaps_page | 3.78 | 42.03 |
Settings /wp-admin/admin.php?page=ha_settings_page | 3.77 | 34.25 |
Users /wp-admin/admin.php?page=ha_users_page | 3.75 | 37.76 |
Server storage [IO: ▲0.47MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_ha_user_event |
wp_ha_custom_event |
wp_ha_user_environment |
wp_ha_user |
New WordPress options |
---|
ha_database_settings_key |
plugin_version |
ha_url_filters_settings |
ha_schedule_settings_key |
ha_general_settings |
ha_heat_map_settings_key |
Browser metrics Passed 4 tests
An overview of browser requirements for Hotspots Analytics
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,947 ▲376 | 17.60 ▲2.17 | 19.73 ▲4.57 | 49.54 ▼4.51 |
Dashboard /wp-admin | 3,072 ▲141 | 6.75 ▲0.77 | 155.09 ▲0.80 | 106.77 ▼3.79 |
Posts /wp-admin/edit.php | 2,840 ▲101 | 2.84 ▲0.12 | 83.87 ▲20.27 | 103.52 ▲14.05 |
Add New Post /wp-admin/post-new.php | 1,683 ▲68 | 22.29 ▲1.18 | 307.17 ▲0.51 | 118.67 ▲12.56 |
Media Library /wp-admin/upload.php | 1,905 ▲98 | 5.56 ▲0.53 | 149.24 ▼5.09 | 113.07 ▼7.23 |
Reports /wp-admin/admin.php?page=ha_reports_page | 1,444 | 2.94 | 94.30 | 94.93 |
Heatmaps /wp-admin/admin.php?page=ha_heatmaps_page | 1,539 | 2.70 | 67.53 | 81.17 |
Settings /wp-admin/admin.php?page=ha_settings_page | 1,283 | 2.81 | 73.60 | 99.78 |
Users /wp-admin/admin.php?page=ha_users_page | 1,580 | 2.83 | 74.20 | 95.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=ha_users_page
- > Notice in wp-content/plugins/hotspots/php/tables/users-table.php+145
Undefined index: id
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/hotspots/php/uaparser/json/JSON.php
- > /wp-content/plugins/hotspots/php/uaparser/json/jsonwrapper.php
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/hotspots/php/tables/heatmaps-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hotspots/php/tables/summary-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hotspots/php/tables/heatmaps-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hotspots/php/tables/heatmaps-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hotspots/php/tables/custom-events-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/hotspots/php/tables/heatmaps-table.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/hotspots/php/tables/summary-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hotspots/php/tables/heatmaps-table.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hotspots/php/tables/user-activity-table.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/hotspots/php/tables/summary-table.php on line 4
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ha_users_page
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/hotspots/js/admin.js?ver=5.8.1:9:45)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ha_users_page
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (19 tag instead of maximum 10)
- Screenshots: Add a description for screenshot #13 in hotspots/assets to your readme.txt
hotspots/hotspots.php Passed 13 tests
"Hotspots Analytics" version 4.0.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
118 characters long description:
The most advanced analytics plugin for WordPress websites including heatmaps, user activity and custom event tracking.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin8,057 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 877 | 1,065 | 4,022 |
JavaScript | 10 | 927 | 816 | 3,947 |
CSS | 2 | 18 | 0 | 87 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 30.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 63 | 37.28% |
▷ Public methods | 150 | 88.76% |
▷ Protected methods | 1 | 0.59% |
▷ Private methods | 18 | 10.65% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin