Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.85ms] Passed 4 tests
This is a short check of server-side resources used by Import Vk Comments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 43.74 ▲9.15 |
Dashboard /wp-admin | 3.39 ▲0.05 | 43.80 ▼9.17 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 44.70 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 82.48 ▼15.17 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.85 ▲3.21 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 366 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
ivc_client_id |
db_upgraded |
ivc_pages |
ivc_access_token |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Import Vk Comments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲133 | 14.02 ▼0.27 | 5.48 ▲3.50 | 41.12 ▲4.29 |
Dashboard /wp-admin | 2,221 ▲32 | 5.80 ▲0.91 | 99.46 ▼25.22 | 40.04 ▼3.55 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.01 ▼0.01 | 40.71 ▲1.37 | 35.32 ▲5.14 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.19 ▼0.16 | 590.61 ▼57.90 | 50.56 ▼14.74 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.20 ▲0.00 | 95.77 ▼4.78 | 43.22 ▼0.51 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/import-vk-comments/public/partials/import-vk-comments-public-display.php
- 161× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'VK\\TransportClient\\TransportClient' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/TransportClient/Curl/CurlHttpClient.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiAdsObjectDeletedException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiMessagesDenySendException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiWallAddPostException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiAuthDelayException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiPollsAccessException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiParamHashException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiParamUserIdException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiMessagesChatUserNotInChatException.php:9
- > PHP Fatal error
Uncaught Error: Class 'VK\\Exceptions\\VKApiException' not found in wp-content/plugins/import-vk-comments/vendor/vkcom/vk-php-sdk/src/VK/Exceptions/Api/VKApiStoryExpiredException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: import, export, widget, vkontakte, vk...
import-vk-comments/import-vk-comments.php Passed 13 tests
The main PHP script in "Import Vk Comments" version 1.0.0 is automatically included on every request by WordPress
122 characters long description:
Плагин импортирует комментарии из виджета комментариев ВК в WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,430 lines of code in 356 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 347 | 3,292 | 12,447 | 7,214 |
JavaScript | 3 | 19 | 31 | 882 |
Markdown | 1 | 90 | 0 | 232 |
JSON | 2 | 0 | 0 | 67 |
CSS | 2 | 0 | 8 | 23 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 1.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 337 | |
▷ Abstract classes | 2 | 0.59% |
▷ Concrete classes | 335 | 99.41% |
▷ Final classes | 0 | 0.00% |
Methods | 826 | |
▷ Static methods | 6 | 0.73% |
▷ Public methods | 805 | 97.46% |
▷ Protected methods | 12 | 1.45% |
▷ Private methods | 9 | 1.09% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 1,683 | |
▷ Global constants | 1 | 0.06% |
▷ Class constants | 1,682 | 99.94% |
▷ Public constants | 1,584 | 94.17% |
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