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.12MB] [CPU: ▼1.47ms] Passed 4 tests
An overview of server-side resources used by Help Scout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 44.40 ▲4.12 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.62 ▲2.19 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 46.67 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 86.13 ▼11.76 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.58 ▲4.05 |
Help Scout /wp-admin/options-general.php?page=help-scout-desk | 3.32 | 32.42 |
Server storage [IO: ▲1.85MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Help Scout
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲76 | 13.53 ▼0.72 | 1.71 ▼0.06 | 42.10 ▼0.38 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▼0.04 | 99.64 ▼3.83 | 38.32 ▼3.25 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▲0.07 | 34.07 ▼6.64 | 34.20 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,524 ▼11 | 17.63 ▼5.68 | 679.18 ▼7.43 | 54.32 ▼11.04 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.21 ▼0.14 | 96.53 ▼15.05 | 40.95 ▼3.60 |
Help Scout /wp-admin/options-general.php?page=help-scout-desk | 901 | 2.07 | 23.93 | 38.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'HSD_Controller' not found in wp-content/plugins/help-scout/controllers/Beacon.php:10
- > PHP Fatal error
Uncaught Error: Class 'HSD_Controller' not found in wp-content/plugins/help-scout/controllers/Forms.php:10
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/help-scout/help-scout.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'HSD_Controller' not found in wp-content/plugins/help-scout/languages/HSD_l10n.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/help-scout/views/admin/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/help-scout/views/admin/sprout-apps-dashboard.php:5
- > PHP Fatal error
Uncaught Error: Class 'HSD_Controller' not found in wp-content/plugins/help-scout/controllers/HelpScout_API.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/help-scout/views/shortcodes/success_message.php:1
- > PHP Fatal error
Uncaught Error: Class 'HSD_Controller' not found in wp-content/plugins/help-scout/controllers/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/help-scout/views/shortcodes/conversation_form.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Submission form), #2 (Beacon)
help-scout/help-scout.php 69% from 13 tests
The primary PHP file in "Help Scout" version 6.5.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path must begin with a forward slash character ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 278 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,895 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 390 | 613 | 1,772 |
CSS | 3 | 108 | 40 | 574 |
JavaScript | 2 | 64 | 17 | 288 |
PO File | 1 | 82 | 98 | 229 |
SVG | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 36.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 141.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 99 | 100.00% |
▷ Public methods | 95 | 95.96% |
▷ Protected methods | 2 | 2.02% |
▷ Private methods | 2 | 2.02% |
Functions | 23 | |
▷ Named functions | 17 | 73.91% |
▷ Anonymous functions | 6 | 26.09% |
Constants | 44 | |
▷ Global constants | 12 | 27.27% |
▷ Class constants | 32 | 72.73% |
▷ Public constants | 32 | 100.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
6 PNG files occupy 0.83MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/admin/icons/sproutapps-flat.png | 306.90KB | 67.65KB | ▼ 77.96% |
resources/admin/icons/sproutapps-flat-small.png | 38.53KB | 11.51KB | ▼ 70.11% |
resources/admin/icons/sproutapps.png | 85.93KB | 21.03KB | ▼ 75.52% |
screenshot-1.png | 312.46KB | 82.78KB | ▼ 73.51% |
resources/admin/icons/sproutapps-flat-small-white.png | 26.72KB | 9.83KB | ▼ 63.21% |