10% themeid-caldera-form-to-slack

Code Review | Theme.id's Caldera Form to Slack

WordPress plugin Theme.id's Caldera Form to Slack scored10%from 54 tests.

About plugin

  • Plugin page: themeid-caldera-f...
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 6.3.1
  • First release: Jul 27, 2020
  • Latest release: Aug 16, 2020
  • Number of updates: 4
  • Update frequency: every 5.0 days
  • Top authors: themeid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,491 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/themeid-caldera-form-to-slack/caladea-slack.php+31
    require_once(wp-content/plugins/themeid-caldera-form-to-slack/includes/appsero/src/Client.php): failed to open stream: No such file or directory

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

An overview of server-side resources used by Theme.id's Caldera Form to Slack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.04 ▼3.33
Dashboard /wp-admin3.31 ▲0.0049.19 ▼9.16
Posts /wp-admin/edit.php3.36 ▲0.0050.42 ▲0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.93 ▼12.41
Media Library /wp-admin/upload.php3.23 ▲0.0037.32 ▼0.42

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme.id's Caldera Form to Slack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.75 ▲0.322.21 ▲0.6639.06 ▼6.10
Dashboard /wp-admin2,198 ▲215.57 ▼0.0991.98 ▼0.6342.17 ▼0.66
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0740.86 ▲3.8735.50 ▲2.04
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▲0.04654.88 ▼18.5358.26 ▲4.87
Media Library /wp-admin/upload.php1,397 ▼04.15 ▼0.0298.97 ▼5.1741.20 ▼4.68

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/themeid-caldera-form-to-slack/includes/appsero/src/Client.php' (include_path='.:/usr/share/php') in wp-content/plugins/themeid-caldera-form-to-slack/caladea-slack.php on line 31
    • > PHP Fatal error
      Uncaught Error: Class 'Caldera_Forms_Processor_UI' not found in wp-content/plugins/themeid-caldera-form-to-slack/includes/templates/config.php:9
    • > PHP Warning
      require_once(wp-content/plugins/themeid-caldera-form-to-slack/includes/appsero/src/Client.php): failed to open stream: No such file or directory in wp-content/plugins/themeid-caldera-form-to-slack/caladea-slack.php on line 31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: You can look at the official readme.txt

themeid-caldera-form-to-slack/caladea-slack.php 85% from 13 tests

The main file in "Theme.id's Caldera Form to Slack" v. 0.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("themeid-caldera-form-to-slack.php" instead of "caladea-slack.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected308 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP57789246
Markdown143061
SVG1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods436.36%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected