73% channelsale

Code Review | ChannelSale

WordPress plugin ChannelSale scored73%from 54 tests.

About plugin

  • Plugin page: channelsale
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 18, 2018
  • Latest release: Jun 16, 2023
  • Number of updates: 47
  • Update frequency: every 36.4 days
  • Top authors: channelsale (97.87%)Otto42 (4.26%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,651 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by ChannelSale
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0243.58 ▼2.92
Dashboard /wp-admin3.59 ▼0.0452.16 ▼18.58
Posts /wp-admin/edit.php3.70 ▲0.0250.53 ▼4.10
Add New Post /wp-admin/post-new.php6.17 ▲0.0284.27 ▼24.83
Media Library /wp-admin/upload.php3.51 ▲0.0241.78 ▲1.77

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

ChannelSale: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.75 ▲0.391.99 ▲0.1843.25 ▲3.97
Dashboard /wp-admin2,210 ▲365.64 ▲0.0787.46 ▼5.1840.72 ▼2.34
Posts /wp-admin/edit.php2,112 ▲152.06 ▲0.0436.94 ▼1.3237.24 ▼0.33
Add New Post /wp-admin/post-new.php1,536 ▼617.55 ▼5.38690.01 ▲29.7254.77 ▼6.62
Media Library /wp-admin/upload.php1,412 ▲154.27 ▲0.05103.75 ▼4.4542.14 ▲0.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_channelsale_users
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/channelsale/channel_sale.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
Please take inspiration from this readme.txt

channelsale/channel_sale.php 85% from 13 tests

This is the main PHP file of "ChannelSale" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 218 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("channelsale.php" instead of "channel_sale.php")

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
No dangerous file extensions were detected124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 are no PNG files in this plugin