78% elex-product-feed

Code Review | ELEX Product Feed for WooCommerce

WordPress plugin ELEX Product Feed for WooCommerce scored 78% from 54 tests.

About plugin

  • Plugin page: elex-product-feed
  • Plugin version: 3.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 15, 2023
  • Latest release: Aug 11, 2023
  • Number of updates: 8
  • Update frequency: every 22.4 days
  • Top authors: elextensions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,047 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.46ms] Passed 4 tests

Server-side resources used by ELEX Product Feed for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.43 ▼4.12
Dashboard /wp-admin3.36 ▲0.0652.88 ▲0.40
Posts /wp-admin/edit.php3.48 ▲0.1268.84 ▲16.55
Add New Post /wp-admin/post-new.php5.94 ▲0.0698.63 ▼3.75
Media Library /wp-admin/upload.php3.29 ▲0.0640.46 ▼6.35

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for ELEX Product Feed for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲2013.18 ▼1.665.13 ▲3.0243.39 ▼5.87
Dashboard /wp-admin2,206 ▼35.81 ▲0.96108.73 ▲1.6640.47 ▼3.11
Posts /wp-admin/edit.php2,095 ▲32.02 ▲0.0341.57 ▼14.7936.85 ▼7.58
Add New Post /wp-admin/post-new.php1,520 ▼1317.75 ▼5.60719.95 ▲82.0155.59 ▲5.87
Media Library /wp-admin/upload.php1,397 ▲154.20 ▼0.0699.28 ▼2.4344.33 ▲2.35

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/elex-product-feed/review_and_troubleshoot_notify/resources/logo.php
    • > /wp-content/plugins/elex-product-feed/includes/elex-add-custom-fields.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/elex-product-feed/includes/market.php:88
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-product-feed/review_and_troubleshoot_notify/resources/review.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-product-feed/review_and_troubleshoot_notify/resources/troubleshoot.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% 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
5 plugin tags: product feed, facebook feed, instagram, facebook catalog, woocommerce instagram

elex-product-feed/elex-product-feed.php 92% from 13 tests

The main file in "ELEX Product Feed for WooCommerce" v. 3.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.0.1" instead of "2.6.0")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin76,659 lines of code in 67 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript214895855,703
CSS6962610,908
PHP26680698,234
PO File34415401,709
SVG1100105

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
These items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 217)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity104.91
▷ Minimum class complexity3.00
▷ Maximum class complexity910.00
Average method complexity13.71
▷ Minimum method complexity1.00
▷ Maximum method complexity217.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods76
▷ Static methods22.63%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 1.23MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow-up.png0.47KB0.20KB▼ 58.64%
assets/icons/jquery-ui-lib-icons/ui-icons_777620_256x240.png4.52KB4.18KB▼ 7.58%
assets/icons/jquery-ui-lib-icons/ui-icons_cc0000_256x240.png4.52KB4.18KB▼ 7.56%
assets/images/Abandoned Cart Recovery.png76.09KB17.48KB▼ 77.02%
assets/images/arrow-down.png0.41KB0.23KB▼ 44.26%