10% leadroid-live-chat

Code Review | LeaDroid Chat

WordPress plugin LeaDroid Chat scored 10% from 54 tests.

About plugin

  • Plugin page: leadroid-live-chat
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 5.9.2
  • First release: Aug 24, 2016
  • Latest release: Aug 24, 2016
  • Number of updates: 25
  • Update frequency: every 0.2 days
  • Top authors: joonaheino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 513 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/leadroid-live-chat/wp-lea-droid-chat.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; leadroidchat has a deprecated constructor

Server metrics [RAM: ▼2.48MB] [CPU: ▼358.10ms] Passed 4 tests

An overview of server-side resources used by LeaDroid Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.89 ▼1.634.32 ▼60.28
Dashboard /wp-admin1.91 ▼1.504.22 ▼36.97
Posts /wp-admin/edit.php1.91 ▼1.733.66 ▼38.77
Add New Post /wp-admin/post-new.php1.91 ▼5.063.82 ▼1,296.38
Media Library /wp-admin/upload.php1.91 ▼1.393.39 ▼20.99
LeaDroid Chat /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php1.914.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for LeaDroid Chat
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1416.01 ▲0.245.84 ▼0.452.86 ▲0.31
Dashboard /wp-admin2,894 ▲336.12 ▼0.19123.68 ▼17.16233.19 ▲71.43
Posts /wp-admin/edit.php2,690 ▲53.23 ▼0.0167.07 ▼0.56166.49 ▲14.10
Add New Post /wp-admin/post-new.php1,685 ▼5221.52 ▲0.90448.07 ▼38.68188.25 ▼14.77
Media Library /wp-admin/upload.php1,700 ▲115.50 ▲0.05136.13 ▼18.22191.83 ▼41.84
LeaDroid Chat /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php1,1002.3954.54115.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/leadroid-live-chat/wp-lea-droid-chat.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; leadroidchat has a deprecated constructor

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
    • > Deprecated in wp-content/plugins/leadroid-live-chat/wp-lea-droid-chat.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; leadroidchat has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=leadroid-live-chat/wp-lea-droid-chat.php
    • > Network (severe)
    wp-admin/images/leadroid.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: lead, chat, leadroid, live, sales...

leadroid-live-chat/wp-lea-droid-chat.php 92% from 13 tests

"LeaDroid Chat" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("leadroid-live-chat.php" instead of "wp-lea-droid-chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected102 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25015102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/leadroid.png11.70KB4.43KB▼ 62.15%
images/email-16px.png0.24KB0.19KB▼ 22.49%