Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.27ms] Passed 4 tests
Server-side resources used by Call Now Button - The #1 Click to Call Button for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.51 ▼4.91 |
Dashboard /wp-admin | 3.46 ▲0.16 | 46.15 ▼3.25 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 49.70 ▲4.80 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 90.06 ▲3.96 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.52 ▼0.89 |
Settings /wp-admin/admin.php?page=call-now-button-settings | 3.57 | 36.33 |
My button /wp-admin/admin.php?page=call-now-button | 3.36 | 36.21 |
Unlock features /wp-admin/admin.php?page=call-now-button-upgrade | 3.36 | 33.19 |
Server storage [IO: ▲4.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 698 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
cnb |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Call Now Button - The #1 Click to Call Button for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.72 ▲0.29 | 1.80 ▼0.28 | 43.20 ▲0.36 |
Dashboard /wp-admin | 2,226 ▲46 | 5.62 ▼0.07 | 90.79 ▼7.41 | 35.81 ▼7.84 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.01 ▲0.00 | 38.47 ▲3.94 | 35.65 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 23.11 ▲0.01 | 655.73 ▲2.23 | 56.62 ▼1.59 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.21 ▼0.01 | 100.96 ▼7.91 | 41.59 ▼6.66 |
Settings /wp-admin/admin.php?page=call-now-button-settings | 1,269 | 2.36 | 36.95 | 96.13 |
My button /wp-admin/admin.php?page=call-now-button | 2,061 | 2.59 | 50.40 | 38.90 |
Unlock features /wp-admin/admin.php?page=call-now-button-upgrade | 1,631 | 2.20 | 31.25 | 154.71 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 104× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/call-now-button/src/admin/action/partials/class-action-settings-intercom.php
- > /wp-content/plugins/call-now-button/src/admin/domain/CnbDomainViewUpgrade.php
- > /wp-content/plugins/call-now-button/src/cli/CNB_CLI_Api.php
- > /wp-content/plugins/call-now-button/src/admin/button/CnbButton.php
- > /wp-content/plugins/call-now-button/src/admin/api/CnbAdminCloud.php
- > /wp-content/plugins/call-now-button/src/admin/api/RemoteTracer.php
- > /wp-content/plugins/call-now-button/src/admin/domain/partials/CnbDomainViewUpgradeFinished.php
- > /wp-content/plugins/call-now-button/src/admin/domain/CnbDomainView.php
- > /wp-content/plugins/call-now-button/src/CallNowButton.php
- > /wp-content/plugins/call-now-button/src/utils/CnbAdminFunctions.php
- 207× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/call-now-button/src/vendor/guzzlehttp/psr7/src/BufferStream.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/call-now-button/src/vendor/guzzlehttp/psr7/src/FnStream.php:16
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Exception\\RequestException' not found in wp-content/plugins/call-now-button/src/vendor/php-http/client-common/src/Exception/LoopException.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Message\\Authentication' not found in wp-content/plugins/call-now-button/src/vendor/sentry/sentry/src/HttpClient/Authentication/SentryAuthentication.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Discovery\\Strategy\\DiscoveryStrategy' not found in wp-content/plugins/call-now-button/src/vendor/php-http/discovery/src/Strategy/PuliBetaStrategy.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\Common\\Plugin' not found in wp-content/plugins/call-now-button/src/vendor/php-http/client-common/src/Plugin/AddHostPlugin.php:18
- > PHP Fatal error
Uncaught Error: Class 'Http\\Client\\Common\\HttpClientPool\\HttpClientPool' not found in wp-content/plugins/call-now-button/src/vendor/php-http/client-common/src/HttpClientPool/LeastUsedClientPool.php:16
- > PHP Fatal error
Uncaught Error: Class 'Sentry\\Integration\\AbstractErrorListenerIntegration' not found in wp-content/plugins/call-now-button/src/vendor/sentry/sentry/src/Integration/ExceptionListenerIntegration.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/call-now-button/src/vendor/guzzlehttp/psr7/src/PumpStream.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\HttpClient' not found in wp-content/plugins/call-now-button/src/vendor/php-http/client-common/src/PluginClient.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: call now button, call button, contact button, click to call, convert
call-now-button/call-now-button.php 92% from 13 tests
The main PHP script in "Call Now Button - The #1 Click to Call Button for WordPress" version 1.4.2 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 778 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin48,118 lines of code in 603 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 489 | 7,609 | 17,149 | 35,390 |
Markdown | 38 | 2,092 | 0 | 3,632 |
CSS | 5 | 475 | 83 | 3,350 |
JSON | 26 | 0 | 0 | 2,884 |
JavaScript | 30 | 360 | 444 | 2,097 |
TypeScript | 7 | 82 | 554 | 573 |
YAML | 5 | 18 | 4 | 145 |
Bourne Shell | 1 | 6 | 0 | 18 |
XML | 1 | 0 | 0 | 16 |
make | 1 | 6 | 0 | 13 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 8.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 78 | |
Interfaces | 60 | |
Traits | 17 | |
Classes | 399 | |
▷ Abstract classes | 9 | 2.26% |
▷ Concrete classes | 390 | 97.74% |
▷ Final classes | 182 | 46.67% |
Methods | 2,469 | |
▷ Static methods | 337 | 13.65% |
▷ Public methods | 2,089 | 84.61% |
▷ Protected methods | 50 | 2.03% |
▷ Private methods | 330 | 13.37% |
Functions | 202 | |
▷ Named functions | 57 | 28.22% |
▷ Anonymous functions | 145 | 71.78% |
Constants | 109 | |
▷ Global constants | 14 | 12.84% |
▷ Class constants | 95 | 87.16% |
▷ Public constants | 67 | 70.53% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
37 PNG files occupy 1.12MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/scheduler.png | 7.75KB | 7.75KB | 0.00% |
resources/images/onboarding/nav-position.png | 20.69KB | 20.67KB | 0.06% |
resources/images/button-new-single.png | 2.66KB | 1.39KB | ▼ 47.78% |
resources/images/onboarding/button-presentation.png | 8.08KB | 7.98KB | ▼ 1.23% |
resources/images/button-new-dots.png | 3.71KB | 2.34KB | ▼ 36.96% |