Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼3.32ms] Passed 4 tests
This is a short check of server-side resources used by Расчет доставки в корзине и карточке товара: СДЭК, DPD, Boxberry, PickPoint, IML, Ozon Rocket, Почта России, Деловые Линии, ПЭК, Dostavista, GTD, Байкал Сервис, ЖелДорЭкспедиция и др.
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 40.43 ▼0.45 |
Dashboard /wp-admin | 3.73 ▲0.42 | 48.44 ▼3.43 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 49.92 ▲0.69 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 84.39 ▼10.10 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 38.03 ▲4.22 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 136 new files
Database: 1 new table, 7 new options
New tables |
---|
wc_esl_shipping_methods |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
wc_esl_migrations_history |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Расчет доставки в корзине и карточке товара: СДЭК, DPD, Boxberry, PickPoint, IML, Ozon Rocket, Почта России, Деловые Линии, ПЭК, Dostavista, GTD, Байкал Сервис, ЖелДорЭкспедиция и др.
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲80 | 14.25 ▼0.11 | 1.87 ▲0.17 | 35.79 ▼8.01 |
Dashboard /wp-admin | 2,210 ▲33 | 5.61 ▼0.07 | 94.34 ▼5.79 | 42.49 ▼4.74 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▼0.01 | 40.07 ▲3.42 | 36.66 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 25.09 ▲1.97 | 627.56 ▼53.10 | 65.70 ▲21.21 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.18 ▲0.04 | 96.88 ▲1.49 | 42.30 ▲2.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wc_esl_shipping_methods
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wc_esl_migrations_history
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: time in wp-content/plugins/eshoplogisticru/views/checkout/time.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/YandexDoor.php:7
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/GrastinDoor.php:7
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/YandexTerminal.php:7
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/CustomDoor.php:7
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/FrameMixed.php:7
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/PostrfTerminal.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eshoplogisticru/views/checkout/comment.php:2
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/DpdTerminal.php:7
- > PHP Fatal error
Uncaught Error: Class 'eshoplogistic\\WCEshopLogistic\\Classes\\Shipping\\Base' not found in wp-content/plugins/eshoplogisticru/Classes/Shipping/Methods/ImlTerminal.php:7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 80% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in eshoplogisticru/assets to your readme.txt
eshoplogisticru/wc-eshop-logistic.php 62% from 13 tests
The principal PHP file in "Расчет доставки в корзине и карточке товара: СДЭК, DPD, Boxberry, PickPoint, IML, Ozon Rocket, Почта России, Деловые Линии, ПЭК, Dostavista, GTD, Байкал Сервис, ЖелДорЭкспедиция и др." v. 2.0.63 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 220 characters long)
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eshoplogisticru.php" instead of "wc-eshop-logistic.php")
- Plugin Name: Please shorten the plugin name (currently 98 characters long instead of max. 70)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected13,628 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 1,675 | 766 | 6,990 |
JavaScript | 18 | 903 | 440 | 4,583 |
CSS | 9 | 199 | 11 | 1,663 |
JSON | 1 | 0 | 0 | 390 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 8.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 2 | 2.27% |
▷ Concrete classes | 86 | 97.73% |
▷ Final classes | 1 | 1.16% |
Methods | 293 | |
▷ Static methods | 4 | 1.37% |
▷ Public methods | 263 | 89.76% |
▷ Protected methods | 2 | 0.68% |
▷ Private methods | 28 | 9.56% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 19 | |
▷ Global constants | 8 | 42.11% |
▷ Class constants | 11 | 57.89% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin