Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.56MB] [CPU: ▼15.39ms] Passed 4 tests
A check of server-side resources used by WP Light Heatmap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.17 ▲0.96 |
Dashboard /wp-admin | 3.42 ▲0.11 | 44.91 ▼5.06 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 47.29 ▼2.23 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.59 | 38.85 ▼55.22 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.91 ▲4.66 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_light_heatmap_dots |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
wp_light_heatmap_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Light Heatmap: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲224 | 13.66 ▼0.73 | 9.26 ▲7.38 | 42.06 ▼5.23 |
Dashboard /wp-admin | 2,232 ▲50 | 4.94 ▲0.07 | 102.78 ▼3.64 | 39.72 ▼2.02 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.06 ▲0.07 | 36.42 ▼0.75 | 31.82 ▼5.30 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.19 ▲0.17 | 615.37 ▼17.64 | 53.67 ▼6.61 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.22 ▼0.01 | 95.88 ▼11.46 | 42.01 ▼6.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-light-heatmap/uninstall.php+59
Undefined variable: options
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-light-heatmap/public/partials/wp_light_heatmap-public-display.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-light-heatmap/core/wp_light_heatmap_includes.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-light-heatmap/core/wp_light_heatmap_calculate.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-light-heatmap/admin/partials/wp_light_heatmap-admin-display.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: analytics, clickmap, heat map, heatmap, click map
wp-light-heatmap/wp_light_heatmap.php 85% from 13 tests
The primary PHP file in "WP Light Heatmap" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-light-heatmap.php" instead of "wp_light_heatmap.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,039 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 199 | 718 | 526 |
JavaScript | 5 | 37 | 102 | 268 |
CSS | 2 | 45 | 16 | 245 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 3 | 11.11% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.57MB with 0.48MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 585.65KB | 94.18KB | ▼ 83.92% |