94% helloify-contact-form-and-live-chat

Code Review | Helloify Contact Form and Live Chat

WordPress plugin Helloify Contact Form and Live Chat scored 94% from 54 tests.

About plugin

  • Plugin page: helloify-contact-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 5.9.2
  • First release: Apr 7, 2015
  • Latest release: Apr 13, 2015
  • Number of updates: 14
  • Update frequency: every 0.9 days
  • Top authors: helloify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,598 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼296.07ms] Passed 4 tests

Analyzing server-side resources used by Helloify Contact Form and Live Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0254.88 ▲2.56
Dashboard /wp-admin3.43 ▲0.0237.63 ▲3.70
Posts /wp-admin/edit.php3.66 ▲0.0238.68 ▼0.27
Add New Post /wp-admin/post-new.php6.90 ▼0.0798.06 ▼1,180.38
Media Library /wp-admin/upload.php3.31 ▲0.0123.24 ▼6.20
Helloify Chat /wp-admin/options-general.php?page=helloify3.2823.39

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
web_customer_id

Browser metrics Passed 4 tests

Checking browser requirements for Helloify Contact Form and Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,887 ▲14316.35 ▲1.0813.59 ▲7.503.02 ▲0.49
Dashboard /wp-admin2,897 ▲466.12 ▼0.06122.19 ▼16.25162.44 ▲0.10
Posts /wp-admin/edit.php2,696 ▲53.23 ▼0.0164.25 ▲1.61143.57 ▲0.14
Add New Post /wp-admin/post-new.php1,671 ▲1019.12 ▲2.96415.41 ▲12.97160.10 ▲1.12
Media Library /wp-admin/upload.php1,703 ▲55.49 ▼0.04153.05 ▼0.09198.68 ▲5.07
Helloify Chat /wp-admin/options-general.php?page=helloify1,0622.4453.42102.29

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloify-contact-form-and-live-chat/options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloify-contact-form-and-live-chat/helloify.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: wordpress live chat, messaging, contact, contact form, helloify...

helloify-contact-form-and-live-chat/helloify.php 92% from 13 tests

The entry point to "Helloify Contact Form and Live Chat" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("helloify-contact-form-and-live-chat.php" instead of "helloify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2257164

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin