73% sello-channelconnector

Code Review | Sello ChannelConnector

WordPress plugin Sello ChannelConnector scored73%from 54 tests.

About plugin

  • Plugin page: sello-channelconn...
  • Plugin version: 1.6.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-5.8
  • WordPress version: 6.3.1
  • First release: May 26, 2018
  • Latest release: Dec 19, 2022
  • Number of updates: 53
  • Update frequency: every 31.5 days
  • Top authors: selloio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,882 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.01ms] Passed 4 tests

Analyzing server-side resources used by Sello ChannelConnector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0943.92 ▼11.06
Dashboard /wp-admin3.64 ▲0.3056.90 ▼3.42
Posts /wp-admin/edit.php3.69 ▲0.3360.88 ▲8.01
Add New Post /wp-admin/post-new.php6.17 ▲0.2891.73 ▼9.58
Media Library /wp-admin/upload.php3.50 ▲0.2749.76 ▲9.96
Settings /wp-admin/admin.php?page=channelconnector/settings3.4740.04
ChannelConnector /wp-admin/admin.php?page=channelconnector3.4738.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sello ChannelConnector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.35 ▲0.051.84 ▼0.1044.09 ▲5.21
Dashboard /wp-admin2,219 ▲555.58 ▼0.1486.55 ▼38.9138.71 ▼19.14
Posts /wp-admin/edit.php2,127 ▲271.99 ▼0.0640.66 ▼1.0237.47 ▼2.96
Add New Post /wp-admin/post-new.php1,572 ▲4123.32 ▲0.27659.80 ▲52.3854.94 ▲6.16
Media Library /wp-admin/upload.php1,427 ▲274.15 ▼0.11112.29 ▲6.9446.82 ▲0.76
Settings /wp-admin/admin.php?page=channelconnector/settings7942.0424.3929.78
ChannelConnector /wp-admin/admin.php?page=channelconnector7942.0223.1526.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 2 tables
    • wp_sello_channelconnector_orders
    • wp_sello_channelconnector_integrations
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/sello-channelconnector/uninstall.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sello-channelconnector/src/Settings/_settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/sello-channelconnector/src/Settings/_AdminOnboarding.php:18

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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in sello-channelconnector/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

sello-channelconnector/sello-channelconnector.php 92% from 13 tests

Analyzing the main PHP file in "Sello ChannelConnector" version 1.6.3
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,601 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP222452351,578
JSON20023

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity13.62
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods75
▷ Static methods34.00%
▷ Public methods6890.67%
▷ Protected methods11.33%
▷ Private methods68.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
53 PNG files occupy 1.03MB with 0.94MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/market/13_mini.png19.42KB1.75KB▼ 91.00%
assets/img/market/54_mini.png19.75KB1.71KB▼ 91.33%
assets/img/market/48_mini.png20.14KB1.86KB▼ 90.76%
assets/img/market/30_mini.png20.14KB1.86KB▼ 90.76%
assets/img/market/44_mini.png20.14KB1.86KB▼ 90.76%