83% linet-erp-woocommerce-integration

Code Review | Linet ERP-Woocommerce Integration Plugin

WordPress plugin Linet ERP-Woocommerce Integration Plugin scored83%from 54 tests.

About plugin

  • Plugin page: linet-erp-woocomm...
  • Plugin version: 3.4.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-5.7
  • WordPress version: 6.3.1
  • First release: Dec 22, 2016
  • Latest release: Aug 23, 2023
  • Number of updates: 148
  • Update frequency: every 16.5 days
  • Top authors: aribhour (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Linet ERP-Woocommerce Integration Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.50 ▼12.06
Dashboard /wp-admin3.31 ▲0.0045.46 ▼6.00
Posts /wp-admin/edit.php3.36 ▲0.0043.91 ▼4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.69 ▼7.95
Media Library /wp-admin/upload.php3.23 ▲0.0037.97 ▲4.14

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Linet ERP-Woocommerce Integration Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.32 ▼1.071.68 ▼0.3540.97 ▼5.66
Dashboard /wp-admin2,206 ▲215.77 ▲0.8995.86 ▼19.7738.35 ▼7.15
Posts /wp-admin/edit.php2,086 ▲182.04 ▲0.0435.87 ▼0.9331.19 ▼2.17
Add New Post /wp-admin/post-new.php1,537 ▲423.31 ▼0.08665.12 ▼17.0656.28 ▼6.08
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0194.03 ▼11.0741.91 ▼2.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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 take a closer look at the following
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: options in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-elementor.php on line 67
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linet-erp-woocommerce-integration/woocommerce-linet.php:204
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-elementor.php on line 4
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-repeater.php:34
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-elementor.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'ElementorPro\\Modules\\Forms\\Classes\\Action_Base' not found in wp-content/plugins/linet-erp-woocommerce-integration/classes/class-wc-li-linet-elementor.php:11
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-repeater.php on line 4
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-elementor.php on line 4
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-cf7.php:10
    • > PHP Fatal error
      Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/linet-erp-woocommerce-integration/templates/field-elementor.php:72

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (No screenshots attached)
You can take inspiration from this readme.txt

linet-erp-woocommerce-integration/woocommerce-linet.php 69% from 13 tests

The entry point to "Linet ERP-Woocommerce Integration Plugin" version 3.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Description: The description should be shorter than 140 characters (currently 180 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.6" instead of "2.2")
  • Main file name: The principal plugin file should be the same as the plugin slug ("linet-erp-woocommerce-integration.php" instead of "woocommerce-linet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,137 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP211,4211,1214,121
XML20016

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity30.71
▷ Minimum class complexity1.00
▷ Maximum class complexity216.00
Average method complexity4.21
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods159
▷ Static methods6943.40%
▷ Public methods15798.74%
▷ Protected methods00.00%
▷ Private methods21.26%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/pdf.png4.26KB3.15KB▼ 26.01%