Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼290.96ms] Passed 4 tests
A check of server-side resources used by VContact Button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 125.22 ▲66.12 |
Dashboard /wp-admin | 3.44 ▲0.03 | 35.05 ▲2.77 |
Posts /wp-admin/edit.php | 3.66 ▲0.03 | 41.85 ▲4.81 |
Add New Post /wp-admin/post-new.php | 6.97 ▼0.00 | 99.15 ▼1,175.75 |
Media Library /wp-admin/upload.php | 3.38 ▲0.09 | 28.56 ▲4.32 |
Check Premium Version /wp-admin/admin.php?page=wpvcbL-premium | 3.12 | 17.06 |
Documentation /wp-admin/admin.php?page=wpvcbL-documentation | 3.12 | 24.81 |
VContact Button /wp-admin/admin.php?page=wp-viber-contact-button-lite | 3.38 | 36.83 |
Server storage [IO: ▲3.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 58 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by VContact Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲50 | 15.87 ▲0.64 | 5.84 ▲0.20 | 2.26 ▼0.59 |
Dashboard /wp-admin | 2,927 ▲73 | 6.08 ▼0.07 | 119.19 ▼17.75 | 185.55 ▼37.71 |
Posts /wp-admin/edit.php | 2,728 ▲37 | 3.26 ▲0.02 | 63.27 ▼0.50 | 134.17 ▼8.61 |
Add New Post /wp-admin/post-new.php | 1,686 ▲47 | 16.30 ▼6.06 | 398.80 ▼54.27 | 193.22 ▲28.72 |
Media Library /wp-admin/upload.php | 1,737 ▲39 | 5.53 ▲0.00 | 150.67 ▲14.02 | 195.70 ▼57.33 |
Check Premium Version /wp-admin/admin.php?page=wpvcbL-premium | 1,437 | 11.33 | 407.13 | 228.17 |
Documentation /wp-admin/admin.php?page=wpvcbL-documentation | 1,291 | 9.42 | 300.45 | 206.72 |
VContact Button /wp-admin/admin.php?page=wp-viber-contact-button-lite | 2,571 | 9.53 | 266.75 | 137.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wp-viber-contact-button-lite
- > Notice in wp-content/plugins/wp-viber-contact-button-lite/inc/backend/wpvcbl-general-setting.php+118
Trying to access array offset on value of type bool
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 fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-viber-contact-button-lite/inc/backend/wpvcbl-how-to-use.php
- > /wp-content/plugins/wp-viber-contact-button-lite/inc/backend/wpvcbl-general-setting.php
- > /wp-content/plugins/wp-viber-contact-button-lite/inc/backend/wpvcbl-about.php
- > /wp-content/plugins/wp-viber-contact-button-lite/inc/frontend/wpvcbl_shortcode.php
- > /wp-content/plugins/wp-viber-contact-button-lite/inc/backend/wpvcbl-setting.php
- > /wp-content/plugins/wp-viber-contact-button-lite/inc/frontend/wpvcbl-mobile-detect.php
- > /wp-content/plugins/wp-viber-contact-button-lite/wp-viber-contact-button-lite.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=wpvcbL-premium
- > Javascript (severe) in unknown
https://accesspressthemes.com/wordpress-plugins/wp-viber-contact-button/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpvcbL-documentation
- > Network (severe)
https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=wpvcbL-premium
- > Network (severe)
https://accesspressthemes.com/wp-content/uploads/2017/11/screenshot4.png - Failed to load resource: the server responded with a status of 404 ()
- > GET request to /wp-admin/admin.php?page=wpvcbL-documentation
- > Javascript (severe) in unknown
https://accesspressthemes.com/documentation/vcontact-button/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #0 in wp-viber-contact-button-lite/assets to your readme.txt
wp-viber-contact-button-lite/wp-viber-contact-button-lite.php Passed 13 tests
The main PHP file in "VContact Button" ver. 2.0.6 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
VContact Button allows you to easily create chat via Viber in WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,498 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 44 | 24 | 3,549 |
HTML | 2 | 202 | 0 | 2,825 |
LESS | 2 | 6 | 2 | 1,134 |
PHP | 7 | 169 | 656 | 1,122 |
SVG | 2 | 0 | 0 | 760 |
JavaScript | 1 | 11 | 4 | 87 |
Markdown | 1 | 11 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 78.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 4.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 9 | 19.15% |
▷ Public methods | 45 | 95.74% |
▷ Protected methods | 2 | 4.26% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 16 | 64.00% |
▷ Class constants | 9 | 36.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 1.25MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/upgrade-to-pro/upgrade-to-pro-feature.png | 616.88KB | 31.82KB | ▼ 94.84% |
images/plugin.png | 12.50KB | 5.31KB | ▼ 57.50% |
images/theme.png | 52.01KB | 17.38KB | ▼ 66.59% |
images/no-image-available.png | 14.23KB | 6.99KB | ▼ 50.89% |
images/pinterest.png | 2.17KB | 1.25KB | ▼ 42.30% |