77% kirimemail-woocommerce-integration

Code Review | Kirim.Email WooCommerce Integration

WordPress plugin Kirim.Email WooCommerce Integration scored77%from 54 tests.

About plugin

  • Plugin page: kirimemail-woocom...
  • Plugin version: 1.2.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Feb 8, 2022
  • Number of updates: 29
  • Update frequency: every 53.5 days
  • Top authors: developerke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,193 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Kirim.Email WooCommerce Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.30 ▲5.29
Dashboard /wp-admin3.31 ▲0.0157.74 ▲10.96
Posts /wp-admin/edit.php3.36 ▲0.0047.67 ▲1.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.91 ▼19.12
Media Library /wp-admin/upload.php3.23 ▲0.0037.06 ▲1.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Kirim.Email WooCommerce Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.191.87 ▲0.2646.89 ▲5.94
Dashboard /wp-admin2,206 ▲185.88 ▼0.03109.95 ▲7.8140.98 ▲0.26
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0137.65 ▼5.8434.17 ▼3.55
Add New Post /wp-admin/post-new.php1,534 ▲523.10 ▼0.21665.83 ▲14.6652.65 ▼3.42
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0396.06 ▼21.7641.70 ▼6.38

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/kirimemail-woocommerce-integration/views/notice.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/kirimemail-woocommerce-integration/views/notice.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/kirimemail-woocommerce-integration/views/index.php:8
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/kirimemail-woocommerce-integration/views/notice.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: woocommerce extension, kirimemail, marketing, email

kirimemail-woocommerce-integration/kirimemail-woocommerce-integration.php 69% from 13 tests

The main PHP file in "Kirim.Email WooCommerce Integration" ver. 1.2.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.8" instead of "5.5")
  • Git Repository: There should be no Git repositories present in your plugin
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: The domain path should use only dashes and lowercase characters ("i18n/language")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,100 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP77877469
CSS1830465
SVG300129
JavaScript16337

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity15.33
▷ Minimum class complexity7.00
▷ Maximum class complexity29.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods26
▷ Static methods27.69%
▷ Public methods2076.92%
▷ Protected methods311.54%
▷ Private methods311.54%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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
(invalid) assets/images/icon.png1.12KB0.00KB▼ 100.00%