78% formilla-chat-and-marketing

Code Review | Customer Support Software, Live Chat, & Marketing Automation

WordPress plugin Customer Support Software, Live Chat, & Marketing Automation scored78%from 54 tests.

About plugin

  • Plugin page: formilla-chat-and...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 24, 2016
  • Latest release: Aug 1, 2023
  • Number of updates: 44
  • Update frequency: every 56.2 days
  • Top authors: formilla-live-chat (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /6,160 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.67ms] Passed 4 tests

Analyzing server-side resources used by Customer Support Software, Live Chat, & Marketing Automation
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.79 ▼2.74
Dashboard /wp-admin3.35 ▲0.0543.14 ▼3.51
Posts /wp-admin/edit.php3.40 ▲0.0542.34 ▼2.99
Add New Post /wp-admin/post-new.php5.93 ▲0.0577.60 ▼12.60
Media Library /wp-admin/upload.php3.27 ▲0.0534.22 ▼3.56
Formilla Tools Settings /wp-admin/options-general.php?page=formilla-chat-and-marketing3.2225.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Customer Support Software, Live Chat, & Marketing Automation: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4813.26 ▼1.501.57 ▼0.3336.17 ▼3.26
Dashboard /wp-admin2,225 ▲435.95 ▲1.11111.38 ▲9.2182.95 ▲44.40
Posts /wp-admin/edit.php2,108 ▲191.99 ▲0.0236.33 ▲0.1031.29 ▼3.84
Add New Post /wp-admin/post-new.php1,548 ▲2923.17 ▼0.09735.60 ▲24.4447.26 ▼11.47
Media Library /wp-admin/upload.php1,404 ▲134.16 ▼0.06113.57 ▲9.5845.21 ▲1.68
Formilla Tools Settings /wp-admin/options-general.php?page=formilla-chat-and-marketing8262.0225.9322.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=formilla-chat-and-marketing
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=formilla-chat-and-marketing
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/formilla-chat-and-marketing/formilla-chat-and-marketing.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt is a good inspiration

formilla-chat-and-marketing/formilla-chat-and-marketing.php 92% from 13 tests

The main PHP file in "Customer Support Software, Live Chat, & Marketing Automation" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 157 characters long)

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
There were no executable files found in this plugin304 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15823304

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png0.52KB0.54KB0.00%
main-logo.png4.21KB3.10KB▼ 26.17%