10% wp-to-klick-tipp-tag-basiertes-e-mail-marketing

Code Review | WOO-EMI: Wordpress & WooCommerce Upsell Plugin

WordPress plugin WOO-EMI: Wordpress & WooCommerce Upsell Plugin scored10%from 54 tests.

About plugin

  • Plugin page: wp-to-klick-tipp-...
  • Plugin version: 3.8.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 31, 2015
  • Latest release: Aug 24, 2020
  • Number of updates: 518
  • Update frequency: every 3.9 days
  • Top authors: Tobias_Conrad (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /9,525 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WpToKlickTipp::activate() should not be called statically

Server metrics [RAM: ▼0.70MB] [CPU: ▼22.36ms] Passed 4 tests

An overview of server-side resources used by WOO-EMI: Wordpress & WooCommerce Upsell Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.75 ▼1.77
Dashboard /wp-admin3.23 ▼0.0735.20 ▼13.77
Posts /wp-admin/edit.php3.30 ▼0.0638.77 ▼11.15
Add New Post /wp-admin/post-new.php3.19 ▼2.6938.56 ▼56.90
Media Library /wp-admin/upload.php3.24 ▲0.0131.43 ▼7.62

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 68 new files
Database: 1 new table, 8 new options
New tables
wp_wptkt_log
New WordPress options
widget_theysaidso_widget
can_compress_scripts
wptkt_db_version
widget_recent-posts
db_upgraded
widget_recent-comments
wptkt_wordpress_cron
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WOO-EMI: Wordpress & WooCommerce Upsell Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.42 ▲0.011.86 ▼0.1243.26 ▲1.44
Dashboard /wp-admin2,251 ▲455.82 ▼0.0696.12 ▼10.7245.01 ▼0.25
Posts /wp-admin/edit.php2,130 ▲302.04 ▼0.0244.17 ▲5.5734.90 ▼1.19
Add New Post /wp-admin/post-new.php1,568 ▲3723.38 ▲0.17654.23 ▼39.9553.33 ▲4.99
Media Library /wp-admin/upload.php1,430 ▲274.18 ▼0.03106.87 ▼5.2943.87 ▼2.86

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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WpToKlickTipp::deactivate() should not be called statically
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • wptkt_db_version
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 fix the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/wp-to-klick-tipp.inc.php
    • > /wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/wp-to-klick-tipp.php
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/order2autoresponder.inc.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/cron/cron_woocommerce.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/vendor/wp-background-processing/classes/wp-background-process.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WpToKlickTippApi' not found in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/order2kt.inc.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/csv_export.inc.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/class.wp-to-klick-tipp-api.php:60
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/cron/cron_wordpress.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_user_by() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/wpuser2autoresponder.inc.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/vendor/wp-background-processing/wp-background-processing.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-to-klick-tipp-tag-basiertes-e-mail-marketing/inc/class.wp-to-klick-tipp-background-save.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (62 tag instead of maximum 10)
The official readme.txt might help

wp-to-klick-tipp-tag-basiertes-e-mail-marketing/wp-to-klick-tipp.php 92% from 13 tests

"WOO-EMI: Wordpress & WooCommerce Upsell Plugin" version 3.8.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-to-klick-tipp-tag-basiertes-e-mail-marketing.php" instead of "wp-to-klick-tipp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin7,309 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP281,4091,3154,415
PO File67688642,434
SVG100229
Markdown1540104
CSS219577
JavaScript55232
JSON10018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.50
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity74.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes220.00%
▷ Concrete classes880.00%
▷ Final classes00.00%
Methods130
▷ Static methods32.31%
▷ Public methods9472.31%
▷ Protected methods2216.92%
▷ Private methods1410.77%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.07MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/premium-autoresponder.png70.53KB72.13KB0.00%
assets/img/cancel_32.png1.58KB1.57KB▼ 0.93%
assets/css/chosen-sprite.png0.53KB0.88KB0.00%
assets/img/accepted_32.png1.58KB1.56KB▼ 1.48%