Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.72ms] Passed 4 tests
Analyzing server-side resources used by WayPanel - Heatmap Analysis
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.16 ▲3.70 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.39 ▼0.49 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.30 ▼8.81 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 92.53 ▼6.45 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.23 ▲0.86 |
Waypanel.com /wp-admin/options-general.php?page=waypanel-heatmap | 3.25 | 30.55 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
WayPanel - Heatmap Analysis: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.66 ▼0.90 | 4.96 ▲3.24 | 43.36 ▲1.71 |
Dashboard /wp-admin | 2,214 ▲25 | 4.86 ▼0.99 | 101.22 ▼6.75 | 38.42 ▼1.80 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.01 ▼0.01 | 34.85 ▼1.90 | 32.05 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,530 ▼6 | 18.46 ▼4.91 | 604.06 ▼71.12 | 48.69 ▼15.20 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.12 ▼0.07 | 96.70 ▼3.56 | 44.97 ▲0.90 |
Waypanel.com /wp-admin/options-general.php?page=waypanel-heatmap | 835 | 2.02 | 23.23 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=waypanel-heatmap
- > Notice in wp-content/plugins/waypanel-heatmap-analysis/admin/partials/waypanel-heatmap-admin-display.php+34
Trying to access array offset on value of type bool
SRP 0% 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/waypanel-heatmap-analysis/public/partials/waypanel-heatmap-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/waypanel-heatmap-analysis/admin/partials/waypanel-heatmap-admin-display.php:15
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for 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 (
=== waypanel-heatmap-analysis ===
)
waypanel-heatmap-analysis/waypanel-heatmap.php 85% from 13 tests
The entry point to "WayPanel - Heatmap Analysis" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("waypanel-heatmap-analysis.php" instead of "waypanel-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
No dangerous file extensions were detected630 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 7 | 6 | 0 | 389 |
PHP | 12 | 150 | 576 | 235 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues 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 | 4.00 |
Average method complexity | 1.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.91MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
preview3.png | 147.55KB | 46.01KB | ▼ 68.82% |
preview5.png | 151.90KB | 46.02KB | ▼ 69.71% |
preview4.png | 139.03KB | 42.84KB | ▼ 69.19% |
preview2.png | 225.15KB | 66.40KB | ▼ 70.51% |
preview1.png | 264.30KB | 71.60KB | ▼ 72.91% |