78% apaczka-pl

Code Review | Apaczka.pl WooCommerce 2.0

WordPress plugin Apaczka.pl WooCommerce 2.0 scored78%from 54 tests.

About plugin

  • Plugin page: apaczka-pl
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4
  • WordPress version: 6.3.1
  • First release: Sep 23, 2022
  • Latest release: Nov 22, 2023
  • Number of updates: 31
  • Update frequency: every 13.8 days
  • Top authors: inspirelabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

5,000+ active /12,250 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Apaczka.pl WooCommerce 2.0
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.29 ▼9.29
Dashboard /wp-admin3.36 ▲0.0247.89 ▼16.20
Posts /wp-admin/edit.php3.48 ▲0.1248.60 ▲1.95
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.36 ▼6.32
Media Library /wp-admin/upload.php3.29 ▲0.0634.84 ▲0.52

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 64 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Apaczka.pl WooCommerce 2.0
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲5914.27 ▲0.021.80 ▲0.1439.01 ▼4.76
Dashboard /wp-admin2,194 ▲175.53 ▼0.1190.68 ▼8.1840.43 ▼6.95
Posts /wp-admin/edit.php2,108 ▲81.96 ▼0.0540.83 ▲0.6735.96 ▼0.39
Add New Post /wp-admin/post-new.php1,531 ▲122.77 ▼0.33652.75 ▲8.7571.91 ▲7.59
Media Library /wp-admin/upload.php1,405 ▲84.21 ▼0.0498.50 ▲0.3443.01 ▲2.81

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/apaczka-pl/templates/html-order-metabox-calculate-result.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: calculate in wp-content/plugins/apaczka-pl/templates/html-order-metabox-calculate-result.php on line 15
    • > PHP Notice
      Undefined variable: package_send in wp-content/plugins/apaczka-pl/templates/html-order-metabox.php on line 29
    • > PHP Fatal error
      Uncaught Error: Class 'Inspire_Labs\\Apaczka_Woocommerce\\Plugin\\Abstract_Ilabs_Plugin' not found in wp-content/plugins/apaczka-pl/src/Plugin.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Inspire_Labs\\Apaczka_Woocommerce\\Plugin\\Request_Filter_Interface' not found in wp-content/plugins/apaczka-pl/src/Plugin/Security_Request_Filter.php:5
    • > PHP Notice
      Undefined variable: package_send in wp-content/plugins/apaczka-pl/templates/html-order-metabox.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/apaczka-pl/templates/checkout/apaczka-review-order-after-shipping.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/apaczka-pl/templates/html-order-metabox.php:35
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/apaczka-pl/templates/html-order-metabox-calculate-result.php on line 15
    • > PHP Fatal error
      Trait 'Inspire_Labs\\Apaczka_Woocommerce\\Plugin\\Tools' not found in wp-content/plugins/apaczka-pl/src/Plugin/Abstract_Ilabs_Plugin.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #2, #4 in apaczka-pl/assets to your readme.txt
The official readme.txt might help

apaczka-pl/apaczka-pl.php 92% from 13 tests

The main file in "Apaczka.pl WooCommerce 2.0" v. 1.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

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
There were no executable files found in this plugin7,346 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP311,3831,1046,088
JavaScript36413509
CSS2964457
PO File11320279
JSON20013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.05
▷ Minimum class complexity1.00
▷ Maximum class complexity235.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces4
Interfaces1
Traits2
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods216
▷ Static methods3616.67%
▷ Public methods16978.24%
▷ Protected methods83.70%
▷ Private methods3918.06%
Functions17
▷ Named functions317.65%
▷ Anonymous functions1482.35%
Constants18
▷ Global constants00.00%
▷ Class constants18100.00%
▷ Public constants18100.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
19 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/rhenus.png9.94KB4.46KB▼ 55.10%
assets/img/pocztex.png5.80KB2.52KB▼ 56.59%
assets/img/gls.png3.00KB1.62KB▼ 46.14%
assets/img/orlen.png4.66KB2.18KB▼ 53.18%
assets/img/fedex.png3.02KB1.54KB▼ 49.05%