62% healthlynked

Code Review | HealthLynked Plugin

WordPress plugin HealthLynked Plugin scored62%from 54 tests.

About plugin

  • Plugin page: healthlynked
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Oct 14, 2018
  • Latest release: Jan 10, 2020
  • Number of updates: 9
  • Update frequency: every 50.6 days
  • Top authors: healthlynked (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /778 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.28MB] [CPU: ▲5.00ms] Passed 4 tests

This is a short check of server-side resources used by HealthLynked Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4452.64 ▲9.00
Dashboard /wp-admin3.63 ▲0.32374.31 ▲326.28
Posts /wp-admin/edit.php3.66 ▲0.3156.13 ▲7.77
Add New Post /wp-admin/post-new.php6.15 ▲0.2696.12 ▼7.35
Media Library /wp-admin/upload.php3.47 ▲0.2446.08 ▲10.58
/wp-admin/admin.php?page=doctor_details3.4138.25
Login /wp-admin/admin.php?page=settings3.4141.86
Preferences /wp-admin/admin.php?page=preferences3.4440.69
/wp-admin/admin.php?page=get_timeslots3.4135.10
Appointments /wp-admin/admin.php?page=appointments3.4137.74

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: 2 new tables, 6 new options
New tables
wp_hld_preferences
wp_hld_settings
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

HealthLynked Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲25816.27 ▲1.979.15 ▲7.3351.64 ▲9.30
Dashboard /wp-admin2,285 ▲826.91 ▲1.86120.22 ▲7.7543.08 ▼5.18
Posts /wp-admin/edit.php2,164 ▲643.98 ▲1.9652.78 ▲12.7337.77 ▼1.04
Add New Post /wp-admin/post-new.php1,735 ▲20926.37 ▲8.74598.32 ▼20.6836.45 ▼26.95
Media Library /wp-admin/upload.php1,464 ▲645.90 ▲1.70113.52 ▲15.2954.66 ▲8.87
/wp-admin/admin.php?page=doctor_details7283.3423.1822.23
Login /wp-admin/admin.php?page=settings9163.5843.3529.83
Preferences /wp-admin/admin.php?page=preferences9473.8052.9829.34
/wp-admin/admin.php?page=get_timeslots8203.9237.7822.02
Appointments /wp-admin/admin.php?page=appointments7373.3423.8822.57

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_hld_settings
    • wp_hld_preferences
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=settings
    • > Notice in wp-content/plugins/healthlynked/settings.php+234
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=get_timeslots
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'twhl_get_timeslots_page_handler' not found or invalid function name

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/healthlynked/healthlynked.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/healthlynked/preferences.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/healthlynked/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/healthlynked/doctors.php:196
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/healthlynked/settings.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: Screenshot #8 (`/screenshot-8.png` : Defines the slots available for the clicked date) image missing
You can look at the official readme.txt

healthlynked/healthlynked.php 85% from 13 tests

"HealthLynked Plugin" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected20,440 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript61,02568916,564
CSS64611352,591
PHP61761161,285

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.50
▷ Minimum class complexity2.00
▷ Maximum class complexity27.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods32
▷ Static methods1650.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected