93% zipp-chat

Code Review | Zipp.Chat - Live Support Chat

WordPress plugin Zipp.Chat - Live Support Chat scored 93% from 54 tests.

About plugin

  • Plugin page: zipp-chat
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.2
  • WordPress version: 5.8.1
  • First release: Nov 21, 2017
  • Latest release: May 7, 2019
  • Number of updates: 9
  • Update frequency: every 59.1 days
  • Top authors: JAKWEB (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 981 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼139.92ms] Passed 4 tests

A check of server-side resources used by Zipp.Chat - Live Support Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0742.95 ▲2.39
Dashboard /wp-admin3.13 ▲0.0855.34 ▲3.06
Posts /wp-admin/edit.php3.22 ▲0.1151.64 ▼3.13
Add New Post /wp-admin/post-new.php5.49 ▲0.0698.66 ▼561.99
Media Library /wp-admin/upload.php3.07 ▲0.0738.17 ▲3.40
Zipp.Chat /wp-admin/options-general.php?page=zipp_chat3.0728.89

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 2 new options
New WordPress options
jakweblc-lc-options
jakweblc-embed-widget-id

Browser metrics Passed 4 tests

Checking browser requirements for Zipp.Chat - Live Support Chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲13716.39 ▲1.1412.00 ▲1.8347.68 ▼5.52
Dashboard /wp-admin2,972 ▲355.94 ▼0.28184.43 ▲16.46117.19 ▲0.68
Posts /wp-admin/edit.php2,744 ▲52.70 ▼0.0283.91 ▲12.9091.51 ▲0.69
Add New Post /wp-admin/post-new.php1,503 ▼7818.45 ▲0.33390.19 ▼50.25113.41 ▼4.85
Media Library /wp-admin/upload.php1,812 ▼105.06 ▲0.03163.54 ▲2.75118.20 ▼11.43
Zipp.Chat /wp-admin/options-general.php?page=zipp_chat1,2442.4766.9872.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/zipp-chat/jakweblc.php:363
    • > PHP Notice
      Undefined variable: lc_embedid in wp-content/plugins/zipp-chat/templates/widget.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

zipp-chat/jakweblc.php 85% from 13 tests

This is the main PHP file of "Zipp.Chat - Live Support Chat" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zipp-chat.php" instead of "jakweblc.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected581 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39615510
CSS15039
JavaScript118932

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.68
Average class complexity37.00
▷ Minimum class complexity35.00
▷ Maximum class complexity39.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods2090.91%
▷ Protected methods29.09%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/zippchat-logo.png10.39KB4.12KB▼ 60.30%