84% vk-sharing-jetpack

Code Review | Vk.com sharing for Jetpack

WordPress plugin Vk.com sharing for Jetpack scored84%from 54 tests.

About plugin

  • Plugin page: vk-sharing-jetpack
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-5.9
  • WordPress version: 6.3.1
  • First release: Oct 30, 2013
  • Latest release: Feb 14, 2022
  • Number of updates: 21
  • Update frequency: every 144.3 days
  • Top authors: jeherve (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /7,220 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.08ms] Passed 4 tests

A check of server-side resources used by Vk.com sharing for Jetpack
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.16 ▼6.92
Dashboard /wp-admin3.32 ▼0.0343.89 ▼15.93
Posts /wp-admin/edit.php3.37 ▲0.0147.09 ▲3.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.79 ▲0.99
Media Library /wp-admin/upload.php3.24 ▲0.0135.82 ▲1.55

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Vk.com sharing for Jetpack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.31 ▼1.254.55 ▲2.8139.36 ▼9.48
Dashboard /wp-admin2,216 ▲285.83 ▼0.0295.88 ▼20.2439.20 ▼5.04
Posts /wp-admin/edit.php2,098 ▲62.04 ▼0.0141.62 ▲4.3535.13 ▼0.99
Add New Post /wp-admin/post-new.php1,543 ▲123.13 ▲0.07661.75 ▲11.1349.54 ▼7.45
Media Library /wp-admin/upload.php1,398 ▲134.20 ▼0.0197.22 ▼5.1243.88 ▲0.55

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× 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/vk-sharing-jetpack/vk-sharing-jetpack.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: vk, jetpack, wordpresscom, vkcom, sharing

vk-sharing-jetpack/vk-sharing-jetpack.php 92% from 13 tests

The primary PHP file in "Vk.com sharing for Jetpack" version 1.2.3 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin111 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21816111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vk-white.png4.44KB0.55KB▼ 87.54%
vk.png4.00KB0.30KB▼ 92.51%