94% lynechat

Code Review | Lynechat

WordPress plugin Lynechat scored 94% from 54 tests.

About plugin

  • Plugin page: lynechat
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6
  • WordPress version: 5.9.2
  • First release: Jan 21, 2021
  • Latest release: Jan 21, 2021
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: lynechatadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 154 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Lynechat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0658.70 ▲5.10
Dashboard /wp-admin3.45 ▲0.0535.59 ▼37.57
Posts /wp-admin/edit.php3.68 ▲0.0442.00 ▼1.48
Add New Post /wp-admin/post-new.php6.92 ▼0.05114.82 ▼1,180.03
Media Library /wp-admin/upload.php3.33 ▲0.0428.15 ▲3.11
Lynechat /wp-admin/options-general.php?page=lynechat_settings3.3030.13

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Lynechat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲4315.88 ▲0.116.27 ▼0.361.95 ▼0.47
Dashboard /wp-admin2,894 ▲336.13 ▼0.07129.08 ▼7.87161.35 ▼1.82
Posts /wp-admin/edit.php2,696 ▲263.24 ▼0.0061.76 ▼25.58138.80 ▼6.47
Add New Post /wp-admin/post-new.php1,664 ▲416.72 ▲0.63395.78 ▼29.23195.65 ▲31.22
Media Library /wp-admin/upload.php1,706 ▲85.49 ▼0.02141.60 ▼0.90182.20 ▲0.82
Lynechat /wp-admin/options-general.php?page=lynechat_settings1,0452.4954.68137.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lynechat/lynechat.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
  • Plugin Name: Please specify the plugin name on the first line ( === lynechat === )
The official readme.txt is a good inspiration

lynechat/lynechat.php Passed 13 tests

Analyzing the main PHP file in "Lynechat" version 1.0.0
37 characters long description:
Embed real time chat on your web page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected181 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15216181

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions12
▷ Named functions12100.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
No PNG images were found in this plugin