84% czater

Code Review | Czater.pl - live chat i telefon

WordPress plugin Czater.pl - live chat i telefon scored 84% from 54 tests.

About plugin

  • Plugin page: czater
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5
  • WordPress version: 5.8.1
  • First release: May 7, 2016
  • Latest release: Sep 4, 2020
  • Number of updates: 38
  • Update frequency: every 46.6 days
  • Top authors: czater (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 2,877 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
Install script ran successfully

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

This is a short check of server-side resources used by Czater.pl - live chat i telefon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1437.65 ▲14.72
Dashboard /wp-admin3.09 ▲0.0345.76 ▲2.61
Posts /wp-admin/edit.php3.14 ▲0.0351.83 ▲6.51
Add New Post /wp-admin/post-new.php5.45 ▲0.01107.80 ▼566.97
Media Library /wp-admin/upload.php3.03 ▲0.0238.63 ▲4.91

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 5 new options
New WordPress options
czaterAutoCompliteLogin
CzaterId
czaterCode
czaterAutoCompliteEmail
css_template

Browser metrics Passed 4 tests

A check of browser resources used by Czater.pl - live chat i telefon
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,698 ▲10215.89 ▲0.396.62 ▼4.4950.95 ▲0.24
Dashboard /wp-admin2,979 ▲485.89 ▼0.25150.12 ▼9.91146.70 ▲24.07
Posts /wp-admin/edit.php2,759 ▲202.57 ▼0.1098.07 ▲32.04189.11 ▲94.82
Add New Post /wp-admin/post-new.php1,696 ▲11518.37 ▼2.30463.27 ▲66.61114.06 ▼8.05
Media Library /wp-admin/upload.php1,770 ▼374.98 ▼0.02131.44 ▼24.80141.42 ▲9.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 5 options
    • czaterCode
    • CzaterId
    • czaterAutoCompliteLogin
    • czaterAutoCompliteEmail
    • css_template

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/czater/czater.php

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Czat), #2 (Konfiguracja w wordpressie)
Please take inspiration from this readme.txt

czater/czater.php Passed 13 tests

The main PHP file in "Czater.pl - live chat i telefon" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Live chat na Twoją stronę

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin126 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11713117
HTML1109

PHP code Passed 2 tests

This is a short overview 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.31
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods480.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.22MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png0.69KB0.39KB▼ 43.60%
screenshot-2.png62.38KB23.66KB▼ 62.08%
assets/iconC.png0.69KB0.39KB▼ 43.60%
screenshot-1.png165.21KB52.80KB▼ 68.04%