90% cbxwpslack

Code Review | CBX WP Slack

WordPress plugin CBX WP Slack scored 90% from 54 tests.

About plugin

  • Plugin page: cbxwpslack
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.2.2
  • WordPress version: 5.8.1
  • First release: Mar 11, 2016
  • Latest release: Jul 14, 2019
  • Number of updates: 16
  • Update frequency: every 76.3 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,403 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.40MB] [CPU: ▼170.84ms] 75% from 4 tests

This is a short check of server-side resources used by CBX WP Slack
Please fix the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 8,922.09ms on /wp-admin/edit.php?post_type=cbxwpslack&page=cbxwpslacksetting)
PageMemory (MB)CPU Time (ms)
Home /3.19 ▲0.4739.68 ▲16.30
Dashboard /wp-admin3.50 ▲0.4450.66 ▼4.53
Posts /wp-admin/edit.php3.55 ▲0.4352.91 ▲4.50
Add New Post /wp-admin/post-new.php5.81 ▲0.3798.02 ▼683.29
Media Library /wp-admin/upload.php3.38 ▲0.3638.55 ▼0.04
Setting /wp-admin/edit.php?post_type=cbxwpslack&page=cbxwpslacksetting4.838,922.09
All Slacks In /wp-admin/edit.php?post_type=cbxwpslack3.4846.60
Add New /wp-admin/post-new.php?post_type=cbxwpslack3.4943.20
All Slacks Out /wp-admin/edit.php?post_type=cbxwpslackout3.4838.14

Server storage [IO: ▲0.26MB] [DB: ▲0.14MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for CBX WP Slack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,869 ▲28716.57 ▲1.1211.70 ▲4.7153.87 ▲2.59
Dashboard /wp-admin3,016 ▲825.92 ▼0.10140.79 ▼11.27121.92 ▲1.81
Posts /wp-admin/edit.php2,788 ▲492.70 ▲0.0171.41 ▼1.3898.46 ▲3.77
Add New Post /wp-admin/post-new.php1,715 ▲21718.34 ▼0.52396.29 ▲0.62116.80 ▼7.90
Media Library /wp-admin/upload.php1,856 ▲345.02 ▼0.02164.36 ▲13.38133.51 ▲4.69
Setting /wp-admin/edit.php?post_type=cbxwpslack&page=cbxwpslacksetting1,8395.79121.01110.84
All Slacks In /wp-admin/edit.php?post_type=cbxwpslack1,4942.9068.1678.76
Add New /wp-admin/post-new.php?post_type=cbxwpslack2,3183.5898.39101.87
All Slacks Out /wp-admin/edit.php?post_type=cbxwpslackout1,4492.6463.0276.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 2 options
    • cbxwpslack_integrations
    • cbxwpslackout_general

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: notification, communication, slack, slack for wordpress

cbxwpslack/cbxwpslack.php Passed 13 tests

The primary PHP file in "CBX WP Slack" version 1.2.3 is used by WordPress to initiate all plugin functionality
31 characters long description:
Slack Integration for wordpress

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
There were no executable files found in this plugin3,588 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity30.62
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods22.25%
▷ Public methods8494.38%
▷ Protected methods00.00%
▷ Private methods55.62%
▷ Named functions433.33%
▷ Anonymous functions866.67%
▷ Global constants5100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings