99% wp-skype-live-chat

Code Review | WP Skype Live Chat

WordPress plugin WP Skype Live Chat scored 99% from 54 tests.

About plugin

  • Plugin page: wp-skype-live-chat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.5
  • WordPress version: 5.8.1
  • First release: May 26, 2017
  • Latest release: May 26, 2017
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: thinhbg59 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 697 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by WP Skype Live Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0238.32 ▲1.83
Dashboard /wp-admin3.09 ▲0.0354.40 ▲4.03
Posts /wp-admin/edit.php3.14 ▲0.0345.93 ▼3.80
Add New Post /wp-admin/post-new.php5.45 ▲0.0196.27 ▼562.78
Media Library /wp-admin/upload.php3.03 ▲0.0338.21 ▲0.09
Skype Live Chat /wp-admin/options-general.php?page=skype-live-chat3.0030.53

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Skype Live Chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,797 ▲22520.38 ▲4.7891.86 ▲81.8951.93 ▼4.20
Dashboard /wp-admin2,978 ▲505.89 ▼0.04151.55 ▲3.66121.03 ▲8.25
Posts /wp-admin/edit.php2,744 ▲52.69 ▲0.0076.52 ▲1.8199.19 ▼1.00
Add New Post /wp-admin/post-new.php1,686 ▲318.36 ▼0.33444.40 ▲37.33129.05 ▲9.95
Media Library /wp-admin/upload.php1,815 ▲85.02 ▲0.00165.70 ▲8.26130.71 ▲5.14
Skype Live Chat /wp-admin/options-general.php?page=skype-live-chat1,0342.0858.2581.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

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

"WP Skype Live Chat" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please don't use more than 140 characters for the plugin description (currently 214 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin131 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33133131

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected