10% wpmktgengine-extension-woocommerce

Code Review | WooCommerce - WPMktgEngine | Genoo Extension

WordPress plugin WooCommerce - WPMktgEngine | Genoo Extension scored10%from 54 tests.

About plugin

  • Plugin page: wpmktgengine-exte...
  • Plugin version: 1.7.47
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jul 17, 2016
  • Latest release: Sep 12, 2022
  • Number of updates: 58
  • Update frequency: every 41.0 days
  • Top authors: Genoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,936 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wpmktgengine-extension-woocommerce/includes/queuecronjob.php+10
    Trying to access array offset on value of type bool

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

An overview of server-side resources used by WooCommerce - WPMktgEngine | Genoo Extension
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.90 ▲1.70
Dashboard /wp-admin3.31 ▲0.0143.38 ▼2.22
Posts /wp-admin/edit.php3.36 ▲0.0043.36 ▼2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.85 ▼26.36
Media Library /wp-admin/upload.php3.23 ▲0.0034.53 ▼0.72

Server storage [IO: ▲1.45MB] [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
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce - WPMktgEngine | Genoo Extension
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.34 ▼1.251.75 ▲0.0140.33 ▲2.55
Dashboard /wp-admin2,206 ▲315.88 ▲0.8697.37 ▼13.2538.58 ▼15.32
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.1434.69 ▲0.6134.26 ▼2.51
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▲5.86598.74 ▼26.4845.63 ▼6.64
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0099.33 ▲3.5342.46 ▼1.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpmktgengine-extension-woocommerce/includes/queuecronjob.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wpmktgengine-extension-woocommerce/wpmktgengine-woocommerce.php:36

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)
No browser issues were found

Optimizations

Plugin configuration 93% 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
3 plugin tags: lead capture forms, marketing automation, email marketing

wpmktgengine-extension-woocommerce/wpmktgengine-woocommerce.php 85% from 13 tests

Analyzing the main PHP file in "WooCommerce - WPMktgEngine | Genoo Extension" version 1.7.47
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpmktgengine-extension-woocommerce.php" instead of "wpmktgengine-woocommerce.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.3" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected12,253 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82,1091,9427,229
PHP61,7696874,784
CSS4513240

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity5.00
▷ Maximum class complexity24.00
Average method complexity4.47
▷ Minimum method complexity2.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods15100.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions83
▷ Named functions3744.58%
▷ Anonymous functions4655.42%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin