Benchmarks
Plugin footprint 83% 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.46MB] [CPU: ▼4.03ms] Passed 4 tests
An overview of server-side resources used by Beacon For Help Scout
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 41.01 ▲2.14 |
Dashboard /wp-admin | 3.82 ▲0.48 | 49.34 ▼9.30 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 48.30 ▲0.28 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.50 | 87.06 ▼9.23 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 37.51 ▲3.10 |
Beacon /wp-admin/options-general.php?page=beacon-settings | 3.73 | 40.34 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 89 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
beacon_settings |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Beacon For Help Scout
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲140 | 13.88 ▼0.34 | 9.21 ▲7.37 | 42.61 ▲4.17 |
Dashboard /wp-admin | 2,207 ▲26 | 5.59 ▼0.14 | 84.63 ▼18.64 | 38.28 ▼1.66 |
Posts /wp-admin/edit.php | 2,112 ▲15 | 2.04 ▲0.03 | 35.18 ▼0.44 | 33.62 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,537 ▼2 | 23.32 ▲4.83 | 625.04 ▼36.56 | 49.89 ▼25.96 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.23 ▼0.00 | 95.86 ▲0.73 | 41.27 ▼1.47 |
Beacon /wp-admin/options-general.php?page=beacon-settings | 1,175 | 4.15 | 62.89 | 35.95 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- beacon_settings
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests Passed 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 no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: help scout, helpscout, beacon
beacon-for-helpscout/beacon-for-helpscout.php 92% from 13 tests
"Beacon For Help Scout" version 1.3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected6,167 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 637 | 1,271 | 2,491 |
JavaScript | 13 | 190 | 249 | 1,533 |
HTML | 6 | 69 | 0 | 887 |
Markdown | 6 | 292 | 0 | 640 |
SVG | 1 | 0 | 0 | 229 |
CSS | 10 | 44 | 75 | 208 |
JSON | 4 | 0 | 0 | 173 |
YAML | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 72.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 4.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 1 | 0.81% |
▷ Public methods | 116 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 6.45% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.44MB with 0.30MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 38.57KB | 9.96KB | ▼ 74.18% |
assets/icon-256x256.png | 34.37KB | 8.58KB | ▼ 75.02% |
assets/img/collection-id.png | 160.33KB | 44.42KB | ▼ 72.29% |
assets/banner-1544x500.png | 76.16KB | 29.34KB | ▼ 61.47% |
assets/banner-1544x500-rtl.png | 77.86KB | 29.49KB | ▼ 62.13% |