Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.92ms] Passed 4 tests
Server-side resources used by VkCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.11 ▲1.81 |
Dashboard /wp-admin | 3.37 ▲0.03 | 56.18 ▼1.61 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 45.44 ▲7.12 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 84.07 ▼14.28 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.21 ▼1.60 |
Help /wp-admin/admin.php?page=vkcommerce-help | 3.31 | 31.82 |
Settings /wp-admin/admin.php?page=vkcommerce-settings | 3.28 | 34.49 |
Server storage [IO: ▲0.18MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 59 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_vkcommerce_products |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
vkcommerce_db_version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VkCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲91 | 14.36 ▲0.01 | 1.94 ▲0.13 | 45.32 ▲2.54 |
Dashboard /wp-admin | 2,236 ▲55 | 5.64 ▼0.07 | 84.81 ▼26.44 | 36.31 ▼8.93 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.02 ▲0.06 | 35.26 ▼4.75 | 34.24 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,547 ▲12 | 23.42 ▲5.26 | 663.12 ▲21.52 | 52.69 ▼7.60 |
Media Library /wp-admin/upload.php | 1,438 ▲35 | 4.20 ▼0.12 | 97.39 ▼1.89 | 41.81 ▼1.62 |
Help /wp-admin/admin.php?page=vkcommerce-help | 937 | 2.12 | 22.43 | 24.73 |
Settings /wp-admin/admin.php?page=vkcommerce-settings | 819 | 2.04 | 27.18 | 25.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_vkcommerce_products
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- vkcommerce_db_version
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/vkcommerce/includes/admin/views/fields/html-radio.php
- 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/vkcommerce/includes/admin/views/fields/html-textarea.php:15
- > PHP Fatal error
Uncaught Error: Class 'VkCommerce_Admin_Page_Tab' not found in wp-content/plugins/vkcommerce/includes/admin/settings/class-admin-settings-page-form-tab.php:3
- > PHP Fatal error
Uncaught Error: Class 'VkCommerce_Admin_Settings_Page_Form_Tab' not found in wp-content/plugins/vkcommerce/includes/admin/settings/class-admin-settings-page-api-integration-tab.php:3
- > PHP Fatal error
Uncaught Error: Class 'VkCommerce_Products_Manager' not found in wp-content/plugins/vkcommerce/includes/admin/class-admin-ajax-handler.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/vkcommerce/includes/admin/views/html-product-data-panel.php:56
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vkcommerce/includes/class-install.php:14
- > PHP Warning
Use of undefined constant VKCOMMERCE_VERSION - assumed 'VKCOMMERCE_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/vkcommerce/includes/class-install.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vkcommerce/includes/class-vkcommerce.php:50
- > PHP Fatal error
Uncaught Error: Class 'VkCommerce_Products_Manager' not found in wp-content/plugins/vkcommerce/includes/admin/class-admin-product-data-tabs.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/vkcommerce/includes/admin/settings/views/html-access-token.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: woocommerce, vkontakte, social, ecommerce, products
vkcommerce/vkcommerce.php Passed 13 tests
This is the main PHP file of "VkCommerce" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
117 characters long description:
The plugin exports photos and descriptions of products from your online store to the storefront in a VKontakte group.
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
Everything looks great! No dangerous files found in this plugin3,608 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 54 | 871 | 1,090 | 3,455 |
JavaScript | 1 | 33 | 0 | 104 |
CSS | 1 | 10 | 0 | 48 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 14.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 3 | 9.38% |
▷ Concrete classes | 29 | 90.62% |
▷ Final classes | 1 | 3.45% |
Methods | 241 | |
▷ Static methods | 40 | 16.60% |
▷ Public methods | 171 | 70.95% |
▷ Protected methods | 26 | 10.79% |
▷ Private methods | 44 | 18.26% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 61 | |
▷ Global constants | 9 | 14.75% |
▷ Class constants | 52 | 85.25% |
▷ Public constants | 52 | 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
There were not PNG files found in your plugin