93% slack-contact-form-7

Code Review | Slack Contact Form 7

WordPress plugin Slack Contact Form 7 scored 93% from 54 tests.

About plugin

  • Plugin page: slack-contact-form-7
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8.1
  • WordPress version: 5.9.2
  • First release: Apr 18, 2014
  • Latest release: Feb 12, 2017
  • Number of updates: 5
  • Update frequency: every 206.2 days
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 3,092 total downloads


Plugin footprint Passed 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: ▼299.33ms] Passed 4 tests

This is a short check of server-side resources used by Slack Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0160.06 ▲4.57
Dashboard /wp-admin3.42 ▲0.0138.23 ▼2.50
Posts /wp-admin/edit.php3.65 ▲0.0141.33 ▼25.95
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.17 ▼1,171.28
Media Library /wp-admin/upload.php3.30 ▲0.0127.17 ▲2.41

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slack Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.94 ▲0.356.23 ▲0.042.25 ▼1.16
Dashboard /wp-admin2,892 ▲316.13 ▼0.02117.88 ▼21.82153.95 ▼10.98
Posts /wp-admin/edit.php2,688 ▼23.35 ▲0.1279.83 ▲14.64137.71 ▼7.36
Add New Post /wp-admin/post-new.php1,752 ▲4120.96 ▲0.05449.12 ▼6.73185.58 ▲26.99
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.08139.43 ▼14.94184.10 ▼7.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Good news, no errors were detected

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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/slack-contact-form-7/slack-contact-form-7.php:75

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)
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

slack-contact-form-7/slack-contact-form-7.php 85% from 13 tests

The primary PHP file in "Slack Contact Form 7" version 0.2.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ 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
There were not PNG files found in your plugin