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: ▲0.00MB] [CPU: ▼10.86ms] Passed 4 tests
This is a short check of server-side resources used by Easy Hotjar WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 26.67 ▼15.43 |
Dashboard /wp-admin | 3.34 ▼0.01 | 49.61 ▼15.11 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 48.70 ▲2.12 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.60 ▼12.12 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.22 ▼0.79 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Hotjar WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲52 | 13.36 ▼0.93 | 1.74 ▼0.18 | 43.72 ▲0.69 |
Dashboard /wp-admin | 2,222 ▲34 | 4.86 ▼0.03 | 101.60 ▼4.84 | 41.91 ▼1.44 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.03 ▲0.01 | 38.36 ▲3.02 | 36.51 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,548 ▲29 | 23.10 ▲0.02 | 689.38 ▲29.10 | 58.33 ▼8.31 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.21 ▲0.07 | 95.84 ▼20.08 | 48.39 ▲2.19 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/easy-hotjar/admin/partials/easy-hotjar-wordpress.php:86
- > 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 Passed 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
1 plugin tags: hotjar wordpress plugin javascript social
easy-hotjar/easy-hotjar.php Passed 13 tests
Analyzing the main PHP file in "Easy Hotjar WordPress" version 1.0
57 characters long description:
Get Hotjar up and running on your WordPress with 2 clicks
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin362 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 63 | 190 | 298 |
CSS | 2 | 0 | 4 | 64 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 1 | 5.88% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 17.65% |
Functions | 1 | |
▷ Named functions | 1 | 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
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/hotjar2.png | 15.03KB | 6.15KB | ▼ 59.11% |
admin/img/header-logo.png | 1.17KB | 1.16KB | ▼ 1.25% |
admin/img/hotjar1.png | 24.99KB | 15.87KB | ▼ 36.51% |
admin/img/easyplugins.png | 26.03KB | 10.99KB | ▼ 57.77% |
admin/img/hotjar3.png | 10.28KB | 4.73KB | ▼ 53.99% |