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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.04 ▼5.04 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.48 ▼3.75 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.02 ▲3.03 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 89.97 ▲0.38 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 14.45 ▲0.08 | 1.85 ▼0.00 | 41.29 ▼2.37 |
Dashboard /wp-admin | 2,206 ▲18 | 5.81 ▲0.93 | 112.39 ▼22.88 | 43.60 ▼17.20 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.03 ▲0.02 | 40.60 ▲5.05 | 35.16 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 23.21 ▼0.06 | 626.11 ▲30.10 | 59.85 ▲7.32 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.02 | 96.94 ▼10.90 | 41.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 2,514 | 14 | 12,812 |
JavaScript | 5 | 225 | 85 | 7,361 |
PHP | 10 | 467 | 421 | 1,343 |
SVG | 2 | 0 | 0 | 973 |
HTML | 1 | 50 | 40 | 255 |
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 code | 0.37 |
Average class complexity | 24.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 1 | 1.54% |
▷ Public methods | 65 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docu/img/ulozit_zmeny.png | 2.26KB | 1.71KB | ▼ 24.35% |
docu/img/psc.png | 1.51KB | 1.70KB | 0.00% |
docu/img/uprava_metody.png | 8.03KB | 3.62KB | ▼ 54.95% |
docu/img/prihlasovanie.png | 9.91KB | 4.43KB | ▼ 55.27% |
docu/img/hromadne_akcie.png | 8.14KB | 4.07KB | ▼ 50.03% |