79% slatre

Code Review | Forms to Slack & Trello Integration

WordPress plugin Forms to Slack & Trello Integration scored79%from 54 tests.

About plugin

  • Plugin page: slatre
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.4.0
  • WordPress version: 6.3.1
  • First release: Jul 9, 2020
  • Latest release: Jul 11, 2020
  • Number of updates: 14
  • Update frequency: every 0.6 days
  • Top authors: javmah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.77ms] Passed 4 tests

This is a short check of server-side resources used by Forms to Slack & Trello Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1740.66 ▼2.50
Dashboard /wp-admin3.47 ▲0.1253.14 ▼9.79
Posts /wp-admin/edit.php3.58 ▲0.2252.33 ▼7.61
Add New Post /wp-admin/post-new.php6.07 ▲0.1891.27 ▼3.16
Media Library /wp-admin/upload.php3.39 ▲0.1638.89 ▲2.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Forms to Slack & Trello Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.42 ▼0.716.97 ▲5.1137.08 ▼6.74
Dashboard /wp-admin2,221 ▲535.59 ▼0.0787.56 ▼3.6039.75 ▲0.73
Posts /wp-admin/edit.php2,123 ▲232.02 ▲0.0635.84 ▼1.8934.58 ▲0.54
Add New Post /wp-admin/post-new.php1,546 ▲1823.14 ▼0.09653.98 ▲22.8655.65 ▲5.17
Media Library /wp-admin/upload.php1,423 ▲234.23 ▲0.03109.04 ▲1.9342.73 ▼4.88

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 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/slatre/public/partials/slatre-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/slatre/admin/partials/slatre-settings-display.php:21

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 errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: trello, integration, form, slack

slatre/slatre.php Passed 13 tests

The entry point to "Forms to Slack & Trello Integration" version 1.0.0 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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 plugin871 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12320730836
JavaScript2152835
CSS2080

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity18.57
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods43
▷ Static methods24.65%
▷ Public methods3888.37%
▷ Protected methods00.00%
▷ Private methods511.63%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin