84% limdesk-chat

Code Review | Limdesk chat

WordPress plugin Limdesk chat scored84%from 54 tests.

About plugin

  • Plugin page: limdesk-chat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.4
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Nov 19, 2015
  • Number of updates: 11
  • Update frequency: every 40.3 days
  • Top authors: Limdesk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,049 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.48ms] Passed 4 tests

This is a short check of server-side resources used by Limdesk chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0150.59 ▲1.22
Dashboard /wp-admin3.32 ▲0.0152.90 ▲0.60
Posts /wp-admin/edit.php3.37 ▲0.0150.92 ▼3.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.11 ▼20.44
Media Library /wp-admin/upload.php3.24 ▲0.0136.29 ▼2.57

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Limdesk chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲9814.72 ▲0.371.80 ▼0.2740.20 ▲0.98
Dashboard /wp-admin2,211 ▲345.56 ▲0.0392.46 ▲3.4938.42 ▼4.58
Posts /wp-admin/edit.php2,119 ▲161.97 ▼0.0234.92 ▼6.5328.88 ▼8.63
Add New Post /wp-admin/post-new.php1,539 ▲1323.18 ▲0.17678.13 ▲46.1753.50 ▲4.45
Media Library /wp-admin/upload.php1,419 ▲224.21 ▲0.0395.93 ▼10.8441.56 ▼1.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limdesk-chat/limdesk-chat.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (If you set existing hash value in "Limdesk Chat" menu, then on your Wordpress page the chat bar will appear (like in the screenshot above)) image not found
You can take inspiration from this readme.txt

limdesk-chat/limdesk-chat.php Passed 13 tests

The primary PHP file in "Limdesk chat" version 1.0 is used by WordPress to initiate all plugin functionality
43 characters long description:
Enable limdesk chat on every wordpress page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17931

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png17.60KB7.73KB▼ 56.07%