Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.76ms] Passed 4 tests
This is a short check of server-side resources used by UserHeat Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.00 ▼2.96 |
Dashboard /wp-admin | 3.33 ▼0.02 | 42.16 ▼20.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.63 ▼3.59 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.69 ▼19.75 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.01 ▲1.33 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
UserHeat Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.42 ▼0.23 | 1.60 ▲0.05 | 37.97 ▼6.60 |
Dashboard /wp-admin | 2,214 ▲34 | 5.62 ▼0.19 | 85.26 ▲1.77 | 38.30 ▼4.19 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▲0.01 | 36.61 ▼2.65 | 35.50 ▲1.95 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 18.51 ▼4.94 | 639.60 ▼12.47 | 64.68 ▲15.58 |
Media Library /wp-admin/upload.php | 1,413 ▲19 | 4.15 ▼0.25 | 93.47 ▼5.86 | 42.73 ▼2.25 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/userheat/admin.php:2
- > PHP Notice
Undefined variable: siteDomain in wp-content/plugins/userheat/admin.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: click, pageviews, google analytics, japanese, conversion tracking...
userheat/userheat.php Passed 13 tests
The main file in "UserHeat Plugin" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
36 characters long description:
heatmap analytics tool quick install
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,291 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 7 | 80 | 848 |
PHP | 2 | 30 | 47 | 236 |
PO File | 2 | 59 | 61 | 202 |
JavaScript | 1 | 1 | 17 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 1.18MB with 0.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ui.png | 578.49KB | 126.85KB | ▼ 78.07% |
img/logo.png | 17.33KB | 1.41KB | ▼ 91.86% |
img/kind_heatmap/endarea.png | 40.97KB | 42.99KB | 0.00% |
img/kind_heatmap/mousemove.png | 89.67KB | 96.41KB | 0.00% |
img/kind_heatmap/withdrawal.png | 25.33KB | 26.51KB | 0.00% |