83% delovye-linii-for-woocommerce

Code Review | Delovye Linii for WooCommerce

WordPress plugin Delovye Linii for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: delovye-linii-for...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 1, 2021
  • Latest release: Oct 23, 2023
  • Number of updates: 9
  • Update frequency: every 87.3 days
  • Top authors: devdellin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /795 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Delovye Linii for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.30 ▼0.11
Dashboard /wp-admin3.33 ▲0.0245.88 ▼0.76
Posts /wp-admin/edit.php3.38 ▲0.0245.24 ▲1.95
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.35 ▼10.81
Media Library /wp-admin/upload.php3.26 ▲0.0236.63 ▲3.19

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delovye Linii for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.51 ▼0.071.69 ▲0.1443.83 ▲3.58
Dashboard /wp-admin2,195 ▲185.60 ▲0.0094.44 ▲10.6243.06 ▲0.49
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0035.99 ▲0.7435.73 ▲1.80
Add New Post /wp-admin/post-new.php1,535 ▲918.36 ▼4.72633.69 ▼39.7464.26 ▲10.24
Media Library /wp-admin/upload.php1,394 ▼94.27 ▲0.0992.24 ▼4.0041.07 ▼0.73

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include(DELLIN_PLUGIN_DIR/inc/dellinClasses/DellinLogger.php): failed to open stream: No such file or directory in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'DellinLogger' not found in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DellinLogger' not found in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php:3
    • > PHP Warning
      include(): Failed opening 'DELLIN_PLUGIN_DIR/inc/dellinClasses/DellinLogger.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellin_ajax.php:4
    • > PHP Warning
      Use of undefined constant DELLIN_PLUGIN_DIR - assumed 'DELLIN_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php on line 2
    • > PHP Warning
      include(): Failed opening 'DELLIN_PLUGIN_DIR/inc/dellinClasses/DellinLogger.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php on line 2
    • > PHP Warning
      include(DELLIN_PLUGIN_DIR/inc/dellinClasses/DellinLogger.php): failed to open stream: No such file or directory in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php on line 2
    • > PHP Warning
      Use of undefined constant DELLIN_PLUGIN_DIR - assumed 'DELLIN_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/delovye-linii-for-woocommerce/inc/dellinClasses/ApiCore.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 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
3 plugin tags: woocommerce shipping, shipping, woocommerce

delovye-linii-for-woocommerce/dellin-shipping-for-woocommerce.php 69% from 13 tests

The entry point to "Delovye Linii for WooCommerce" version 1.1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: The principal plugin file should be the same as the plugin slug ("delovye-linii-for-woocommerce.php" instead of "dellin-shipping-for-woocommerce.php")
  • Requires at least: Required version must match the one declared in readme.txt ("4.7" instead of "4.6.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 187 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,739 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP136549432,820
JavaScript25944457
PO File1147156341
CSS260119
Markdown1202

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity50.75
▷ Minimum class complexity7.00
▷ Maximum class complexity260.00
Average method complexity4.90
▷ Minimum method complexity1.00
▷ Maximum method complexity47.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods102
▷ Static methods7472.55%
▷ Public methods9492.16%
▷ Protected methods65.88%
▷ Private methods21.96%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants111.11%
▷ Class constants888.89%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin