10% precision-contact-web-chat

Code Review | Precision Contact Web Chat

WordPress plugin Precision Contact Web Chat scored10%from 54 tests.

About plugin

  • Plugin page: precision-contact...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 29, 2021
  • Latest release: Apr 29, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: redphoenixllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /298 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.68ms] Passed 4 tests

Server-side resources used by Precision Contact Web Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.96 ▼6.07
Dashboard /wp-admin3.32 ▼0.0244.58 ▼17.42
Posts /wp-admin/edit.php3.38 ▲0.0148.30 ▼0.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.77 ▲1.75
Media Library /wp-admin/upload.php3.25 ▲0.0136.39 ▲3.54
Precision Contact Web Chat /wp-admin/options-general.php?page=web-chat-plugin3.1931.44

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
precision_contact_web_chat_key
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Precision Contact Web Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲15313.82 ▼0.568.98 ▲6.8438.99 ▼3.88
Dashboard /wp-admin2,210 ▲225.04 ▲0.0996.42 ▼11.2937.84 ▼0.32
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0339.35 ▲4.6135.28 ▲3.81
Add New Post /wp-admin/post-new.php1,536 ▲523.15 ▲5.04619.68 ▲10.5249.33 ▼4.96
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0096.87 ▼0.9542.07 ▼3.13
Precision Contact Web Chat /wp-admin/options-general.php?page=web-chat-plugin7912.0725.5024.75

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=web-chat-plugin
    • > 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=web-chat-plugin
    • > 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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/precision-contact-web-chat/precision_contact_web_chat.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

precision-contact-web-chat/precision_contact_web_chat.php 85% from 13 tests

Analyzing the main PHP file in "Precision Contact Web Chat" version 1.0.0
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("precision-contact-web-chat.php" instead of "precision_contact_web_chat.php")
  • Description: The description should be shorter than 140 characters (currently 284 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
No dangerous file extensions were detected86 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1112084
CSS1061
JavaScript1061

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin