84% surbma-magyar-woocommerce

Code Review | HuCommerce | Magyar WooCommerce kiegészítések

WordPress plugin HuCommerce | Magyar WooCommerce kiegészítések scored84%from 54 tests.

About plugin

  • Plugin page: surbma-magyar-woo...
  • Plugin version: 2023.2.5
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 11, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 160
  • Update frequency: every 14.0 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

10,000+ active /122,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.46ms] Passed 4 tests

Analyzing server-side resources used by HuCommerce | Magyar WooCommerce kiegészítések
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0334.66 ▼7.53
Dashboard /wp-admin3.33 ▲0.0247.19 ▼3.33
Posts /wp-admin/edit.php3.38 ▲0.0249.28 ▼2.83
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.75 ▼4.14
Media Library /wp-admin/upload.php3.25 ▲0.0237.78 ▲3.26

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for HuCommerce | Magyar WooCommerce kiegészítések
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.13 ▼0.221.57 ▼0.2240.33 ▼2.14
Dashboard /wp-admin2,220 ▲425.57 ▼0.1286.44 ▼25.5370.88 ▲23.59
Posts /wp-admin/edit.php2,132 ▲292.11 ▲0.1137.84 ▼9.7935.53 ▼5.23
Add New Post /wp-admin/post-new.php1,702 ▲17321.93 ▼1.57733.93 ▲63.6253.32 ▲0.42
Media Library /wp-admin/upload.php1,428 ▲344.22 ▲0.06105.87 ▲6.0969.31 ▲28.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/smtp.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/coupon.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/redirect-cart.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/surbma-magyar-woocommerce/modules/global-info.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/surbma-magyar-woocommerce/modules/one-product-in-cart.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/surbma-magyar-woocommerce/modules/product-price-additions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/surbma-magyar-woocommerce/modules/custom-addtocart-button.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/surbma-magyar-woocommerce/modules/product-settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/surbma-magyar-woocommerce/modules/catalog-mode.php:21
    • > PHP Warning
      include_once(CPS_DIR/pages/plugins-page.php): failed to open stream: No such file or directory in wp-content/plugins/surbma-magyar-woocommerce/cps-sdk/lib/admin.php on line 4

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: magyarorszg, woocommerce, magyar, hungarian, webruhz...

surbma-magyar-woocommerce/surbma-magyar-woocommerce.php 85% from 13 tests

Analyzing the main PHP file in "HuCommerce | Magyar WooCommerce kiegészítések" version 2023.2.5
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")
  • Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "4.6")

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
Success! There were no dangerous files found in this plugin28,265 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript82207610,227
CSS41053,1209,860
PHP549128745,917
Markdown61,21002,117
SVG20274
XML10043
JSON10027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions188
▷ Named functions5227.66%
▷ Anonymous functions13672.34%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cps-sdk/assets/images/cps-logo.png0.88KB1.03KB0.00%
assets/images/hucommerce-logo-white.png3.43KB2.57KB▼ 24.98%
assets/images/hucommerce-logo.png3.31KB2.60KB▼ 21.63%
assets/images/hucommerce-logo-2023-dark.png9.41KB5.45KB▼ 42.08%