10% deixto-recommender-for-woocommerce

Code Review | DEiXTo Recommender for WooCommerce

WordPress plugin DEiXTo Recommender for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: deixto-recommende...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Dec 26, 2021
  • Latest release: Jun 5, 2022
  • Number of updates: 12
  • Update frequency: every 13.6 days
  • Top authors: deixto-wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,362 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/deixto-recommender-for-woocommerce/public/deixto-recommender-public.php+17
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.96MB] [CPU: ▼49.95ms] Passed 4 tests

A check of server-side resources used by DEiXTo Recommender for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.439.76 ▼30.23
Dashboard /wp-admin2.05 ▼1.266.27 ▼41.30
Posts /wp-admin/edit.php2.05 ▼1.316.55 ▼40.79
Add New Post /wp-admin/post-new.php2.05 ▼3.846.09 ▼87.46
Media Library /wp-admin/upload.php2.05 ▼1.187.35 ▼29.13
Product page /wp-admin/admin.php?page=deixto_recommender2.056.07
Shortcodes /wp-admin/admin.php?page=deixto_recommender_shortcodes2.056.76

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for DEiXTo Recommender for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22314.25 ▲0.0319.96 ▲18.1539.07 ▲1.07
Dashboard /wp-admin2,249 ▲605.81 ▲0.88104.37 ▼16.8040.91 ▼0.84
Posts /wp-admin/edit.php2,134 ▲422.01 ▼0.0241.23 ▲3.4636.53 ▲6.63
Add New Post /wp-admin/post-new.php1,552 ▲1923.34 ▼0.06667.58 ▲18.0550.62 ▼7.45
Media Library /wp-admin/upload.php1,434 ▲494.26 ▲0.06102.39 ▲1.5944.41 ▲2.23
Product page /wp-admin/admin.php?page=deixto_recommender1,2222.0726.8534.26
Shortcodes /wp-admin/admin.php?page=deixto_recommender_shortcodes1,1382.2126.0533.40

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/deixto-recommender-for-woocommerce/public/deixto-recommender-public.php+17
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=deixto_recommender_shortcodes
    • > Notice in wp-content/plugins/deixto-recommender-for-woocommerce/public/deixto-recommender-public.php+240
    Trying to access array offset on value of type bool
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=deixto_recommender_shortcodes
    • > Notice in wp-content/plugins/deixto-recommender-for-woocommerce/admin/deixto-recommender-admin.php+594
    Trying to access array offset on value of type null

SRP 50% 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 fix the following items
  • 4× 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/deixto-recommender-for-woocommerce/template-woocommerce-override.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/deixto-recommender-for-woocommerce/public/deixto-recommender-public.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/deixto-recommender-for-woocommerce/shortcode/deixto-recommender-shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deixto-recommender-for-woocommerce/admin/deixto-recommender-admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Donate link: Invalid url: "-"
The official readme.txt is a good inspiration

deixto-recommender-for-woocommerce/deixto-recommender.php 85% from 13 tests

"DEiXTo Recommender for WooCommerce" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 234 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deixto-recommender-for-woocommerce.php" instead of "deixto-recommender.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,404 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP81711821,046
JavaScript32929220
CSS31318138

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected