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.05MB] [CPU: ▼3.01ms] Passed 4 tests
An overview of server-side resources used by Intercom Live chat and Lead generation by 79mplus
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.17 ▲3.73 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.07 ▼0.56 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.57 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.56 ▼11.90 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.67 ▲1.51 |
Intercom Subscription /wp-admin/admin.php?page=mplusis-settings | 3.26 | 43.67 |
License Activation /wp-admin/admin.php?page=mplusis-license-activation | 3.24 | 31.43 |
Server storage [IO: ▲2.49MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 512 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Intercom Live chat and Lead generation by 79mplus
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.28 ▼1.01 | 4.42 ▲2.73 | 40.84 ▼4.78 |
Dashboard /wp-admin | 2,237 ▲45 | 4.90 ▼0.05 | 134.70 ▲18.05 | 62.94 ▲23.25 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.03 ▼0.02 | 39.74 ▲0.01 | 34.88 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,554 ▲12 | 23.22 ▲5.04 | 672.51 ▲80.05 | 53.07 ▼2.38 |
Media Library /wp-admin/upload.php | 1,422 ▲31 | 4.12 ▼0.07 | 94.56 ▼1.24 | 64.39 ▲23.21 |
Intercom Subscription /wp-admin/admin.php?page=mplusis-settings | 997 | 1.88 | 26.95 | 28.47 |
License Activation /wp-admin/admin.php?page=mplusis-license-activation | 798 | 2.02 | 23.77 | 26.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
The following issues need your attention
- 214× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mplus-intercom-subscription/vendor/intercom/intercom-php/test/IntercomCompaniesTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/client-common/src/Plugin/HeaderAppendPlugin.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Exception' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/message/src/Exception/UnexpectedValueException.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mplus-intercom-subscription/vendor/intercom/intercom-php/test/IntercomTagsTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/message/src/Authentication/Wsse.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/message/src/Authentication/Matching.php:18
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\TransferException' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/client-common/src/Exception/HttpClientNoMatchException.php:15
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Common\\HttpClientPool\\HttpClientPool' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/client-common/src/HttpClientPool/RandomClientPool.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/mplus-intercom-subscription/vendor/intercom/intercom-php/test/IntercomCountsTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Promise\\Promise' not found in wp-content/plugins/mplus-intercom-subscription/vendor/php-http/promise/src/RejectedPromise.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: marketing, grow, user base, communication, lead...
mplus-intercom-subscription/mplus-intercom-subscription.php 92% from 13 tests
This is the main PHP file of "Intercom Live chat and Lead generation by 79mplus" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 204 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin45,197 lines of code in 465 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 375 | 4,885 | 11,946 | 36,704 |
Markdown | 41 | 2,176 | 0 | 5,242 |
JSON | 29 | 0 | 0 | 2,854 |
YAML | 12 | 36 | 5 | 165 |
CSS | 1 | 9 | 4 | 82 |
JavaScript | 2 | 4 | 0 | 80 |
XML | 3 | 5 | 0 | 51 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 8.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 48 | |
Interfaces | 49 | |
Traits | 13 | |
Classes | 263 | |
▷ Abstract classes | 5 | 1.90% |
▷ Concrete classes | 258 | 98.10% |
▷ Final classes | 116 | 44.96% |
Methods | 1,485 | |
▷ Static methods | 215 | 14.48% |
▷ Public methods | 1,259 | 84.78% |
▷ Protected methods | 33 | 2.22% |
▷ Private methods | 193 | 13.00% |
Functions | 244 | |
▷ Named functions | 96 | 39.34% |
▷ Anonymous functions | 148 | 60.66% |
Constants | 217 | |
▷ Global constants | 85 | 39.17% |
▷ Class constants | 132 | 60.83% |
▷ Public constants | 131 | 99.24% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.55MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin-icon.png | 1.31KB | 0.67KB | ▼ 48.95% |
assets/screenshot-1.png | 333.25KB | 91.94KB | ▼ 72.41% |
assets/screenshot-4.png | 17.46KB | 5.32KB | ▼ 69.51% |
assets/screenshot-5.png | 51.56KB | 20.69KB | ▼ 59.88% |
assets/screenshot-3.png | 28.34KB | 10.47KB | ▼ 63.06% |