78% woocommerce-improved-external-products

Code Review | Improved External Products for WooCommerce

WordPress plugin Improved External Products for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: woocommerce-impro...
  • Plugin version: 1.6.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 29, 2012
  • Latest release: Nov 7, 2023
  • Number of updates: 43
  • Update frequency: every 92.2 days
  • Top authors: wpovernight (46.51%)jprummer (32.56%)pomegranate (25.58%)

Code review

54 tests

User reviews

26 reviews

Install metrics

2,000+ active /61,671 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼0.72ms] Passed 4 tests

An overview of server-side resources used by Improved External Products for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1537.69 ▼2.74
Dashboard /wp-admin3.47 ▲0.1749.74 ▲0.74
Posts /wp-admin/edit.php3.58 ▲0.2352.95 ▲0.20
Add New Post /wp-admin/post-new.php6.07 ▲0.18104.26 ▼1.08
Media Library /wp-admin/upload.php3.39 ▲0.1636.43 ▲1.32
Improved External Products /wp-admin/admin.php?page=iepp_options_page3.3431.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
improvedexternalproducts_sections
db_upgraded
widget_recent-comments
wpo_iepp_pro_notice_shown
woocommerce-improved-external-products
widget_theysaidso_widget

Browser metrics Passed 4 tests

Improved External Products for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.52 ▲0.200.87 ▼0.7044.21 ▲2.05
Dashboard /wp-admin2,239 ▲625.66 ▲0.0399.24 ▲4.4945.60 ▲4.57
Posts /wp-admin/edit.php2,151 ▲512.13 ▲0.1243.10 ▲0.9035.55 ▼1.31
Add New Post /wp-admin/post-new.php1,560 ▲3423.21 ▲0.13595.92 ▼77.8262.21 ▼0.23
Media Library /wp-admin/upload.php1,450 ▲504.18 ▲0.0097.86 ▲0.4746.69 ▲6.33
Improved External Products /wp-admin/admin.php?page=iepp_options_page1,0311.7425.7431.42

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • improvedexternalproducts_sections
    • db_upgraded
    • widget_theysaidso_widget
    • wpo_iepp_pro_notice_shown
    • theysaidso_admin_options
    • woocommerce-improved-external-products
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iepp_options_page
    • > Notice in wp-content/plugins/woocommerce-improved-external-products/includes/class-wciep-settings.php+610
    Trying to get property 'term_id' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=iepp_options_page
    • > Notice in wp-content/plugins/woocommerce-improved-external-products/includes/class-wciep-settings.php+610
    Trying to get property 'name' of non-object

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-improved-external-products/wc-improved-external-products.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: woocommerce, external product, affiliate, externalaffiliate, link...

woocommerce-improved-external-products/wc-improved-external-products.php 85% from 13 tests

Analyzing the main PHP file in "Improved External Products for WooCommerce" version 1.6.2
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.5" instead of "3.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-improved-external-products.php" instead of "wc-improved-external-products.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,175 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP42112741,169
JavaScript1006

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity39.50
▷ Minimum class complexity8.00
▷ Maximum class complexity62.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods56
▷ Static methods23.57%
▷ Public methods5598.21%
▷ Protected methods00.00%
▷ Private methods11.79%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wpo-helper.png17.86KB5.25KB▼ 70.62%
assets/images/datafeedr.png27.39KB6.47KB▼ 76.38%