83% mantiq-integration-for-slack

Code Review | Mantiq Integration for Slack

WordPress plugin Mantiq Integration for Slack scored83%from 54 tests.

About plugin

  • Plugin page: mantiq-integratio...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2021
  • Latest release: Dec 8, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: mantiq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Mantiq Integration for Slack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.95 ▼8.30
Dashboard /wp-admin3.31 ▲0.0155.20 ▼6.22
Posts /wp-admin/edit.php3.36 ▲0.0153.28 ▲4.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.80 ▼14.60
Media Library /wp-admin/upload.php3.23 ▲0.0139.67 ▲0.41

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Mantiq Integration for Slack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.311.94 ▲0.0844.89 ▲0.56
Dashboard /wp-admin2,198 ▲215.63 ▼0.0194.89 ▲5.1743.68 ▲2.33
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0132.87 ▼1.6034.73 ▼0.40
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.21690.76 ▲18.6155.26 ▼4.18
Media Library /wp-admin/upload.php1,400 ▲64.12 ▼0.07109.38 ▲5.1347.48 ▲3.99

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Mantiq\\Models\\Action' not found in wp-content/plugins/mantiq-integration-for-slack/src/Actions/Slack/Messages/SendMessageToSlackChannel.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/mantiq-integration-for-slack/views/actions/messages/send-message-to-slack-channel.php:4

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Slack events), #2 (Slack actions)
The official readme.txt is a good inspiration

mantiq-integration-for-slack/plugin.php 62% from 13 tests

The entry point to "Mantiq Integration for Slack" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0.0" instead of "5.0")
  • Main file name: The principal plugin file should be the same as the plugin slug ("mantiq-integration-for-slack.php" instead of "plugin.php")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

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
Everything looks great! No dangerous files found in this plugin212 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33422212

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin