90% woo-okosugyvitel-integration

Code Review | WooCommerce & OkosUgyvitel Integration

WordPress plugin WooCommerce & OkosUgyvitel Integration scored90%from 54 tests.

About plugin

  • Plugin page: woo-okosugyvitel-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Feb 20, 2019
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: okosugyvitel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by WooCommerce & OkosUgyvitel Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.23 ▲3.33
Dashboard /wp-admin3.33 ▲0.0254.95 ▲2.76
Posts /wp-admin/edit.php3.38 ▲0.0253.40 ▲2.57
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.04 ▲3.63
Media Library /wp-admin/upload.php3.26 ▲0.0236.39 ▲2.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooCommerce & OkosUgyvitel Integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.76 ▲0.161.90 ▼0.0638.35 ▼4.81
Dashboard /wp-admin2,192 ▲155.64 ▲0.0293.61 ▲3.6642.60 ▼2.25
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0639.84 ▼0.7535.27 ▼4.01
Add New Post /wp-admin/post-new.php1,528 ▼723.43 ▲5.23687.09 ▲30.3058.77 ▼15.29
Media Library /wp-admin/upload.php1,400 ▲34.26 ▲0.02100.39 ▼7.2943.78 ▼2.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: szamlazo, okosugyvitelhu, magyar, woocommerce

woo-okosugyvitel-integration/woo-okosugyvitel-integration.php Passed 13 tests

The main PHP file in "WooCommerce & OkosUgyvitel Integration" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Wordpress (WooCommerce) webáruház integráció az Okos-Ügyvitel rendszerével

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
No dangerous file extensions were detected108 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1193685
PO File13323

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods675.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin