78% szamlahegy-woocommerce

Code Review | Számlahegy WooCommerce

WordPress plugin Számlahegy WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: szamlahegy-woocom...
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.1
  • WordPress version: 6.3.1
  • First release: May 30, 2016
  • Latest release: Jan 16, 2018
  • Number of updates: 26
  • Update frequency: every 23.1 days
  • Top authors: szamlahegy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▲2.96ms] Passed 4 tests

This is a short check of server-side resources used by Számlahegy WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.39 ▲2.79
Dashboard /wp-admin3.45 ▲0.1460.37 ▲10.25
Posts /wp-admin/edit.php3.56 ▲0.2055.85 ▲6.60
Add New Post /wp-admin/post-new.php6.05 ▲0.1697.16 ▼7.18
Media Library /wp-admin/upload.php3.37 ▲0.1447.11 ▲9.64

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

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

Browser metrics Passed 4 tests

Számlahegy WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.41 ▼0.997.64 ▲5.8245.02 ▲2.62
Dashboard /wp-admin2,205 ▲255.67 ▲0.0992.38 ▲4.4442.14 ▼5.47
Posts /wp-admin/edit.php2,110 ▲102.01 ▲0.0340.40 ▲2.5134.84 ▼2.02
Add New Post /wp-admin/post-new.php1,533 ▲523.09 ▲0.11601.02 ▼52.3745.23 ▼19.56
Media Library /wp-admin/upload.php1,407 ▲44.20 ▲0.00101.90 ▼1.7340.36 ▼3.41

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/szamlahegy-woocommerce/public/partials/plugin-name-public-display.php
    • > /wp-content/plugins/szamlahegy-woocommerce/admin/partials/szamlahegy-woocommerce-admin-display.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/szamlahegy-woocommerce/admin/partials/szamlahegy-woocommerce-admin-management.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Szamlahegy_Woocommerce' not found in wp-content/plugins/szamlahegy-woocommerce/admin/partials/szamlahegy-woocommerce-admin-metabox.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
  • Screenshots: A description for screenshot #0 is missing in szamlahegy-woocommerce/assets to your readme.txt
Please take inspiration from this readme.txt

szamlahegy-woocommerce/szamlahegy-woocommerce.php Passed 13 tests

This is the main PHP file of "Számlahegy WooCommerce" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Woocommerce összekapcsolása Számlaheggyel

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 plugin785 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP16202595692
Markdown220054
JavaScript2105435
CSS2184

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity4.82
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1225.00%
▷ Public methods4389.58%
▷ Protected methods00.00%
▷ Private methods510.42%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png17.46KB5.19KB▼ 70.31%
assets/banner-772x250.png96.06KB57.68KB▼ 39.96%
assets/icon-128x128.png17.46KB5.19KB▼ 70.31%
assets/screenshot1.png108.59KB31.42KB▼ 71.07%