58% im-wp-linker-lite-for-woocommerce

Code Review | IM WP Linker Lite for WooCommerce

WordPress plugin IM WP Linker Lite for WooCommerce scored58%from 54 tests.

About plugin

  • Plugin page: im-wp-linker-lite...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.10
  • WordPress version: 6.3.1
  • First release: Jul 20, 2017
  • Latest release: Sep 8, 2023
  • Number of updates: 24
  • Update frequency: every 93.4 days
  • Top authors: devimirochnik (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,540 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.84MB] [CPU: ▼29.72ms] Passed 4 tests

Analyzing server-side resources used by IM WP Linker Lite for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0639.31 ▼3.90
Dashboard /wp-admin3.10 ▼0.2023.53 ▼24.47
Posts /wp-admin/edit.php3.10 ▼0.2524.31 ▼22.75
Add New Post /wp-admin/post-new.php3.10 ▼2.7827.93 ▼62.15
Media Library /wp-admin/upload.php3.10 ▼0.1224.11 ▼9.52
IM WP Linker Lite /wp-admin/options-general.php?page=im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php3.1124.54

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables
wp_im_wp_linker_lite_related
wp_im_wp_linker_lite_related_temp
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
im-wp-linker-lite-active
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for IM WP Linker Lite for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.30 ▼0.991.76 ▼0.3842.38 ▼9.36
Dashboard /wp-admin2,207 ▲225.81 ▲0.0395.99 ▼8.6739.62 ▲1.35
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0440.13 ▲1.9335.39 ▲1.84
Add New Post /wp-admin/post-new.php1,545 ▲2618.58 ▼4.63659.30 ▲63.2665.74 ▲5.20
Media Library /wp-admin/upload.php1,389 ▲44.20 ▼0.03106.39 ▼0.5546.47 ▲1.46
IM WP Linker Lite /wp-admin/options-general.php?page=im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php9242.1922.8438.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_im_wp_linker_lite_related
    • wp_im_wp_linker_lite_related_temp
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • im-wp-linker-lite-active

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Please take a closer look at the following
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php): failed to open stream: No such file or directory in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin.php on line 41
    • > PHP Warning
      Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-processor.class.php on line 41
    • > PHP Warning
      Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin.php on line 41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php:43
    • > PHP Warning
      Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-core.php on line 41
    • > PHP Fatal error
      require_once(): Failed opening required 'IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-core.php on line 41
    • > PHP Fatal error
      require_once(): Failed opening required 'IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin-product.php on line 42
    • > PHP Warning
      require_once(IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php): failed to open stream: No such file or directory in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-processor.class.php on line 41
    • > PHP Fatal error
      require_once(): Failed opening required 'IM_WP_LINKER_LITE_DIRincludes/im-wp-linker-lite-settings.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin.php on line 41
    • > PHP Warning
      Use of undefined constant IM_WP_LINKER_LITE_DIR - assumed 'IM_WP_LINKER_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/im-wp-linker-lite-for-woocommerce/includes/im-wp-linker-lite-admin-product.php on line 42

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: product, woocommerce, internal link

im-wp-linker-lite-for-woocommerce/im-wp-linker-lite.php 92% from 13 tests

The primary PHP file in "IM WP Linker Lite for WooCommerce" version 1.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("im-wp-linker-lite-for-woocommerce.php" instead of "im-wp-linker-lite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,139 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP92614081,025
CSS18984
JavaScript110930

PHP code Passed 2 tests

An short overview of 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.32
Average class complexity12.00
▷ Minimum class complexity5.00
▷ Maximum class complexity24.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods42
▷ Static methods24.76%
▷ Public methods3276.19%
▷ Protected methods1023.81%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected