Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Parse error in wp-content/plugins/sws-hotjar/sws_hotjar.php+121
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.17ms] Passed 4 tests
An overview of server-side resources used by Hotjar for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.28 ▼6.92 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.61 ▼3.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 54.06 ▼0.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.87 ▼21.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.44 ▲1.18 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Hotjar for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▲0.16 | 1.70 ▼0.25 | 44.71 ▼0.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.04 | 92.55 ▼10.00 | 37.76 ▼4.67 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.05 | 43.40 ▲3.86 | 37.64 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,528 ▲3 | 23.02 ▲0.13 | 666.52 ▲30.71 | 54.14 ▲1.31 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.12 ▼0.16 | 109.41 ▲7.59 | 45.16 ▲2.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- 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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/sws-hotjar/sws_hotjar.php on line 121
- > PHP Parse error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== sws-hotjar ===
)
sws-hotjar/sws_hotjar.php 85% from 13 tests
The main PHP file in "Hotjar for WordPress" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sws-hotjar.php" instead of "sws_hotjar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin82 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 11 | 80 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.30MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-5.png | 24.28KB | 8.63KB | ▼ 64.48% |
images/screenshot-2.png | 28.87KB | 11.07KB | ▼ 61.66% |
images/screenshot-1.png | 203.53KB | 74.18KB | ▼ 63.55% |
images/screenshot-3.png | 21.47KB | 7.64KB | ▼ 64.39% |
images/screenshot-4.png | 24.55KB | 8.91KB | ▼ 63.71% |