84% furgonetka

Code Review | Furgonetka.pl: Integracja z WooCommerce

WordPress plugin Furgonetka.pl: Integracja z WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: furgonetka
  • Plugin version: 1.2.17
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 19, 2019
  • Latest release: Oct 11, 2023
  • Number of updates: 122
  • Update frequency: every 13.9 days
  • Top authors: furgonetka (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

5,000+ active /62,706 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.41ms] Passed 4 tests

A check of server-side resources used by Furgonetka.pl: Integracja z WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0742.30 ▲2.93
Dashboard /wp-admin3.40 ▲0.0252.01 ▼11.75
Posts /wp-admin/edit.php3.52 ▲0.1248.10 ▼2.27
Add New Post /wp-admin/post-new.php5.98 ▲0.0686.76 ▼12.48
Media Library /wp-admin/upload.php3.33 ▲0.0637.02 ▲0.88

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Furgonetka.pl: Integracja z WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.57 ▼0.4241.14 ▼0.75
Dashboard /wp-admin2,192 ▲155.62 ▼0.0583.55 ▼3.9341.05 ▼2.05
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0335.52 ▼1.0936.70 ▲2.98
Add New Post /wp-admin/post-new.php1,534 ▲618.09 ▼5.47659.93 ▼13.7268.42 ▲17.41
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0296.34 ▼7.7841.35 ▼4.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Endpoint_Abstract' not found in wp-content/plugins/furgonetka/includes/rest_api/endpoint_controllers/returns/class-furgonetka-endpoint-get-return-info.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Admin_Tabs' not found in wp-content/plugins/furgonetka/includes/admin_tabs/class-furgonetka-advanced-settings-tab.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Endpoint_Abstract' not found in wp-content/plugins/furgonetka/includes/rest_api/endpoint_controllers/returns/class-furgonetka-endpoint-update-return-info.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Endpoint_Abstract' not found in wp-content/plugins/furgonetka/includes/rest_api/endpoint_controllers/returns/class-furgonetka-endpoint-post-return-info.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Admin_Tabs' not found in wp-content/plugins/furgonetka/includes/admin_tabs/class-furgonetka-attach-map-tab.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Endpoint_Abstract' not found in wp-content/plugins/furgonetka/includes/rest_api/endpoint_controllers/returns/class-furgonetka-endpoint-delete-return-info.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Admin_Tabs' not found in wp-content/plugins/furgonetka/includes/admin_tabs/class-furgonetka-admin-nav.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/furgonetka/public/class-furgonetka-public.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Endpoint_Abstract' not found in wp-content/plugins/furgonetka/includes/rest_api/endpoint_controllers/class-furgonetka-endpoint-update-orders-information.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Furgonetka_Admin_Tabs' not found in wp-content/plugins/furgonetka/includes/admin_tabs/class-furgonetka-api-settings-tab.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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: courier, paczki, delivery, kurier

furgonetka/furgonetka.php 85% from 13 tests

The primary PHP file in "Furgonetka.pl: Integracja z WooCommerce" version 1.2.17 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.4.7")
  • Description: The description should be shorter than 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,581 lines of code in 59 files:
LanguageFilesBlank linesComment linesLines of code
PHP486912,5694,133
PO File17752169
JavaScript43033155
CSS3161594
SVG21029
Markdown1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.45
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes42
▷ Abstract classes24.76%
▷ Concrete classes4095.24%
▷ Final classes00.00%
Methods252
▷ Static methods5823.02%
▷ Public methods21083.33%
▷ Protected methods00.00%
▷ Private methods4216.67%
Functions10
▷ Named functions770.00%
▷ Anonymous functions330.00%
Constants21
▷ Global constants628.57%
▷ Class constants1571.43%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin