84% slack

Code Review | Slack

WordPress plugin Slack scored84%from 54 tests.

About plugin

  • Plugin page: slack
  • Plugin version: 0.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 12, 2014
  • Latest release: Apr 9, 2017
  • Number of updates: 24
  • Update frequency: every 45.5 days
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /25,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Slack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1846.02 ▲6.37
Dashboard /wp-admin3.48 ▲0.1849.53 ▲0.33
Posts /wp-admin/edit.php3.60 ▲0.2448.85 ▲1.16
Add New Post /wp-admin/post-new.php6.07 ▲0.1894.06 ▼8.95
Media Library /wp-admin/upload.php3.41 ▲0.1838.93 ▲5.32
Add New /wp-admin/post-new.php?post_type=slack_integration3.4542.97
Slack Integrations /wp-admin/edit.php?post_type=slack_integration3.4538.71

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Slack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.15 ▼1.261.80 ▲0.1144.24 ▼4.62
Dashboard /wp-admin2,235 ▲524.93 ▲0.0499.96 ▼12.3965.72 ▲19.47
Posts /wp-admin/edit.php2,115 ▲261.99 ▼0.0437.91 ▲1.6837.12 ▲4.48
Add New Post /wp-admin/post-new.php1,690 ▲15722.31 ▼1.13610.26 ▲13.2141.98 ▼12.79
Media Library /wp-admin/upload.php1,411 ▲294.24 ▲0.03104.02 ▲4.8576.90 ▲35.25
Add New /wp-admin/post-new.php?post_type=slack_integration1,3182.4546.0266.33
Slack Integrations /wp-admin/edit.php?post_type=slack_integration1,0751.9631.4926.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/slack/views/submit-meta-box.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/slack/views/post-meta-box.php:14

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: No descriptions were found for these screenshots #2, #3 in slack/assets to your readme.txt
You can take inspiration from this readme.txt

slack/slack.php Passed 13 tests

The main PHP file in "Slack" ver. 0.6.0 adds more information about the plugin and also serves as the entry point for this plugin
102 characters long description:
This plugin allows you to send notifications to Slack channels when certain events in WordPress occur.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected941 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11206507807
Markdown130062
JavaScript110247
CSS16025

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.12
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods4195.35%
▷ Protected methods00.00%
▷ Private methods24.65%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo.png1.62KB0.92KB▼ 43.28%