Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.19MB] [CPU: ▲42.30ms] Passed 4 tests
Analyzing server-side resources used by QA Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.64 ▲4.17 | 97.79 ▲60.17 |
Dashboard /wp-admin | 7.51 ▲4.21 | 90.54 ▲39.06 |
Posts /wp-admin/edit.php | 7.62 ▲4.26 | 97.22 ▲46.22 |
Add New Post /wp-admin/post-new.php | 10.09 ▲4.20 | 130.27 ▲39.18 |
Media Library /wp-admin/upload.php | 7.43 ▲4.20 | 77.85 ▲44.72 |
Help /wp-admin/admin.php?page=qahm-help | 7.41 | 79.69 |
Settings /wp-admin/admin.php?page=qahm-config | 7.41 | 93.79 |
Data Portal /wp-admin/admin.php?page=qahm-dataportal | 7.40 | 74.49 |
License Activation /wp-admin/admin.php?page=qahm-license | 7.41 | 60.22 |
SEO Analysis /wp-admin/admin.php?page=qahm-seo | 7.41 | 62.56 |
Real-Time View /wp-admin/admin.php?page=qahm-realtime | 7.42 | 59.36 |
Heatmap Manager /wp-admin/admin.php?page=qahm-heatmap | 7.42 | 65.02 |
Home /wp-admin/admin.php?page=qahm-home | 7.42 | 61.28 |
Server storage [IO: ▲8.79MB] [DB: ▲0.08MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Illegal file modification detected: 18 files (5.22KB) outside of "wp-content/plugins/qa-heatmap-analytics/" and "wp-content/uploads/"
- (new file) wp-content/qa-heatmap-analytics-data/.donotbackup
- (new file) qa_gsc_query_log_version
- (new file) wp-content/qa-heatmap-analytics-data/cron_backup
- (new file) wp-content/qa-heatmap-analytics-data/readers/finish/.empty
- (new file) wp-content/qa-heatmap-analytics-data/f9e61b0da7ef48ec_tracking_hash.php
- (new file) wp-content/qa-heatmap-analytics-data/cache/.empty
- (new file) wp-content/qa-heatmap-analytics-data/cron_status
- (new file) wp-content/qa-heatmap-analytics-data/heatmap-view-work/.empty
- (new file) wp-content/qa-heatmap-analytics-data/log/qalog.txt
- (new file) wp-content/qa-heatmap-analytics-data/readers/dbin/.empty
- ...
Filesystem: 806 new files
Database: 10 new tables, 25 new options
New tables |
---|
wp_qa_utm_campaigns |
wp_qahm_recterm |
wp_qa_page_version_hist |
wp_qa_utm_sources |
wp_qa_search_log |
wp_qa_readers |
wp_qa_gsc_query_log |
wp_qa_pages |
wp_qa_utm_media |
wp_qa_pv_log |
New WordPress options |
---|
widget_recent-posts |
qahm_siteinfo |
qahm_heatmap_measure_max |
theysaidso_admin_options |
qahm_heatmap_sort_rec |
widget_recent-comments |
qahm_recterm_version |
qahm_license_message |
qahm_goals |
qahm_access_role |
... |
Browser metrics Passed 4 tests
Checking browser requirements for QA Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,151 ▲364 | 19.49 ▲5.23 | 69.67 ▲67.89 | 37.06 ▼6.45 |
Dashboard /wp-admin | 2,567 ▲397 | 9.94 ▲4.29 | 225.83 ▲128.05 | 98.82 ▲60.55 |
Posts /wp-admin/edit.php | 2,152 ▲49 | 1.94 ▼0.02 | 43.78 ▲0.55 | 36.33 ▲1.44 |
Add New Post /wp-admin/post-new.php | 1,457 ▼69 | 17.90 ▼5.36 | 842.00 ▲138.65 | 46.49 ▼3.75 |
Media Library /wp-admin/upload.php | 1,446 ▲49 | 4.19 ▲0.03 | 127.52 ▲23.18 | 96.00 ▲49.51 |
Help /wp-admin/admin.php?page=qahm-help | 1,270 | 4.13 | 48.47 | 50.06 |
Settings /wp-admin/admin.php?page=qahm-config | 2,288 | 4.41 | 84.01 | 81.88 |
Data Portal /wp-admin/admin.php?page=qahm-dataportal | 1,081 | 3.72 | 51.31 | 63.67 |
License Activation /wp-admin/admin.php?page=qahm-license | 1,091 | 4.38 | 47.51 | 47.18 |
SEO Analysis /wp-admin/admin.php?page=qahm-seo | 917 | 4.41 | 52.48 | 24.70 |
Real-Time View /wp-admin/admin.php?page=qahm-realtime | 1,098 | 4.68 | 53.21 | 42.56 |
Heatmap Manager /wp-admin/admin.php?page=qahm-heatmap | 1,099 | 4.25 | 47.95 | 36.94 |
Home /wp-admin/admin.php?page=qahm-home | 1,118 | 6.27 | 89.67 | 53.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=qahm-home
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
file_get_contents(wp-content/qa-heatmap-analytics-data/view/f9e61b0da7ef48ec/summary/days_access.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=qahm-home
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-admin/includes/class-wp-filesystem-direct.php+39
file_get_contents(wp-content/qa-heatmap-analytics-data/cache/heatmap_list.php): failed to open stream: No such file or directory
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 466× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/qa-heatmap-analytics/vendor/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:37
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/qa-heatmap-analytics/vendor/google/apiclient-services/src/AnalyticsReporting/Pivot.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/qa-heatmap-analytics/vendor/google/apiclient-services/src/SearchConsole/SitemapsListResponse.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/qa-heatmap-analytics/vendor/google/apiclient-services/src/Analytics/McfData.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Collection' not found in wp-content/plugins/qa-heatmap-analytics/vendor/google/apiclient-services/src/Analytics/AccountPermissions.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/qa-heatmap-analytics/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/qa-heatmap-analytics/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/qa-heatmap-analytics/vendor/google/apiclient-services/src/Oauth2/Userinfo.php:20
- > PHP Fatal error
Uncaught Error: Class 'Google\\Model' not found in wp-content/plugins/qa-heatmap-analytics/vendor/google/apiclient-services/src/Analytics/McfDataRowsConversionPathValue.php:20
- > PHP Fatal error
Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/qa-heatmap-analytics/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC4.php:54
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=qahm-seo
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot set properties of null (setting 'innerHTML')" "TypeError: Cannot set properties of null (setting 'innerHTML')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/qa-heatmap-analytics/js/admin-page-seo.js?ver=3.5.0.0:547:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=qahm-seo
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML')
- > GET request to /wp-admin/admin.php?page=qahm-home
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 409 (Conflict)
- > GET request to /wp-admin/admin.php?page=qahm-home
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot set properties of null (setting 'innerHTML')" "TypeError: Cannot set properties of null (setting 'innerHTML')\n at qahm.drawAllTablesAjax (/wp-content/plugins/qa-heatmap-analytics/js/admin-page-statistics.js?ver=3.5.0.0:936:31)\n at /wp-content/plugins/qa-heatmap-analytics/js/admin-page-statistics.js?ver=3.5.0.0:508:18\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=qahm-home
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'length')" "TypeError: Cannot read properties of null (reading 'length')\n at Object.acquireContext (/wp-content/plugins/qa-heatmap-analytics/js/lib/chart/chart.min.js?ver=3.5.0.0:7:86074)\n at tn.construct (/wp-content/plugins/qa-heatmap-analytics/js/lib/chart/chart.min.js?ver=3.5.0.0:7:102546)\n at new tn (/wp-content/plugins/qa-heatmap-analytics/js/lib/chart/chart.min.js?ver=3.5.0.0:7:102287)\n at /wp-content/plugins/qa-heatmap-analytics/js/admin-page-statistics.js?ver=3.5.0.0:568:36\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/admin.php?page=qahm-home
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading 'getContext')" "TypeError: Cannot read properties of null (reading 'getContext')\n at qahm.statsDrawChartOne (/wp-content/plugins/qa-heatmap-analytics/js/admin-page-statistics.js?ver=3.5.0.0:2173:50)\n at Array.\u003Canonymous> (/wp-content/plugins/qa-heatmap-analytics/js/admin-page-statistics.js?ver=3.5.0.0:649:10)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: collect events, clickmap, statistics, analytics, tracking...
qa-heatmap-analytics/qahm.php 92% from 13 tests
The principal PHP file in "QA Analytics" v. 3.5.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qa-heatmap-analytics.php" instead of "qahm.php")
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin123,636 lines of code in 751 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 628 | 12,711 | 45,438 | 96,844 |
JavaScript | 36 | 1,989 | 2,250 | 15,030 |
Markdown | 29 | 1,711 | 0 | 4,991 |
CSS | 23 | 563 | 245 | 4,350 |
JSON | 21 | 0 | 0 | 2,194 |
YAML | 6 | 24 | 3 | 116 |
SVG | 6 | 6 | 0 | 92 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 654)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 17.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 697.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 654.00 |
Code structure | ||
---|---|---|
Namespaces | 54 | |
Interfaces | 36 | |
Traits | 8 | |
Classes | 553 | |
▷ Abstract classes | 9 | 1.63% |
▷ Concrete classes | 544 | 98.37% |
▷ Final classes | 27 | 4.96% |
Methods | 4,811 | |
▷ Static methods | 264 | 5.49% |
▷ Public methods | 4,292 | 89.21% |
▷ Protected methods | 199 | 4.14% |
▷ Private methods | 320 | 6.65% |
Functions | 221 | |
▷ Named functions | 90 | 40.72% |
▷ Anonymous functions | 131 | 59.28% |
Constants | 587 | |
▷ Global constants | 73 | 12.44% |
▷ Class constants | 514 | 87.56% |
▷ Public constants | 514 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.89MB with 0.56MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/qahm-icon.png | 15.31KB | 5.04KB | ▼ 67.06% |
img/quokka-icon.png | 19.35KB | 0.52KB | ▼ 97.31% |
img/dataportal8.png | 81.90KB | 25.93KB | ▼ 68.34% |
img/pict_02.png | 3.47KB | 2.10KB | ▼ 39.61% |
img/pict_01.png | 3.51KB | 2.09KB | ▼ 40.33% |