74% updates-to-slack

Code Review | Updates to Slack

WordPress plugin Updates to Slack scored74%from 54 tests.

About plugin

  • Plugin page: updates-to-slack
  • Plugin version: 2.1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 2, 2021
  • Latest release: Feb 10, 2023
  • Number of updates: 11
  • Update frequency: every 67.5 days
  • Top authors: cooperman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,449 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Updates to Slack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.44 ▼0.95
Dashboard /wp-admin3.33 ▼0.0243.08 ▼18.99
Posts /wp-admin/edit.php3.44 ▲0.0941.89 ▼4.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.39 ▼17.57
Media Library /wp-admin/upload.php3.25 ▲0.0234.58 ▲0.58
Updates to Slack /wp-admin/options-general.php?page=updates2slack3.3133.61

Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 15 new options
New WordPress options
can_compress_scripts
db_upgraded
updates2slack_ignore_plugins
updates2slack_sitename
theysaidso_admin_options
updates2slack_slackurls
widget_theysaidso_widget
updates2slack_enabled
widget_recent-posts
updates2slack_settings
...

Browser metrics Passed 4 tests

A check of browser resources used by Updates to Slack
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.68 ▼0.701.71 ▲0.1243.10 ▼1.90
Dashboard /wp-admin2,210 ▲244.81 ▼0.1498.96 ▼13.3339.06 ▼3.43
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0537.02 ▲0.4335.21 ▼0.64
Add New Post /wp-admin/post-new.php1,550 ▲2118.18 ▼0.01617.62 ▼20.9768.18 ▲14.78
Media Library /wp-admin/upload.php1,395 ▲74.24 ▼0.0194.46 ▲2.1842.36 ▼1.57
Updates to Slack /wp-admin/options-general.php?page=updates2slack1,1092.0332.5726.43

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/updates-to-slack/updates-to-slack.php+177
    Invalid argument supplied for foreach()
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • updates2slack_nextruntime_time
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • updates2slack_ignore_themes
    • updates2slack_frequency
    • can_compress_scripts
    • updates2slack_sitename
    • updates2slack_ignore_plugins
    • db_upgraded
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/updates-to-slack/view/options.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: The official readme.txt might help

updates-to-slack/updates-to-slack.php Passed 13 tests

"Updates to Slack" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Sends Slack alerts about WordPress core, plugin and theme updates

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 plugin463 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP210650463

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin