Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼148.01ms] Passed 4 tests
Analyzing server-side resources used by Satisfaction Reports from Help Scout
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.03 | 29.78 ▼6.60 |
Dashboard /wp-admin | 3.21 ▲0.15 | 41.62 ▼5.97 |
Posts /wp-admin/edit.php | 3.32 ▲0.21 | 44.75 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 87.04 ▼572.33 |
Media Library /wp-admin/upload.php | 3.15 ▲0.14 | 27.54 ▼7.14 |
Satisfaction Reports /wp-admin/options-general.php?page=satisfaction-reports-from-help-scout | 3.10 | 29.63 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
help_scout_happiness_reports |
Browser metrics Passed 4 tests
An overview of browser requirements for Satisfaction Reports from Help Scout
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲232 | 16.36 ▲0.80 | 15.94 ▲6.12 | 48.48 ▲2.70 |
Dashboard /wp-admin | 2,975 ▲41 | 5.93 ▼0.16 | 134.65 ▼7.58 | 119.08 ▼4.82 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.01 | 65.78 ▲1.38 | 92.20 ▲6.24 |
Add New Post /wp-admin/post-new.php | 1,675 ▲3 | 18.76 ▼0.06 | 378.56 ▼10.89 | 108.96 ▲4.23 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.00 ▲0.01 | 144.28 ▼9.06 | 121.66 ▲6.20 |
Satisfaction Reports /wp-admin/options-general.php?page=satisfaction-reports-from-help-scout | 1,812 | 2.09 | 54.00 | 129.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- help_scout_happiness_reports
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
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=satisfaction-reports-from-help-scout
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=satisfaction-reports-from-help-scout
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/happiness-reports-for-help-scout/webhook.php
- 1× 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/happiness-reports-for-help-scout/includes/scripts.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: helpscout, reviews, customer support, satisfaction ratings, help scout
happiness-reports-for-help-scout/happiness-reports-for-help-scout.php 77% from 13 tests
The entry point to "Satisfaction Reports from Help Scout" version 2.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,984 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 546 | 377 | 2,664 |
PHP | 7 | 289 | 389 | 940 |
SVG | 1 | 0 | 0 | 377 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 35 | 92.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.89% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/right.png | 13.41KB | 6.38KB | ▼ 52.42% |
includes/images/starfish-reviews-logo-final.png | 148.00KB | 67.13KB | ▼ 54.64% |