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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.49MB] [CPU: ▼2.48ms] Passed 4 tests
Analyzing server-side resources used by Highways Sync for Intercom
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.52 | 50.37 ▲12.99 |
Dashboard /wp-admin | 3.84 ▲0.49 | 47.30 ▼12.32 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 49.76 ▲5.36 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 82.08 ▼7.53 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 42.36 ▲4.56 |
Intercom Sync /wp-admin/options-general.php?page=intercom-wp | 3.65 | 35.96 |
Server storage [IO: ▲2.40MB] [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: 378 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Highways Sync for Intercom
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.08 | 1.78 ▼0.01 | 42.62 ▲2.92 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.03 | 107.42 ▲5.55 | 37.20 ▼5.60 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.04 ▲0.06 | 38.67 ▲2.57 | 37.00 ▲3.53 |
Add New Post /wp-admin/post-new.php | 1,536 ▲19 | 23.18 ▲5.59 | 667.61 ▼11.10 | 52.37 ▼4.27 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.14 ▼0.04 | 108.82 ▲9.84 | 46.85 ▲0.57 |
Intercom Sync /wp-admin/options-general.php?page=intercom-wp | 879 | 2.03 | 21.59 | 24.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 176× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
require(wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/clue/stream-filter/examples/../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/clue/stream-filter/examples/uppercase.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/message/src/Encoding/FilteredStream.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/client-common/src/Plugin/RetryPlugin.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/message/src/Authentication/Wsse.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\HttpClientRouterInterface' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/client-common/src/HttpClientRouter.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/message/src/Authentication/RequestConditional.php:14
- > PHP Fatal error
Uncaught Error: Class 'Http\\Discovery\\Exception\otFoundException' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/discovery/src/NotFoundException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Formatter' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/message/src/Formatter/SimpleFormatter.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\UriFactory' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/message/src/UriFactory/SlimUriFactory.php:14
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Common\\HttpClientPool\\HttpClientPool' not found in wp-content/plugins/highways-sync-for-intercom/includes/lib/intercom-php/vendor/php-http/client-common/src/HttpClientPool/LeastUsedClientPool.php:16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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: sync, crm, automation, intercom, email marketing
highways-sync-for-intercom/highways-sync-for-intercom.php 92% from 13 tests
The entry point to "Highways Sync for Intercom" version 1.1.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and 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
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
There were no executable files found in this plugin22,479 lines of code in 348 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 291 | 4,447 | 9,606 | 15,897 |
Markdown | 31 | 1,899 | 0 | 4,754 |
JSON | 22 | 0 | 0 | 1,771 |
YAML | 1 | 5 | 2 | 20 |
XML | 1 | 1 | 0 | 18 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
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.37 |
Average class complexity | 7.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 41 | |
Interfaces | 42 | |
Traits | 13 | |
Classes | 216 | |
▷ Abstract classes | 4 | 1.85% |
▷ Concrete classes | 212 | 98.15% |
▷ Final classes | 96 | 45.28% |
Methods | 1,300 | |
▷ Static methods | 110 | 8.46% |
▷ Public methods | 1,091 | 83.92% |
▷ Protected methods | 34 | 2.62% |
▷ Private methods | 175 | 13.46% |
Functions | 213 | |
▷ Named functions | 63 | 29.58% |
▷ Anonymous functions | 150 | 70.42% |
Constants | 72 | |
▷ Global constants | 10 | 13.89% |
▷ Class constants | 62 | 86.11% |
▷ Public constants | 62 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 1.24MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 549.12KB | 169.68KB | ▼ 69.10% |
assets/icon-256x256.png | 4.83KB | 3.57KB | ▼ 26.15% |
assets/icon-128x128.png | 2.42KB | 2.09KB | ▼ 13.87% |
assets/screenshot-2.png | 301.62KB | 72.07KB | ▼ 76.11% |
assets/screenshot-1.png | 411.09KB | 105.83KB | ▼ 74.26% |