90% gf-msteams

Code Review | Add-On for Microsoft Teams and Gravity Forms

WordPress plugin Add-On for Microsoft Teams and Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: gf-msteams
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.0-6.2
  • WordPress version: 6.3.1
  • First release: Mar 16, 2023
  • Latest release: May 8, 2023
  • Number of updates: 14
  • Update frequency: every 3.8 days
  • Top authors: apos37 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /341 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.33ms] Passed 4 tests

Analyzing server-side resources used by Add-On for Microsoft Teams and Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.87 ▲1.44
Dashboard /wp-admin3.31 ▲0.0145.21 ▲0.17
Posts /wp-admin/edit.php3.36 ▲0.0045.66 ▼0.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.16 ▼22.15
Media Library /wp-admin/upload.php3.23 ▲0.0035.62 ▲0.88

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Add-On for Microsoft Teams and Gravity Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.092.15 ▲0.4243.61 ▼0.53
Dashboard /wp-admin2,206 ▲155.84 ▲0.9397.92 ▼6.9640.69 ▼2.09
Posts /wp-admin/edit.php2,086 ▼71.99 ▼0.0239.20 ▲4.2235.48 ▲4.23
Add New Post /wp-admin/post-new.php1,514 ▼517.47 ▼5.60648.05 ▼30.7559.11 ▲0.15
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.0297.11 ▼9.5042.60 ▼5.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: teams, microsoft, chat, forms, webhook...

gf-msteams/gf-msteams.php Passed 13 tests

The main PHP file in "Add-On for Microsoft Teams and Gravity Forms" ver. 1.0.8 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
Send Gravity Form entries to Microsoft Teams channel

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,023 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3274470997
JavaScript14424
SVG2002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity63.50
▷ Minimum class complexity2.00
▷ Maximum class complexity125.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wordpress-logo.png17.51KB6.58KB▼ 62.43%
img/msteams-logo.png1.02KB1.07KB0.00%