67% kirimemail-form-integration

Code Review | Kirim.Email Form Integration

WordPress plugin Kirim.Email Form Integration scored67%from 54 tests.

About plugin

  • Plugin page: kirimemail-form-i...
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.1
  • WordPress version: 6.3.1
  • First release: Apr 26, 2018
  • Latest release: Feb 9, 2023
  • Number of updates: 59
  • Update frequency: every 29.7 days
  • Top authors: developerke (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /9,518 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼7.83ms] Passed 4 tests

Server-side resources used by Kirim.Email Form Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4146.00 ▼7.15
Dashboard /wp-admin3.71 ▲0.3651.55 ▼15.79
Posts /wp-admin/edit.php3.76 ▲0.4054.29 ▲0.93
Add New Post /wp-admin/post-new.php6.30 ▲0.4294.24 ▼7.03
Media Library /wp-admin/upload.php3.63 ▲0.4038.30 ▼1.35

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 81 new files
Database: 2 new tables, 8 new options
New tables
wp_ke_page_lp
wp_ke_page_form
New WordPress options
ke-wp-version
db_upgraded
widget_recent-comments
widget_recent-posts
widget_ke_wpform_widget
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Kirim.Email Form Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.25 ▼1.122.01 ▼0.0142.43 ▲0.90
Dashboard /wp-admin2,221 ▲335.89 ▲0.03102.05 ▼7.0980.60 ▲35.05
Posts /wp-admin/edit.php2,107 ▲181.98 ▼0.0040.57 ▲2.3534.75 ▼0.98
Add New Post /wp-admin/post-new.php6,355 ▲4,83626.11 ▲2.901,008.40 ▲339.2845.97 ▼6.44
Media Library /wp-admin/upload.php1,403 ▲184.18 ▼0.0195.29 ▼9.2381.56 ▲38.84

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
  • Zombie tables detected upon uninstall: 2 tables
    • wp_ke_page_form
    • wp_ke_page_lp
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_ke_wpform_widget
    • ke-wp-version
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/kirimemail-form-integration/assets/js/tinymce-kirimemail.php
    • > /wp-content/plugins/kirimemail-form-integration/includes/lib/class-kemail-widget.php
    • > /wp-content/plugins/kirimemail-form-integration/views/notice.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/metabox.php:3
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/kirimemail-form-integration/views/notice.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'M1\\Env\\Parser\\AbstractParser' not found in wp-content/plugins/kirimemail-form-integration/vendor/m1/env/src/Parser/VariableParser.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'M1\\Env\\Parser\\AbstractParser' not found in wp-content/plugins/kirimemail-form-integration/vendor/m1/env/src/Parser/ValueParser.php:28
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/kirimemail-form-integration/views/notice.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/index.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'M1\\Env\\Parser\\AbstractParser' not found in wp-content/plugins/kirimemail-form-integration/vendor/m1/env/src/Parser/KeyParser.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-form-integration/views/shortcode.php:4

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
4 plugin tags: marketing, form, kirimemail, email

kirimemail-form-integration/kirimemail-wp-form.php 77% from 13 tests

The main PHP script in "Kirim.Email Form Integration" version 1.4.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("kirimemail-form-integration.php" instead of "kirimemail-wp-form.php")
  • Domain Path: The domain path should use only dashes and lowercase characters ("i18n/language")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected5,056 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP415369502,722
Markdown831201,012
CSS4881480
JavaScript72820449
JSON400214
SVG630179

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.69
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.01
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes29
▷ Abstract classes413.79%
▷ Concrete classes2586.21%
▷ Final classes14.00%
Methods172
▷ Static methods2112.21%
▷ Public methods13578.49%
▷ Protected methods84.65%
▷ Private methods2916.86%
Functions8
▷ Named functions562.50%
▷ Anonymous functions337.50%
Constants17
▷ Global constants1058.82%
▷ Class constants741.18%
▷ Public constants7100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/icon.png1.12KB0.00KB▼ 100.00%
(invalid) assets/js/icon.png1.12KB0.00KB▼ 100.00%