84% slcm

Code Review | Skype Live Chat Messenger

WordPress plugin Skype Live Chat Messenger scored84%from 54 tests.

About plugin

  • Plugin page: slcm
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Aug 16, 2017
  • Latest release: Nov 9, 2017
  • Number of updates: 9
  • Update frequency: every 9.6 days
  • Top authors: hashsalacop (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /2,806 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Skype Live Chat Messenger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.18 ▼3.71
Dashboard /wp-admin3.31 ▲0.0148.29 ▼1.65
Posts /wp-admin/edit.php3.36 ▲0.0147.35 ▼2.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.95 ▲5.46
Media Library /wp-admin/upload.php3.23 ▲0.0133.10 ▼1.71

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: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skype Live Chat Messenger
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲21913.69 ▼0.684.93 ▲3.1737.52 ▼10.59
Dashboard /wp-admin2,245 ▲635.17 ▼0.72112.68 ▼3.1941.80 ▼5.57
Posts /wp-admin/edit.php2,133 ▲442.32 ▲0.3240.16 ▲3.2833.86 ▼1.95
Add New Post /wp-admin/post-new.php1,549 ▲1323.54 ▲0.17608.82 ▼84.4434.27 ▼32.64
Media Library /wp-admin/upload.php1,430 ▲484.54 ▲0.3495.80 ▼5.2540.64 ▼3.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slcm/inc/slcm_equee.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slcm/inc/function.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slcm/inc/function.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slcm/inc/slcm_admin.php:66

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: chat, skype, online

slcm/index.php 85% from 13 tests

The main PHP file in "Skype Live Chat Messenger" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slcm.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected117 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41016104
CSS10010
JavaScript1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin