10% vkontakte-cross-post

Code Review | VKontakte Cross-Post

WordPress plugin VKontakte Cross-Post scored10%from 54 tests.

About plugin

  • Plugin page: vkontakte-cross-post
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.7.1
  • WordPress version: 6.3.1
  • First release: Mar 3, 2012
  • Latest release: Nov 6, 2013
  • Number of updates: 19
  • Update frequency: every 32.3 days
  • Top authors: oleglark (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /16,164 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼1.85MB] [CPU: ▼55.33ms] Passed 4 tests

This is a short check of server-side resources used by VKontakte Cross-Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.317.28 ▼33.85
Dashboard /wp-admin2.17 ▼1.185.20 ▼57.77
Posts /wp-admin/edit.php2.17 ▼1.198.54 ▼39.65
Add New Post /wp-admin/post-new.php2.17 ▼3.725.52 ▼90.03
Media Library /wp-admin/upload.php2.17 ▼1.065.98 ▼28.99

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

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

Browser metrics Passed 4 tests

A check of browser resources used by VKontakte Cross-Post
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.73 ▲0.371.76 ▲0.2036.75 ▼2.45
Dashboard /wp-admin2,202 ▲255.66 ▲0.0996.15 ▲7.9843.24 ▲3.57
Posts /wp-admin/edit.php2,104 ▲42.00 ▲0.0240.76 ▲1.4035.05 ▲0.99
Add New Post /wp-admin/post-new.php6,222 ▲4,69218.78 ▼4.37889.02 ▲280.3154.91 ▲0.52
Media Library /wp-admin/upload.php1,404 ▲14.21 ▲0.0395.24 ▼4.4941.19 ▼0.64
VK Cross-Post /wp-admin/skylark-vk-cross-post.php260.420.0612.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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 | 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/vkontakte-cross-post/vkcrosspost.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/skylark-vk-cross-post.php
    • > Network (severe)
    wp-admin/skylark-vk-cross-post.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: wall, group wall, publish event, vkontakte

vkontakte-cross-post/vkcrosspost.php 92% from 13 tests

Analyzing the main PHP file in "VKontakte Cross-Post" version 0.3.2
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vkontakte-cross-post.php" instead of "vkcrosspost.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin284 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17111284

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.33MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/step1.png84.22KB28.26KB▼ 66.44%
img/step5.png13.06KB3.71KB▼ 71.62%
img/step4.png58.41KB19.44KB▼ 66.71%
img/step2.png67.00KB19.99KB▼ 70.16%
img/step3.png112.95KB33.12KB▼ 70.68%