83% qiscus-multichannel-widget

Code Review | Qiscus Multichannel Widget

WordPress plugin Qiscus Multichannel Widget scored83%from 54 tests.

About plugin

  • Plugin page: qiscus-multichann...
  • Plugin version: 0.8.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.5.3
  • WordPress version: 6.3.1
  • First release: May 15, 2019
  • Latest release: Nov 23, 2020
  • Number of updates: 11
  • Update frequency: every 50.8 days
  • Top authors: qiscus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /731 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼14.41ms] Passed 4 tests

An overview of server-side resources used by Qiscus Multichannel Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.47 ▼2.42
Dashboard /wp-admin3.37 ▲0.0350.10 ▼18.41
Posts /wp-admin/edit.php3.49 ▲0.1347.47 ▼6.15
Add New Post /wp-admin/post-new.php5.97 ▲0.0987.98 ▼30.66
Media Library /wp-admin/upload.php3.30 ▲0.0737.35 ▲0.13
Qiscus Multichannel Widget /wp-admin/options-general.php?page=qismo-widget3.2630.48

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/qiscus-multichannel-widget/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Qiscus Multichannel Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲6714.47 ▲0.102.10 ▲0.5143.67 ▲4.63
Dashboard /wp-admin2,223 ▲205.83 ▼0.21100.64 ▼3.7739.36 ▼7.00
Posts /wp-admin/edit.php2,108 ▲82.00 ▼0.0237.41 ▼3.7533.42 ▼5.80
Add New Post /wp-admin/post-new.php1,533 ▲723.07 ▲5.61691.53 ▲63.4959.89 ▲12.26
Media Library /wp-admin/upload.php1,411 ▲114.23 ▼0.0598.02 ▼12.0143.35 ▲1.09
Qiscus Multichannel Widget /wp-admin/options-general.php?page=qismo-widget8082.0523.9328.18

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-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/qiscus-multichannel-widget/public/partials/qismo-widget-public-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/qiscus-multichannel-widget/admin/partials/qismo-widget-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can look at the official readme.txt

qiscus-multichannel-widget/qismo-widget.php 85% from 13 tests

The main file in "Qiscus Multichannel Widget" v. 0.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("qiscus-multichannel-widget.php" instead of "qismo-widget.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 detected281 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12134542275
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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