78% deposk

Code Review | Depo.sk

WordPress plugin Depo.sk scored 78% from 54 tests.

About plugin

  • Plugin page: deposk
  • Plugin version: 2.9.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Sep 29, 2023
  • Number of updates: 29
  • Update frequency: every 85.7 days
  • Top authors: oktodigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,526 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼1.47ms] Passed 4 tests

Analyzing server-side resources used by Depo.sk
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.04 ▼5.04
Dashboard /wp-admin3.43 ▲0.1349.48 ▼3.75
Posts /wp-admin/edit.php3.55 ▲0.1948.02 ▲3.03
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.97 ▲0.38
Media Library /wp-admin/upload.php3.36 ▲0.1235.84 ▲2.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Depo.sk
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.45 ▲0.081.85 ▼0.0041.29 ▼2.37
Dashboard /wp-admin2,206 ▲185.81 ▲0.93112.39 ▼22.8843.60 ▼17.20
Posts /wp-admin/edit.php2,089 ▲32.03 ▲0.0240.60 ▲5.0535.16 ▼0.99
Add New Post /wp-admin/post-new.php1,520 ▼1323.21 ▼0.06626.11 ▲30.1059.85 ▲7.32
Media Library /wp-admin/upload.php1,391 ▲64.20 ▼0.0296.94 ▼10.9041.31 ▼2.28

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

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

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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/deposk/inc/settings/general.php
    • > /wp-content/plugins/deposk/inc/settings/settings.php
    • > /wp-content/plugins/deposk/inc/settings/section.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/deposk/depo-sk.php:15
    • > PHP Warning
      require_once(OKTO_DEPO_INC_PATHdepo-api.php): failed to open stream: No such file or directory in wp-content/plugins/deposk/inc/shipping_class.php on line 4
    • > PHP Warning
      Use of undefined constant OKTO_DEPO_INC_PATH - assumed 'OKTO_DEPO_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/deposk/inc/shipping_class.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'OKTO_DEPO_INC_PATHfunctions.php' (include_path='.:/usr/share/php') in wp-content/plugins/deposk/inc/depo-api.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'OKTO_DEPO_INC_PATHdepo-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/deposk/inc/shipping_class.php on line 4
    • > PHP Warning
      Use of undefined constant OKTO_DEPO_INC_PATH - assumed 'OKTO_DEPO_INC_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/deposk/inc/depo-api.php on line 5
    • > PHP Warning
      require_once(OKTO_DEPO_INC_PATHfunctions.php): failed to open stream: No such file or directory in wp-content/plugins/deposk/inc/depo-api.php on line 5

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: slovakia, depo, shipping

deposk/depo-sk.php 92% from 13 tests

The main file in "Depo.sk" v. 2.9.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("deposk.php" instead of "depo-sk.php")

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
Everything looks great! No dangerous files found in this plugin22,744 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS52,5141412,812
JavaScript5225857,361
PHP104674211,343
SVG200973
HTML15040255

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.37
Average class complexity24.38
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods65
▷ Static methods11.54%
▷ Public methods65100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
20 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
docu/img/ulozit_zmeny.png2.26KB1.71KB▼ 24.35%
docu/img/psc.png1.51KB1.70KB0.00%
docu/img/uprava_metody.png8.03KB3.62KB▼ 54.95%
docu/img/prihlasovanie.png9.91KB4.43KB▼ 55.27%
docu/img/hromadne_akcie.png8.14KB4.07KB▼ 50.03%