89% live-chat-skype

Code Review | Skype Live Chat

WordPress plugin Skype Live Chat scored89%from 54 tests.

About plugin

  • Plugin page: live-chat-skype
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 16, 2017
  • Latest release: Feb 7, 2018
  • Number of updates: 10
  • Update frequency: every 17.5 days
  • Top authors: gautamanizer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

An overview of server-side resources used by Skype Live Chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.47 ▼3.87
Dashboard /wp-admin3.32 ▲0.0246.06 ▼5.37
Posts /wp-admin/edit.php3.37 ▲0.0150.50 ▲1.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.20 ▼8.09
Media Library /wp-admin/upload.php3.24 ▲0.0137.06 ▼1.19
Skype Live Chat /wp-admin/options-general.php?page=skype-live-chat3.2127.88

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Skype Live Chat: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.24 ▼1.194.83 ▲2.9640.53 ▼2.90
Dashboard /wp-admin2,210 ▲225.88 ▲0.82114.53 ▼4.4443.73 ▼0.68
Posts /wp-admin/edit.php2,096 ▲71.98 ▼0.0441.30 ▲1.2335.08 ▲1.00
Add New Post /wp-admin/post-new.php1,536 ▲323.00 ▼0.19663.52 ▼78.1152.27 ▼0.33
Media Library /wp-admin/upload.php1,392 ▲74.13 ▼0.09115.47 ▲10.0648.83 ▲2.39
Skype Live Chat /wp-admin/options-general.php?page=skype-live-chat1,1652.2552.1832.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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: live chat, skype, chat

live-chat-skype/skype-live-chat.php 85% from 13 tests

Analyzing the main PHP file in "Skype Live Chat" version 0.3
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("live-chat-skype.php" instead of "skype-live-chat.php")

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 detected308 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP235169308

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
There were not PNG files found in your plugin