90% channel-io

Code Review | Channel.io

WordPress plugin Channel.io scored90%from 54 tests.

About plugin

  • Plugin page: channel-io
  • Plugin version: 0.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Mar 27, 2023
  • Number of updates: 23
  • Update frequency: every 96.4 days
  • Top authors: zoyi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,087 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Channel.io
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.49 ▼0.26
Dashboard /wp-admin3.34 ▼0.0146.13 ▼14.84
Posts /wp-admin/edit.php3.39 ▲0.0345.97 ▲1.02
Add New Post /wp-admin/post-new.php5.92 ▲0.03100.76 ▲6.61
Media Library /wp-admin/upload.php3.26 ▲0.0333.53 ▼4.04

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Channel.io
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲8820.28 ▲6.10147.79 ▲145.8547.30 ▲4.42
Dashboard /wp-admin2,207 ▲365.55 ▲0.0292.55 ▼2.3443.77 ▼1.41
Posts /wp-admin/edit.php2,115 ▲151.98 ▲0.0339.92 ▲1.0239.18 ▲1.96
Add New Post /wp-admin/post-new.php1,539 ▲1023.01 ▼0.22642.36 ▲37.9849.23 ▼19.37
Media Library /wp-admin/upload.php1,415 ▲154.19 ▼0.01102.43 ▲4.4042.99 ▲0.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: ecommerce, chat, e-commerce

channel-io/channel_io.php 92% from 13 tests

The primary PHP file in "Channel.io" version 0.16 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("channel-io.php" instead of "channel_io.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin256 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP23310183
JavaScript12062
CSS10110
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
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
There were not PNG files found in your plugin