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

Code Review | Helloify Contact Form and Live Chat

WordPress plugin Helloify Contact Form and Live Chat scored84%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: 6.3.1
  • 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,796 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.00MB] [CPU: ▼10.92ms] Passed 4 tests

Server-side resources used by Helloify Contact Form and Live Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.37 ▼9.18
Dashboard /wp-admin3.32 ▼0.0344.00 ▼11.54
Posts /wp-admin/edit.php3.37 ▲0.0145.29 ▼4.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.76 ▼18.82
Media Library /wp-admin/upload.php3.25 ▲0.0136.86 ▲2.67
Helloify Chat /wp-admin/options-general.php?page=helloify3.2131.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
web_customer_id

Browser metrics Passed 4 tests

An overview of browser requirements for Helloify Contact Form and Live Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲19713.74 ▼0.7810.01 ▲8.1041.62 ▲2.13
Dashboard /wp-admin2,210 ▲225.86 ▲1.02107.80 ▼0.6538.09 ▼3.98
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0539.86 ▲4.0737.67 ▲3.26
Add New Post /wp-admin/post-new.php1,517 ▼2517.48 ▼0.90684.81 ▲53.2656.14 ▲2.11
Media Library /wp-admin/upload.php1,389 ▲14.14 ▼0.20111.30 ▲13.6146.34 ▲2.15
Helloify Chat /wp-admin/options-general.php?page=helloify8151.8424.6224.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloify-contact-form-and-live-chat/helloify.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/helloify-contact-form-and-live-chat/options.php:5

User-side errors Passed 1 test

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

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: contact form, messaging, contact, live help, wordpress live chat...

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

The principal PHP file in "Helloify Contact Form and Live Chat" v. 1.0.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to 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 programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin164 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2257164

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin