74% cf7-kraken

Code Review | CF7 Kraken

WordPress plugin CF7 Kraken scored 74% from 54 tests.

About plugin

  • Plugin page: cf7-kraken
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2020
  • Latest release: Apr 26, 2020
  • Number of updates: 6
  • Update frequency: every 13.8 days
  • Top authors: aqibrashid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 564 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.63ms] Passed 4 tests

Server-side resources used by CF7 Kraken
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.403.90 ▼37.03
Dashboard /wp-admin2.08 ▼1.225.49 ▼45.29
Posts /wp-admin/edit.php2.09 ▼1.277.26 ▼32.25
Add New Post /wp-admin/post-new.php2.08 ▼3.805.96 ▼99.96
Media Library /wp-admin/upload.php2.09 ▼1.145.90 ▼24.90

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for CF7 Kraken
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.18 ▼1.181.75 ▲0.0741.64 ▲3.15
Dashboard /wp-admin2,219 ▲435.81 ▼0.0897.43 ▼22.9340.90 ▼1.59
Posts /wp-admin/edit.php2,101 ▲92.02 ▲0.0037.31 ▼3.6131.60 ▼4.58
Add New Post /wp-admin/post-new.php1,546 ▲323.52 ▲5.30662.31 ▲54.7657.30 ▲8.16
Media Library /wp-admin/upload.php1,401 ▲104.21 ▼0.02118.20 ▲21.5650.47 ▲6.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • The plugin did not uninstall gracefully
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/contact-form-7): failed to open dir: No such file or directory
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cf7-kraken/includes/modules/webhook/settings-metabox.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cf7-kraken/admin/admin.php:71
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cf7-kraken/includes/modules/mailchimp/settings-metabox.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_meta_box() in wp-content/plugins/cf7-kraken/admin/metaboxes/general-settings.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/cf7-kraken/includes/modules/slack/settings-metabox.php:9

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 97% 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:
  • Screenshots: Screenshot #1 (Select Form & Integration) image required
The official readme.txt might help

cf7-kraken/cf7-kraken.php Passed 13 tests

The main PHP script in "CF7 Kraken" version 1.1.0 is automatically included on every request by WordPress
75 characters long description:
Integrate your Contact Form 7 with Mailchimp, Slack and more are comming...

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
Everything looks great! No dangerous files found in this plugin7,296 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41,2973065,326
PHP123439051,345
CSS41010625

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.33
▷ Minimum class complexity8.00
▷ Maximum class complexity33.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods87
▷ Static methods1011.49%
▷ Public methods7282.76%
▷ Protected methods22.30%
▷ Private methods1314.94%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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
PNG images were not found in this plugin