78% smartarget-social-contact-us

Code Review | Smartarget Social - Contact Us

WordPress plugin Smartarget Social - Contact Us scored 78% from 54 tests.

About plugin

  • Plugin page: smartarget-social...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Dec 15, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 13
  • Update frequency: every 46.3 days
  • Top authors: erezs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 841 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.81 ▼1.60
Dashboard /wp-admin3.33 ▲0.0252.82 ▲2.49
Posts /wp-admin/edit.php3.38 ▲0.0251.23 ▼0.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0495.13 ▼6.56
Media Library /wp-admin/upload.php3.25 ▲0.0242.30 ▲8.74
Smartarget Social - Contact Us /wp-admin/options-general.php?page=smartarget_whatsapp3.2434.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17521.23 ▲7.079.16 ▲7.0944.23 ▼2.07
Dashboard /wp-admin2,210 ▲2410.93 ▲6.00176.79 ▲63.0038.31 ▼2.70
Posts /wp-admin/edit.php2,111 ▲197.29 ▲5.15109.11 ▲73.0931.43 ▼1.67
Add New Post /wp-admin/post-new.php1,682 ▲14928.01 ▲4.89670.47 ▲0.4852.15 ▲0.67
Media Library /wp-admin/upload.php1,395 ▲109.62 ▲5.45193.28 ▲89.2345.00 ▼0.63
Smartarget Social - Contact Us /wp-admin/options-general.php?page=smartarget_whatsapp3,3749.95263.66200.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP14137528233
JavaScript351,397205
CSS1040

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 code0.10
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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