Benchmarks
Plugin footprint 48% 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.15MB] [CPU: ▲1.11ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce and 1C:Enterprise/1С:Предприятие Data Exchange
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.76 ▼4.19 |
Dashboard /wp-admin | 3.46 ▲0.15 | 55.51 ▲9.24 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.28 ▲6.71 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 89.03 ▼1.00 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.38 ▲2.91 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WooCommerce and 1C:Enterprise/1С:Предприятие Data Exchange: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.26 ▼1.10 | 1.71 ▼0.33 | 40.89 ▼1.60 |
Dashboard /wp-admin | 2,219 ▲31 | 5.88 ▼0.02 | 98.96 ▼6.54 | 40.85 ▲1.02 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.05 ▲0.02 | 42.58 ▲7.15 | 38.71 ▲7.36 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.13 ▲4.87 | 679.17 ▲49.00 | 56.08 ▼13.17 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▼0.00 | 97.74 ▼4.39 | 41.85 ▼0.65 |
Uninstaller [IO: ▲0.18MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attentionThis plugin does not fully uninstall, leaving 7 options in the database
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/woocommerce-and-1centerprise-data-exchange/exchange.php+13
Cannot redeclare wc1c_query_vars() (previously declared in wp-content/plugins/woocommerce-and-1centerprise-data-exchange/exchange.php:13)
- Uninstaller has failed for this plugin, leaving 17 files (0.18MB) in the plugin directory
- (new file) .gitignore
- (new file) exchange/success.php
- (new file) clean.php
- (new file) exchange/orders.php
- (new file) admin.php
- (new file) exchange/query.php
- (new file) LICENSE.txt
- (new file) exchange.php
- (new file) exchange/offers.php
- (new file) exchange/import.php
- ...
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woocommerce-and-1centerprise-data-exchange/exchange.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/woocommerce-and-1centerprise-data-exchange/clean.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
woocommerce-and-1centerprise-data-exchange/woocommerce-1c.php 85% from 13 tests
The primary PHP file in "WooCommerce and 1C:Enterprise/1С:Предприятие Data Exchange" version 0.9.20 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-and-1centerprise-data-exchange.php" instead of "woocommerce-1c.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,481 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 542 | 80 | 2,422 |
PO File | 1 | 12 | 14 | 48 |
Bourne Again Shell | 1 | 5 | 0 | 11 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 99 | |
▷ Named functions | 99 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 28 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected