84% czater-pl

Code Review | Chater.biz - live chat and call back for websites

WordPress plugin Chater.biz - live chat and call back for websites scored84%from 54 tests.

About plugin

  • Plugin page: czater-pl
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Sep 4, 2020
  • Number of updates: 7
  • Update frequency: every 1.0 days
  • Top authors: livechatczater (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.25ms] Passed 4 tests

A check of server-side resources used by Chater.biz - live chat and call back for websites
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.68 ▼5.97
Dashboard /wp-admin3.34 ▼0.0146.41 ▼14.63
Posts /wp-admin/edit.php3.39 ▲0.0344.89 ▼5.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.27 ▼2.82
Media Library /wp-admin/upload.php3.26 ▲0.0336.61 ▲3.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
widget_recent-posts
chaterbiz_czaterAutoCompliteEmail
chaterbiz_czaterAutoCompliteLogin
widget_theysaidso_widget
chaterbiz_CzaterId
theysaidso_admin_options
chaterbiz_css_template
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Chater.biz - live chat and call back for websites
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.12 ▼0.431.75 ▼0.0938.42 ▼4.59
Dashboard /wp-admin2,212 ▲315.53 ▼0.1986.99 ▼18.7768.64 ▲33.34
Posts /wp-admin/edit.php2,120 ▲201.98 ▼0.0535.94 ▼7.6931.07 ▼11.68
Add New Post /wp-admin/post-new.php1,697 ▲17121.95 ▼1.72735.94 ▲122.3744.44 ▼26.42
Media Library /wp-admin/upload.php1,420 ▲264.12 ▼0.1397.57 ▲0.6199.67 ▲54.88

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • chaterbiz_CzaterId
    • widget_recent-posts
    • widget_recent-comments
    • chaterbiz_czaterAutoCompliteEmail
    • db_upgraded
    • chaterbiz_czaterAutoCompliteLogin
    • widget_theysaidso_widget
    • chaterbiz_css_template
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/czater-pl/chater.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 93% 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
These attributes need to be fixed:
  • Screenshots: A description for screenshot #1 is missing in czater-pl/assets to your readme.txt
The official readme.txt might help

czater-pl/chater.php 92% from 13 tests

The primary PHP file in "Chater.biz - live chat and call back for websites" version 1.0.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("czater-pl.php" instead of "chater.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected162 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12013153
HTML1109

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods583.33%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.36KB11.89KB▼ 54.88%
assets/iconC.png0.69KB0.39KB▼ 43.60%