Benchmarks
Plugin footprint 83% 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.01MB] [CPU: ▼5.11ms] Passed 4 tests
This is a short check of server-side resources used by Калькулятор стоимости доставки СДЭК для WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.05 | 31.59 ▼9.94 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.28 ▲3.14 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.65 ▼2.50 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 100.82 ▼7.84 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.54 ▼0.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Калькулятор стоимости доставки СДЭК для WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,467 ▼268 | 13.29 ▼1.35 | 0.86 ▼0.93 | 22.47 ▼23.63 |
Dashboard /wp-admin | 2,202 ▲14 | 5.88 ▲0.00 | 102.93 ▼2.37 | 41.30 ▼5.07 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.04 ▲0.03 | 39.07 ▼23.60 | 32.62 ▼9.82 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.15 ▼0.18 | 677.14 ▼3.83 | 69.16 ▲15.14 |
Media Library /wp-admin/upload.php | 1,384 ▼1 | 4.25 ▲0.02 | 118.94 ▼24.40 | 46.24 ▼1.02 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cdek-delivery-calculator/inc/CDS_CDEK_admin_function.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cdek-delivery-calculator/CargoDeliveryServiceCDEK.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: delivery, mint-studio, cdek, delivery plugin, woocommerce
cdek-delivery-calculator/CargoDeliveryServiceCDEK.php 92% from 13 tests
The main PHP script in "Калькулятор стоимости доставки СДЭК для WooCommerce" version 0.0.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cdek-delivery-calculator.php" instead of "CargoDeliveryServiceCDEK.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected492 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 185 | 372 |
JavaScript | 1 | 7 | 3 | 83 |
Markdown | 1 | 22 | 0 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 15.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG images were found in this plugin