Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.38MB] [CPU: ▲1.92ms] Passed 4 tests
Server-side resources used by EDI - Обмен данными между WooCommerce и 1С
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.42 | 44.59 ▲2.56 |
Dashboard /wp-admin | 3.72 ▲0.42 | 61.22 ▲10.74 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 57.64 ▼0.22 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 96.88 ▼3.15 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 42.99 ▲8.50 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 424 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
_edi_last_xml_entry |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for EDI - Обмен данными между WooCommerce и 1С
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▲0.00 | 1.82 ▲0.07 | 39.22 ▼2.00 |
Dashboard /wp-admin | 2,201 ▲30 | 5.50 ▼0.02 | 86.55 ▼0.23 | 40.81 ▼0.73 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.10 ▲0.08 | 35.83 ▼2.41 | 32.67 ▼6.20 |
Add New Post /wp-admin/post-new.php | 1,532 ▲1 | 23.06 ▼0.07 | 678.27 ▲43.18 | 49.82 ▼3.54 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.01 | 95.60 ▼3.17 | 42.25 ▼1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- _edi_last_xml_entry
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 45× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/types/CMB2_Type_Title.php:13
- > PHP Fatal error
Uncaught Error: Class 'BytePerfect\\EDI\\Parsers\\XMLParser' not found in wp-content/plugins/e-commerce-data-interchange/src/Parsers/OffersXMLParser.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/example-functions.php:105
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/types/CMB2_Type_Wysiwyg.php:16
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Select' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Select_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Radio.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/e-commerce-data-interchange/vendor/cmb2/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
e-commerce-data-interchange/e-commerce-data-interchange.php 92% from 13 tests
"EDI - Обмен данными между WooCommerce и 1С" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin59,275 lines of code in 274 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 121 | 14,415 | 18,658 | 32,557 |
PHP | 103 | 3,203 | 8,850 | 11,717 |
JSON | 3 | 0 | 0 | 6,670 |
CSS | 13 | 253 | 1,190 | 4,585 |
JavaScript | 8 | 368 | 584 | 1,459 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 3 | 249 | 0 | 768 |
XML | 6 | 0 | 0 | 108 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 10 | 9.35% |
▷ Concrete classes | 97 | 90.65% |
▷ Final classes | 1 | 1.03% |
Methods | 795 | |
▷ Static methods | 128 | 16.10% |
▷ Public methods | 615 | 77.36% |
▷ Protected methods | 174 | 21.89% |
▷ Private methods | 6 | 0.75% |
Functions | 37 | |
▷ Named functions | 36 | 97.30% |
▷ Anonymous functions | 1 | 2.70% |
Constants | 21 | |
▷ Global constants | 4 | 19.05% |
▷ Class constants | 17 | 80.95% |
▷ Public constants | 17 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |