84% automate-slack-invite-gravityforms

Code Review | Automate Slack Invite Gravityforms

WordPress plugin Automate Slack Invite Gravityforms scored84%from 54 tests.

About plugin

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /2,002 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Automate Slack Invite Gravityforms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.48 ▼2.33
Dashboard /wp-admin3.31 ▼0.0349.44 ▼13.26
Posts /wp-admin/edit.php3.37 ▲0.0047.86 ▼2.48
Add New Post /wp-admin/post-new.php5.90 ▲0.0086.54 ▼11.51
Media Library /wp-admin/upload.php3.24 ▲0.0033.48 ▼5.88

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Automate Slack Invite Gravityforms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲5414.33 ▼0.261.92 ▲0.3445.85 ▲4.45
Dashboard /wp-admin2,198 ▲245.64 ▼0.0789.05 ▼2.7640.25 ▼0.87
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0234.69 ▼4.3033.66 ▼7.92
Add New Post /wp-admin/post-new.php1,528 ▼15223.08 ▲0.89682.84 ▲55.6757.26 ▲1.95
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0196.37 ▼12.8844.46 ▼1.87

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/automate-slack-invite-gravityforms/automate-slack-invite-gravityforms.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/automate-slack-invite-gravityforms/public/class-automate-slack-invite-gravityforms.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

automate-slack-invite-gravityforms/automate-slack-invite-gravityforms.php Passed 13 tests

The principal PHP file in "Automate Slack Invite Gravityforms" v. 1.2 is loaded by WordPress automatically on each request
98 characters long description:
Gravity Forms add-on to automatically invite a user to your Slack, using email address form field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected283 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP494136226
PO File1151557

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.33
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
images/icon.png2.40KB1.12KB▼ 53.47%