84% invitations-for-slack

Code Review | Invitations for Slack

WordPress plugin Invitations for Slack scored 84% from 54 tests.

About plugin

  • Plugin page: invitations-for-s...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 27, 2016
  • Latest release: Jan 29, 2016
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: rheinardkorf (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active / 2,806 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.60MB] [CPU: ▼15.78ms] Passed 4 tests

A check of server-side resources used by Invitations for Slack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0528.24 ▼10.53
Dashboard /wp-admin3.38 ▲0.0845.85 ▼1.67
Posts /wp-admin/edit.php3.50 ▲0.1446.67 ▲0.46
Add New Post /wp-admin/post-new.php3.26 ▼2.6337.54 ▼51.38
Media Library /wp-admin/upload.php3.31 ▲0.0837.33 ▲6.84

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Invitations for Slack
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲20813.60 ▼0.336.43 ▲3.9640.99 ▼7.54
Dashboard /wp-admin2,241 ▲595.82 ▼0.0396.02 ▼17.0873.82 ▲32.58
Posts /wp-admin/edit.php2,121 ▲292.04 ▲0.0235.84 ▼4.7830.90 ▼5.97
Add New Post /wp-admin/post-new.php1,549 ▲3022.92 ▼0.07738.21 ▲71.9652.47 ▲0.96
Media Library /wp-admin/upload.php1,417 ▲324.13 ▼0.04100.81 ▼4.8678.19 ▲34.81

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/invitations-for-slack/invitations-for-slack.php:71

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: join, community, invitations, slack, invites

invitations-for-slack/invitations-for-slack.php 92% from 13 tests

The main PHP file in "Invitations for Slack" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 319 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,020 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10196375623
CSS1392199
JavaScript15523159
SVG20239

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.33
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods30
▷ Static methods30100.00%
▷ Public methods2893.33%
▷ Protected methods00.00%
▷ Private methods26.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
invitations-for-slack/assets/icon_black.png5.27KB2.59KB▼ 50.73%
invitations-for-slack/assets/icon.png0.35KB0.31KB▼ 11.94%