77% easy-vkontakte-connect

Code Review | Easy VKontakte Connect

WordPress plugin Easy VKontakte Connect scored 77% from 54 tests.

About plugin

  • Plugin page: easy-vkontakte-co...
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 5.8.1
  • First release: Apr 18, 2012
  • Latest release: Sep 17, 2021
  • Number of updates: 103
  • Update frequency: every 33.4 days
  • Top authors: alekseysolo (100%)

Code review

54 tests

User reviews

62 reviews

Install metrics

3,000+ active / 94,326 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.68MB] [CPU: ▼123.60ms] Passed 4 tests

A check of server-side resources used by Easy VKontakte Connect
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.19 ▲1.4744.35 ▲18.35
Dashboard /wp-admin4.82 ▲1.7660.55 ▲17.76
Posts /wp-admin/edit.php4.93 ▲1.8255.77 ▲9.22
Add New Post /wp-admin/post-new.php7.17 ▲1.74109.49 ▼533.92
Media Library /wp-admin/upload.php4.76 ▲1.7646.89 ▲12.54
Настройки VK API /wp-admin/admin.php?page=evc4.7343.17
Социальный замок /wp-admin/admin.php?page=evc-lock4.7342.61
Автопостинг /wp-admin/admin.php?page=evc-autopost4.7448.48
Сайдбары /wp-admin/admin.php?page=evc-sidebar4.7342.77
Анализ групп /wp-admin/admin.php?page=evc-stats4.7441.61
Комментарии /wp-admin/admin.php?page=evc-comments4.7345.14
Кнопки и виджеты /wp-admin/admin.php?page=evc-widgets4.7344.43
Лог /wp-admin/admin.php?page=evc-log4.7341.31

Server storage [IO: ▲1.76MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 12 new options
New WordPress options
evc_widget_auth
evc_lock
evc_widget_buttons
widget_vk_group
evc_comments_pro
evc_sidebar_overlay
evc_version
evc_activation_date
evc_widget_community_messages
evc_autopost
...

Browser metrics Passed 4 tests

An overview of browser requirements for Easy VKontakte Connect
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,104 ▲50817.10 ▲1.5214.85 ▲2.3350.96 ▲2.98
Dashboard /wp-admin3,214 ▲2807.30 ▲1.29142.65 ▼18.40138.90 ▲26.98
Posts /wp-admin/edit.php2,867 ▲1282.90 ▲0.1880.00 ▲16.83116.81 ▲22.31
Add New Post /wp-admin/post-new.php2,114 ▲24225.18 ▲6.13334.95 ▼31.64134.87 ▲23.54
Media Library /wp-admin/upload.php1,852 ▲455.70 ▲0.68127.76 ▼27.52140.88 ▲22.08
Настройки VK API /wp-admin/admin.php?page=evc1,7793.1681.4393.36
Социальный замок /wp-admin/admin.php?page=evc-lock1,6133.3867.71125.52
Автопостинг /wp-admin/admin.php?page=evc-autopost2,4663.0775.90143.36
Сайдбары /wp-admin/admin.php?page=evc-sidebar2,2873.1170.79134.23
Анализ групп /wp-admin/admin.php?page=evc-stats1,5203.0064.81110.31
Комментарии /wp-admin/admin.php?page=evc-comments2,2223.2777.89118.92
Кнопки и виджеты /wp-admin/admin.php?page=evc-widgets2,4993.4184.95142.08
Лог /wp-admin/admin.php?page=evc-log1,4473.1374.33111.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 12 options in the database
    • evc_sidebar_slide
    • evc_lock
    • widget_vk_group
    • evc_autopost
    • evc_sidebar_overlay
    • evc_activation_date
    • evc_version
    • evc_widget_community_messages
    • evc_comments
    • evc_widget_buttons
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/inc/evc-api.php:287
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/easy-vkontakte-connect/evc-base.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-vkontakte-connect/evc-albums.php:99
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/inc/evc-api.php:287
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/evc-lock.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/evc-stats.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/evc-share.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/evc.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-vkontakte-connect/evc-buttons.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-vkontakte-connect/evc-polls.php:104

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=evc-stats
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/easy-vkontakte-connect/js/evc.js?ver=1.0:10:13)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/admin.php?page=evc-stats
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: $(...).live is not a function
    • > GET request to /wp-admin/admin.php?page=evc-comments
    • > Javascript (severe) in unknown
    http://vk.com/js/api/openapi.js 1404:26 Uncaught Error: VK not initialized. Please use VK.init

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Social Likes Buttons Themes and Variation.), #2 (VK API Settings.), #3 (Sidebars Settings.), #4 (Autopost Settings.), #5 (VK Community Widget.), #6 (Edit Post Page.), #7 (VKontakte Wall Analytics page.)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
The official readme.txt might help

easy-vkontakte-connect/evc.php 85% from 13 tests

The main PHP file in "Easy VKontakte Connect" ver. 2.6.1 adds more information about the plugin and also serves as the entry point for this plugin
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 ("easy-vkontakte-connect.php" instead of "evc.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)

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
No dangerous file extensions were detected14,009 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP151,9748558,145
CSS71,000295,221
JavaScript10122170643

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity25.80
▷ Minimum class complexity3.00
▷ Maximum class complexity75.00
Average method complexity3.06
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions242
▷ Named functions24099.17%
▷ Anonymous functions20.83%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.97MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png744.59KB253.42KB▼ 65.97%
screenshot-3.png55.21KB33.85KB▼ 38.69%
img/vk-logo.png0.47KB0.36KB▼ 24.69%
img/glyphicons-halflings.png12.50KB10.35KB▼ 17.19%
screenshot-6.png8.15KB4.47KB▼ 45.12%