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.02MB] [CPU: ▼1.49ms] Passed 4 tests
Server-side resources used by Smartarget Social - Contact Us
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.81 ▼1.60 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.82 ▲2.49 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.23 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 95.13 ▼6.56 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.30 ▲8.74 |
Smartarget Social - Contact Us /wp-admin/options-general.php?page=smartarget_whatsapp | 3.24 | 34.72 |
Server storage [IO: ▲1.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Smartarget Social - Contact Us
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲175 | 21.23 ▲7.07 | 9.16 ▲7.09 | 44.23 ▼2.07 |
Dashboard /wp-admin | 2,210 ▲24 | 10.93 ▲6.00 | 176.79 ▲63.00 | 38.31 ▼2.70 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 7.29 ▲5.15 | 109.11 ▲73.09 | 31.43 ▼1.67 |
Add New Post /wp-admin/post-new.php | 1,682 ▲149 | 28.01 ▲4.89 | 670.47 ▲0.48 | 52.15 ▲0.67 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 9.62 ▲5.45 | 193.28 ▲89.23 | 45.00 ▼0.63 |
Smartarget Social - Contact Us /wp-admin/options-general.php?page=smartarget_whatsapp | 3,374 | 9.95 | 263.66 | 200.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/smartarget-social-contact-us/public/partials/smartarget-whatsapp-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-social-contact-us/admin/partials/smartarget-whatsapp-admin-display.php:17
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: smartarget, wa, whatsapp, contact us, support...
smartarget-social-contact-us/smartarget-whatsapp.php 85% from 13 tests
Analyzing the main PHP file in "Smartarget Social - Contact Us" version 1.0
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smartarget-social-contact-us.php" instead of "smartarget-whatsapp.php")
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
Good job! No executable or dangerous file extensions detected438 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 137 | 528 | 233 |
JavaScript | 3 | 5 | 1,397 | 205 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected