Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.24MB] [CPU: ▼41.38ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Hotjar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 14.43 ▼21.82 |
Dashboard /wp-admin | 2.77 ▼0.54 | 16.17 ▼35.22 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 16.69 ▼30.38 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 15.80 ▼78.08 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 17.34 ▼18.49 |
Hotjar /wp-admin/options-general.php?page=advanced_hotjar | 2.77 | 15.55 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Advanced Hotjar: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.28 ▼1.11 | 1.94 ▼0.01 | 44.43 ▲0.35 |
Dashboard /wp-admin | 2,210 ▲18 | 5.92 ▲0.96 | 107.94 ▼7.33 | 39.96 ▼5.17 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.01 | 38.71 ▲2.58 | 36.57 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,414 ▼119 | 17.86 ▼5.21 | 607.53 ▼46.29 | 68.85 ▼2.75 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▼0.01 | 94.51 ▼6.14 | 41.49 ▲0.40 |
Hotjar /wp-admin/options-general.php?page=advanced_hotjar | 861 | 2.06 | 22.59 | 25.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/advanced-hotjar/advanced-hotjar.php+129
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% 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)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=advanced_hotjar
- > Notice in wp-content/plugins/advanced-hotjar/advanced-hotjar.php+131
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/advanced-hotjar/advanced-hotjar.php:123
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Requires php: Version format is invalid
advanced-hotjar/advanced-hotjar.php Passed 13 tests
The primary PHP file in "Advanced Hotjar" version 1.0.0 is used by WordPress to initiate all plugin functionality
49 characters long description:
Add Hotjar to your site, with a few more options.
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 plugin150 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 14 | 150 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin