83% tik-order-cancellation-email-to-customer

Code Review | Tik Order Cancellation Email to Customer

WordPress plugin Tik Order Cancellation Email to Customer scored83%from 54 tests.

About plugin

  • Plugin page: tik-order-cancell...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Mar 10, 2021
  • Latest release: Mar 10, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tawhidul6 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /399 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Tik Order Cancellation Email to Customer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.54 ▼8.69
Dashboard /wp-admin3.32 ▼0.0349.70 ▼20.17
Posts /wp-admin/edit.php3.37 ▲0.0156.58 ▲7.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.75 ▼9.30
Media Library /wp-admin/upload.php3.24 ▲0.0137.23 ▼1.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Tik Order Cancellation Email to Customer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.65 ▲0.281.70 ▼0.1441.42 ▼11.43
Dashboard /wp-admin2,198 ▲245.59 ▲0.0183.57 ▼6.6440.40 ▲1.85
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0040.96 ▲0.0538.12 ▲1.33
Add New Post /wp-admin/post-new.php1,535 ▲718.35 ▼4.59660.04 ▼19.3670.14 ▲22.77
Media Library /wp-admin/upload.php1,400 ▼34.14 ▲0.06114.12 ▲13.5646.65 ▲0.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tik-order-cancellation-email-to-customer/includes/email/class-tik-email-controller.php:7

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 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: customer, ecommerce, wc, email

tik-order-cancellation-email-to-customer/tik-order-cancellation-mail-customer.php 77% from 13 tests

The main PHP script in "Tik Order Cancellation Email to Customer" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tik-order-cancellation-email-to-customer.php" instead of "tik-order-cancellation-mail-customer.php")
  • Domain Path: The domain path folder was not found ("/languages/")

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

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin