Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.50MB] [CPU: ▼336.00ms] Passed 4 tests
An overview of server-side resources used by Advanced Hotjar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.57 | 15.92 ▼33.54 |
Dashboard /wp-admin | 2.86 ▼0.54 | 13.61 ▼21.34 |
Posts /wp-admin/edit.php | 2.86 ▼0.78 | 14.02 ▼22.73 |
Add New Post /wp-admin/post-new.php | 2.86 ▼4.11 | 14.03 ▼1,266.37 |
Media Library /wp-admin/upload.php | 2.86 ▼0.43 | 13.15 ▼10.41 |
Hotjar /wp-admin/options-general.php?page=advanced_hotjar | 2.86 | 14.54 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Hotjar
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲14 | 16.20 ▲0.25 | 6.57 ▼0.05 | 2.34 ▼0.30 |
Dashboard /wp-admin | 2,893 ▲32 | 6.08 ▼0.03 | 114.12 ▼22.42 | 153.56 ▼13.02 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.24 ▲0.00 | 62.02 ▲1.05 | 137.13 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,664 ▲4 | 17.24 ▲1.19 | 424.44 ▼6.68 | 157.53 ▲3.65 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.47 ▼0.06 | 139.18 ▲1.54 | 184.93 ▼0.15 |
Hotjar /wp-admin/options-general.php?page=advanced_hotjar | 1,076 | 2.42 | 56.11 | 124.91 |
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
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/advanced-hotjar/advanced-hotjar.php+129
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Requires php: Version format is invalid
advanced-hotjar/advanced-hotjar.php Passed 13 tests
Analyzing the main PHP file in "Advanced Hotjar" version 1.0.0
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
No dangerous file extensions were detected150 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
This plugin's cyclomatic complexity and code structure detailed below
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin