78% wp-down-slack-alert

Code Review | WP Down Slack Alert

WordPress plugin WP Down Slack Alert scored 78% from 54 tests.

About plugin

  • Plugin page: wp-down-slack-alert
  • Plugin version: 0.4.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 5.8.1
  • First release: Dec 12, 2019
  • Latest release: Jan 31, 2022
  • Number of updates: 24
  • Update frequency: every 32.5 days
  • Top authors: audrasjb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,327 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼148.84ms] Passed 4 tests

Analyzing server-side resources used by WP Down Slack Alert
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.01 ▲0.1824.44 ▲0.77
Dashboard /wp-admin3.24 ▲0.1832.55 ▼2.27
Posts /wp-admin/edit.php3.36 ▲0.2531.12 ▼10.41
Add New Post /wp-admin/post-new.php5.61 ▲0.1768.43 ▼583.44
Media Library /wp-admin/upload.php3.19 ▲0.1823.37 ▲1.62
Slack Alert /wp-admin/tools.php?page=settings-slack-notification3.1829.13

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

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (45.27KB) outside of "wp-content/plugins/wp-down-slack-alert/" and "wp-content/uploads/"
    • (new file) wp-content/mu-plugins/wp-down-slack-alert-worker.php
Filesystem: 18 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by WP Down Slack Alert
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,671 ▲7016.01 ▲0.355.00 ▲0.1377.18 ▼0.79
Dashboard /wp-admin2,938 ▲425.99 ▼0.19114.57 ▼18.36169.89 ▲2.33
Posts /wp-admin/edit.php2,745 ▲23.35 ▲0.1164.42 ▼0.86139.37 ▲0.61
Add New Post /wp-admin/post-new.php3,738 ▲318.20 ▲0.05432.82 ▼6.12152.57 ▼11.37
Media Library /wp-admin/upload.php1,757 ▲85.53 ▲0.03147.49 ▲4.95186.70 ▼3.87
Slack Alert /wp-admin/tools.php?page=settings-slack-notification2,1265.37102.48158.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 2 options in the database
    • settings_slack_notification_disable_email
    • wpdsa_version

Smoke tests 50% 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 0% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-down-slack-alert/wp-down-slack-alert.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-down-slack-alert/mu-plugin-template/wp-down-slack-alert-worker.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: alert, recovery, downtime, notification, recovery mode...

wp-down-slack-alert/wp-down-slack-alert.php Passed 13 tests

The principal PHP file in "WP Down Slack Alert" v. 0.4.1 is loaded by WordPress automatically on each request
93 characters long description:
Connect WordPress Recovery Mode to a your Slack team to receive alerts when websites are down

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
Success! There were no dangerous files found in this plugin1,017 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
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 functions1285.71%
▷ Anonymous functions214.29%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.68MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/config-7.png114.92KB33.87KB▼ 70.52%
images/config-3.png74.08KB20.15KB▼ 72.80%
images/config-6.png78.31KB20.90KB▼ 73.31%
images/config-5.png85.58KB24.75KB▼ 71.08%
images/config-2.png129.45KB41.51KB▼ 67.93%