73% hungarian-pickup-points-for-woocommerce

Code Review | Csomagpontok és szállítási címkék WooCommerce-hez

WordPress plugin Csomagpontok és szállítási címkék WooCommerce-hez scored73%from 54 tests.

About plugin

  • Plugin page: hungarian-pickup-...
  • Plugin version: 2.9.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2021
  • Latest release: Dec 3, 2023
  • Number of updates: 250
  • Update frequency: every 3.4 days
  • Top authors: passatgt (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

3,000+ active /61,908 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼9.47ms] Passed 4 tests

Server-side resources used by Csomagpontok és szállítási címkék WooCommerce-hez
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1935.25 ▼5.45
Dashboard /wp-admin3.50 ▲0.1646.95 ▼17.19
Posts /wp-admin/edit.php3.61 ▲0.2646.33 ▼2.94
Add New Post /wp-admin/post-new.php6.08 ▲0.1988.41 ▼12.30
Media Library /wp-admin/upload.php3.42 ▲0.1935.30 ▲3.54

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 777 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Csomagpontok és szállítási címkék WooCommerce-hez
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.13 ▼0.121.64 ▲0.0235.58 ▼7.63
Dashboard /wp-admin2,195 ▲185.61 ▼0.0889.81 ▼8.2439.56 ▼2.42
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0639.24 ▼0.8734.91 ▼2.07
Add New Post /wp-admin/post-new.php1,526 ▼323.20 ▲0.12577.75 ▼77.3946.88 ▼11.06
Media Library /wp-admin/upload.php1,403 ▼04.17 ▼0.0294.70 ▼7.0040.34 ▼2.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/hungarian-pickup-points-for-woocommerce/uninstall.php+12
    Trying to access array offset on value of type null
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means 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
The following issues need your attention
  • 220× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Barcode\\AbstractBarcode' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Barcode/I25.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\SubstituteTag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/Tta.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/VarTag.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/Hr.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\InlineTag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/Small.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/TBody.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/BlockTag.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/SetHtmlPageFooter.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/setasign/fpdi/src/PdfParser/Type/PdfArray.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Mpdf\\Tag\\Tag' not found in wp-content/plugins/hungarian-pickup-points-for-woocommerce/vendor/mpdf/mpdf/src/Tag/THead.php:5

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

hungarian-pickup-points-for-woocommerce/index.php 77% from 13 tests

The main file in "Csomagpontok és szállítási címkék WooCommerce-hez" v. 2.9.5.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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("hungarian-pickup-points-for-woocommerce.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "7.0")

Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin156,519 lines of code in 609 files:
LanguageFilesBlank linesComment linesLines of code
PHP49315,51025,488135,895
CSS14820807,178
Sass1194675,045
JavaScript188499123,968
PO File17088711,802
Markdown1243201,318
JSON1400868
YAML7584196
SVG3400133
XML4203113
Bourne Shell1203

PHP code 0% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 7,024)
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 502)
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity72.69
▷ Minimum class complexity1.00
▷ Maximum class complexity7,024.00
Average method complexity11.19
▷ Minimum method complexity1.00
▷ Maximum method complexity502.00
Code structure
Namespaces47
Interfaces13
Traits6
Classes344
▷ Abstract classes92.62%
▷ Concrete classes33597.38%
▷ Final classes216.27%
Methods2,559
▷ Static methods37714.73%
▷ Public methods2,06780.77%
▷ Protected methods35013.68%
▷ Private methods1425.55%
Functions45
▷ Named functions817.78%
▷ Anonymous functions3782.22%
Constants548
▷ Global constants12522.81%
▷ Class constants42377.19%
▷ Public constants423100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.37MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/update/update-250-1.png48.11KB15.09KB▼ 68.64%
assets/images/update/update-250-3.png92.90KB36.79KB▼ 60.40%
assets/images/icon-sprinter.png3.99KB2.28KB▼ 42.73%
assets/images/bg-walkthrough.png104.55KB111.10KB0.00%
assets/images/update/update-250-2.png134.22KB58.02KB▼ 56.77%