73% integration-for-szamlazzhu-woocommerce

Code Review | Integration for Szamlazz.hu & WooCommerce

WordPress plugin Integration for Szamlazz.hu & WooCommerce scored73%from 54 tests.

About plugin

  • Plugin page: integration-for-s...
  • Plugin version: 5.8.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 8, 2016
  • Latest release: Nov 29, 2023
  • Number of updates: 392
  • Update frequency: every 7.4 days
  • Top authors: passatgt (100%)

Code review

54 tests

User reviews

52 reviews

Install metrics

5,000+ active /152,230 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.40MB] [CPU: ▼3.76ms] Passed 4 tests

Server-side resources used by Integration for Szamlazz.hu & WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4145.23 ▲4.22
Dashboard /wp-admin3.72 ▲0.3748.23 ▼11.91
Posts /wp-admin/edit.php3.83 ▲0.4853.65 ▲10.12
Add New Post /wp-admin/post-new.php6.30 ▲0.4181.87 ▼16.03
Media Library /wp-admin/upload.php3.64 ▲0.4138.05 ▲8.70

Server storage [IO: ▲3.47MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for Integration for Szamlazz.hu & WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3814.22 ▼0.051.68 ▼0.0740.01 ▼4.73
Dashboard /wp-admin2,208 ▲275.61 ▼0.0991.62 ▼10.8740.13 ▲1.98
Posts /wp-admin/edit.php2,110 ▲102.01 ▲0.0340.39 ▲2.3437.73 ▲3.37
Add New Post /wp-admin/post-new.php1,536 ▼923.25 ▼1.94587.91 ▼93.2559.29 ▼2.11
Media Library /wp-admin/upload.php1,410 ▲104.26 ▲0.0295.14 ▲0.5742.79 ▲0.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/integration-for-szamlazzhu-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
    • widget_recent-comments
    • can_compress_scripts
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 43× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/Tcpdf/Fpdi.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfReader/PdfReaderException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Filter\\FilterException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/LzwException.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'setasign\\Fpdi\\PdfParser\\Filter\\FilterInterface' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/Filter/AsciiHex.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'FPDF' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/iio/libmergepdf/tcpdi/fpdf_tpl.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'TCPDF' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/iio/libmergepdf/tcpdi/tcpdi.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\PdfParserException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/CrossReference/CrossReferenceException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\FpdiException' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/PdfParserException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'setasign\\Fpdi\\PdfParser\\Type\\PdfType' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/setasign/fpdi/src/PdfParser/Type/PdfArray.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'iio\\libmergepdf\\Driver\\DriverInterface' not found in wp-content/plugins/integration-for-szamlazzhu-woocommerce/vendor/iio/libmergepdf/src/Driver/DefaultDriver.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, szamlazzhu, szamlazo, magyar, szamlazz

integration-for-szamlazzhu-woocommerce/index.php 77% from 13 tests

The main file in "Integration for Szamlazz.hu & WooCommerce" v. 5.8.7.1 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:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.0" instead of "7.0")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integration-for-szamlazzhu-woocommerce.php" instead of "index.php")

Code Analysis 95% from 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
There were no executable files found in this plugin70,393 lines of code in 213 files:
LanguageFilesBlank linesComment linesLines of code
PHP1654,65816,37261,439
JavaScript84674372,539
Sass6461122,156
PO File16298331,915
CSS44461,660
JSON900349
Markdown4670219
SVG1507115
YAML1001

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 4,379)
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 502)
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity75.71
▷ Minimum class complexity1.00
▷ Maximum class complexity4,379.00
Average method complexity7.65
▷ Minimum method complexity1.00
▷ Maximum method complexity502.00
Code structure
Namespaces13
Interfaces5
Traits2
Classes112
▷ Abstract classes21.79%
▷ Concrete classes11098.21%
▷ Final classes87.27%
Methods1,351
▷ Static methods34625.61%
▷ Public methods99873.87%
▷ Protected methods33024.43%
▷ Private methods231.70%
Functions29
▷ Named functions724.14%
▷ Anonymous functions2275.86%
Constants171
▷ Global constants13377.78%
▷ Class constants3822.22%
▷ Public constants38100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/receipt-templates.png16.90KB7.67KB▼ 54.61%
assets/images/vp-woo-pont-logos.png23.09KB6.67KB▼ 71.13%
assets/images/vat-number-block-info.png76.22KB21.72KB▼ 71.50%