Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.08ms] Passed 4 tests
Analyzing server-side resources used by Intercom
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.02 ▼1.37 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.77 ▲1.68 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 41.99 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.50 ▼18.58 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.82 ▲1.04 |
Intercom /wp-admin/options-general.php?page=intercom | 3.17 | 29.92 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Intercom
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.71 ▼0.67 | 10.28 ▲8.43 | 41.24 ▼8.54 |
Dashboard /wp-admin | 2,207 ▲19 | 5.81 ▼0.08 | 93.69 ▼3.42 | 34.86 ▼5.28 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▲0.01 | 36.08 ▼1.32 | 33.53 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.16 ▲5.59 | 693.32 ▲36.24 | 66.32 ▲14.30 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.04 | 94.58 ▼1.78 | 45.14 ▲1.59 |
Intercom /wp-admin/options-general.php?page=intercom | 1,070 | 1.91 | 27.17 | 68.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=intercom
- > Notice in wp-content/plugins/intercom/bootstrap.php+507
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=intercom
- > Notice in wp-content/plugins/intercom/bootstrap.php+219
Undefined index: identity_verification
SRP 50% 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
Please fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/intercom/test/SecureModeCalulatorTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/intercom/test/SnippetSettingsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/intercom/test/UserTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/intercom/test/SettingsPageTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/intercom/test/ValidatorTest.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/intercom/test/SnippetTest.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== intercom ===
)
intercom/bootstrap.php 92% from 13 tests
This is the main PHP file of "Intercom" version 2.6.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("intercom.php" instead of "bootstrap.php")
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
Everything looks great! No dangerous files found in this plugin700 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 75 | 19 | 647 |
Markdown | 1 | 21 | 0 | 36 |
SVG | 1 | 0 | 1 | 9 |
XML | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 2 | 4.08% |
▷ Public methods | 37 | 75.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 24.49% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 1 | |
▷ Global constants | 1 | 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
4 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshots/widget.png | 25.00KB | 8.78KB | ▼ 64.86% |
screenshots/settings.png | 56.66KB | 15.46KB | ▼ 72.72% |
assets/banner-772x250.png | 13.97KB | 5.28KB | ▼ 62.19% |
assets/banner-1544x500.png | 43.70KB | 14.75KB | ▼ 66.24% |