79% import-vk

Code Review | Import VK

WordPress plugin Import VK scored79%from 54 tests.

About plugin

  • Plugin page: import-vk
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2017
  • Latest release: Apr 29, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: riselab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /2,877 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: ▲0.01MB] [CPU: ▼6.19ms] Passed 4 tests

An overview of server-side resources used by Import VK
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.08 ▲1.52
Dashboard /wp-admin3.32 ▲0.0143.05 ▼5.53
Posts /wp-admin/edit.php3.37 ▲0.0139.29 ▼3.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.10 ▼11.04
Media Library /wp-admin/upload.php3.24 ▲0.0132.35 ▼4.24
Import VK /wp-admin/tools.php?page=import-vk3.2835.99

Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Import VK
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.22 ▼1.171.70 ▼0.3744.58 ▲1.48
Dashboard /wp-admin2,207 ▲195.83 ▲0.9499.20 ▼10.1237.91 ▼9.98
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0532.93 ▼2.2932.57 ▼4.89
Add New Post /wp-admin/post-new.php1,538 ▲1623.28 ▲0.19668.91 ▼5.7164.02 ▼11.48
Media Library /wp-admin/upload.php1,392 ▲74.16 ▼0.0396.98 ▼21.8940.58 ▼9.02
Import VK /wp-admin/tools.php?page=import-vk1,0972.5743.6249.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=import-vk
    • > Notice in wp-content/plugins/import-vk/inc/settings-page.php+134
    Trying to access array offset on value of type bool

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
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/import-vk/import-vk.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/import-vk/inc/settings-page.php:4

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 errors were detected

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
8 plugin tags: records, export, import, posts, vkcom...

import-vk/import-vk.php Passed 13 tests

Analyzing the main PHP file in "Import VK" version 1.0.1
71 characters long description:
The plugin allows you to import posts from any VKontakte (vk.com) wall.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,692 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5330138711
PHP23093375
CSS54961318
SVG100288

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity4.78
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin