63% siteheart

Code Review | SiteHeart

WordPress plugin SiteHeart scored63%from 54 tests.

About plugin

  • Plugin page: siteheart
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2012
  • Latest release: Mar 11, 2014
  • Number of updates: 5
  • Update frequency: every 94.8 days
  • Top authors: siteheart (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /9,786 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.21MB] [CPU: ▼42.72ms] Passed 4 tests

This is a short check of server-side resources used by SiteHeart
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.76 ▼0.7011.48 ▼31.28
Dashboard /wp-admin2.80 ▼0.5117.37 ▼38.29
Posts /wp-admin/edit.php2.80 ▼0.5618.78 ▼30.14
Add New Post /wp-admin/post-new.php2.80 ▼3.0921.50 ▼71.17
Media Library /wp-admin/upload.php2.80 ▼0.4313.94 ▼26.99
Go to administrator panel /wp-admin/admin.php?page=siteheart_admin2.8014.45
Settings /wp-admin/admin.php?page=siteheart2.8019.12

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 23 new options
New WordPress options
sh_hide
sh_template
sh_side
sh_inviteText
sh_text_layout
sh_title_offline
sh_offline_pay
widget_recent-comments
sh_track
sh_devisions
...

Browser metrics Passed 4 tests

An overview of browser requirements for SiteHeart
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.25 ▼1.501.93 ▲0.0543.46 ▲1.49
Dashboard /wp-admin2,228 ▲405.86 ▼0.04108.76 ▼9.9065.12 ▲16.58
Posts /wp-admin/edit.php2,125 ▲362.02 ▼0.0639.99 ▲1.6234.30 ▼3.05
Add New Post /wp-admin/post-new.php1,545 ▲1223.17 ▼0.04709.46 ▲103.9149.70 ▼0.79
Media Library /wp-admin/upload.php1,425 ▲404.19 ▼0.1098.66 ▼2.9977.65 ▲34.05
Go to administrator panel /wp-admin/admin.php?page=siteheart_admin1,22715.49226.2385.43
Settings /wp-admin/admin.php?page=siteheart1,89215.23208.3024.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=siteheart
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=siteheart
    • > Notice in wp-content/plugins/siteheart/set.php+205
    Undefined index: HTTP_ACCEPT_LANGUAGE

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/siteheart/siteheart.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/siteheart/set.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/siteheart/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/siteheart/success.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=siteheart_admin
    • > Network (severe)
    https://sender.mobi/go - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=siteheart
    • > Network (severe)
    http://d1ytok5muqmio7.cloudfront.net/apps/workplace/img/ajax-loader.gif - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/admin.php?page=siteheart
    • > Network (severe)
    https://sender.mobi/enbitrixauth - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/admin.php?page=siteheart
    • > Network (severe)
    https://sender.mobi/esapi/me/fullinfo?callback=sh_autorize - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: widget, operator, call center, chat widget, live help...

siteheart/siteheart.php Passed 13 tests

Analyzing the main PHP file in "SiteHeart" version 1.0.0
41 characters long description:
SiteHeart - Free online chat for website.

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 plugin710 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP412414617
PO File1397593

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/siteheart_logo.png1.64KB0.72KB▼ 55.89%