79% foxdeli

Code Review | Štíteknabalík.cz

WordPress plugin Štíteknabalík.cz scored 79% from 54 tests.

About plugin

  • Plugin page: foxdeli
  • Plugin version: 0.6.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: May 4, 2023
  • Number of updates: 39
  • Update frequency: every 13.8 days
  • Top authors: foxdeli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.02ms] Passed 4 tests

Analyzing server-side resources used by Štíteknabalík.cz
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.71 ▼13.31
Dashboard /wp-admin3.31 ▲0.0046.62 ▼0.54
Posts /wp-admin/edit.php3.36 ▲0.0045.44 ▼2.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.37 ▼3.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▼0.04

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 391 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Štíteknabalík.cz
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.521.82 ▼0.3940.66 ▼1.44
Dashboard /wp-admin2,209 ▲215.89 ▲0.00103.03 ▼8.2839.36 ▼0.08
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0434.04 ▼4.1733.76 ▼4.84
Add New Post /wp-admin/post-new.php1,535 ▲1523.24 ▼0.02662.16 ▲9.8355.06 ▼2.61
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0694.22 ▼11.1542.90 ▼0.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/latte.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/custom-rendering.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/bootstrap2-rendering.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/live-validation.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/basic-example.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/localization.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/manual-rendering.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/bootstrap4-rendering.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/custom-validator.php
    • > /wp-content/plugins/foxdeli/vendor/nette/forms/examples/html5.php
  • 194× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Trait 'Nette\\SmartObject' not found in wp-content/plugins/foxdeli/vendor/nette/di/src/DI/ContainerBuilder.php on line 19
    • > PHP Fatal error
      Trait 'Latte\\Strict' not found in wp-content/plugins/foxdeli/vendor/latte/latte/src/Latte/Engine.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'Nette\eon\ode' not found in wp-content/plugins/foxdeli/vendor/nette/neon/src/Neon/Node/ArrayNode.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Nette\\Schema\\Schema' not found in wp-content/plugins/foxdeli/vendor/nette/schema/src/Schema/Elements/Type.php:19
    • > PHP Parse error
      syntax error, unexpected ':', expecting ')' in wp-content/plugins/foxdeli/vendor/nette/forms/src/Bridges/FormsLatte/Nodes/LabelNode.php on line 47
    • > PHP Fatal error
      Uncaught Error: Class 'Nette\\InvalidStateException' not found in wp-content/plugins/foxdeli/vendor/nette/schema/src/Schema/ValidationException.php:18
    • > PHP Fatal error
      Trait 'Nette\\StaticClass' not found in wp-content/plugins/foxdeli/vendor/nette/utils/src/Utils/Json.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Nette\\PhpGenerator\\Printer' not found in wp-content/plugins/foxdeli/vendor/nette/php-generator/src/PhpGenerator/PsrPrinter.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Nette\\Forms\\Controls\\HiddenField' not found in wp-content/plugins/foxdeli/vendor/nette/forms/src/Forms/Controls/CsrfProtection.php:19
    • > PHP Fatal error
      Trait 'Nette\\SmartObject' not found in wp-content/plugins/foxdeli/vendor/nette/php-generator/src/PhpGenerator/Constant.php on line 18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: shipment tracking, woocommerce tracking, delivery tracking, woocommerce, woocommerce shipping...

foxdeli/foxdeli.php Passed 13 tests

Analyzing the main PHP file in "Štíteknabalík.cz" version 0.6.0.2
82 characters long description:
Looking for a reliable label printing solution? Štíteknabalík.cz will help you!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin36,740 lines of code in 345 files:
LanguageFilesBlank linesComment linesLines of code
PHP3029,6929,02731,297
Markdown151,03002,499
JSON17001,486
JavaScript5165701,002
PO File1102123272
CSS3345165
INI10012
XML1117

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity19.10
▷ Minimum class complexity1.00
▷ Maximum class complexity225.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces42
Interfaces28
Traits11
Classes259
▷ Abstract classes93.47%
▷ Concrete classes25096.53%
▷ Final classes8333.20%
Methods2,321
▷ Static methods49621.37%
▷ Public methods2,07189.23%
▷ Protected methods441.90%
▷ Private methods2068.88%
Functions242
▷ Named functions6125.21%
▷ Anonymous functions18174.79%
Constants269
▷ Global constants41.49%
▷ Class constants26598.51%
▷ Public constants23990.19%

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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/nette/forms/examples/assets/logo.png1.31KB1.34KB0.00%
images/logo-stitek-na-balik.png2.37KB1.60KB▼ 32.47%