Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼7.33ms] Passed 4 tests
An overview of server-side resources used by Smartarget Viber - Contact Us
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.98 ▲3.84 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.43 ▼14.41 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 48.78 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.39 ▼17.46 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.84 ▲1.25 |
Smartarget Viber - Contact Us /wp-admin/options-general.php?page=smartarget_viber | 3.26 | 32.30 |
Server storage [IO: ▲3.84MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Smartarget Viber - Contact Us
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲161 | 21.26 ▲6.90 | 9.07 ▲7.40 | 44.82 ▲6.41 |
Dashboard /wp-admin | 2,213 ▲25 | 11.02 ▲6.16 | 192.42 ▲81.96 | 40.55 ▲0.43 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 7.27 ▲5.23 | 109.81 ▲66.75 | 31.56 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,682 ▲168 | 28.26 ▲10.65 | 643.98 ▼70.24 | 43.86 ▼16.08 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 9.70 ▲5.46 | 191.47 ▲91.19 | 44.40 ▼0.38 |
Smartarget Viber - Contact Us /wp-admin/options-general.php?page=smartarget_viber | 2,354 | 9.97 | 235.90 | 116.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smartarget-viber-contact-us/public/partials/smartarget-viber-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-viber-contact-us/admin/partials/smartarget-viber-admin-display.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: contact us, vibercom, live support, chat, viber chat...
smartarget-viber-contact-us/smartarget-viber.php 85% from 13 tests
"Smartarget Viber - Contact Us" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartarget-viber-contact-us.php" instead of "smartarget-viber.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin868 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 5 | 4,369 | 642 |
PHP | 12 | 130 | 522 | 225 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected