68% vk-poster-group

Code Review | VK Poster Group

WordPress plugin VK Poster Group scored68%from 54 tests.

About plugin

  • Plugin page: vk-poster-group
  • Plugin version: 2.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Dec 26, 2014
  • Latest release: Aug 25, 2021
  • Number of updates: 28
  • Update frequency: every 87.0 days
  • Top authors: northmule (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /29,418 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.76MB] [CPU: ▼33.76ms] Passed 4 tests

This is a short check of server-side resources used by VK Poster Group
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.1747.64 ▲3.20
Dashboard /wp-admin3.46 ▼0.1127.77 ▼24.74
Posts /wp-admin/edit.php3.46 ▼0.2227.46 ▼23.38
Add New Post /wp-admin/post-new.php3.46 ▼2.6928.74 ▼76.10
Media Library /wp-admin/upload.php3.46 ▼0.0329.46 ▼10.80
VKPosterGP /wp-admin/options-general.php?page=vkposter-page3.4630.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for VK Poster Group
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▼0.051.93 ▲0.0843.71 ▲0.26
Dashboard /wp-admin2,199 ▲225.67 ▲0.0784.07 ▼16.3648.37 ▲2.95
Posts /wp-admin/edit.php2,104 ▲12.03 ▼0.0240.46 ▲2.9138.45 ▲1.08
Add New Post /wp-admin/post-new.php1,529 ▼1717.48 ▼5.83620.32 ▼30.0859.53 ▲1.64
Media Library /wp-admin/upload.php1,401 ▲74.29 ▲0.0199.44 ▼5.4540.71 ▼4.96
VKPosterGP /wp-admin/options-general.php?page=vkposter-page1,1572.0326.5230.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=vkposter-page
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% 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 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-poster-group/index-vkp.php:29

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: autopost, social, vkcom, auto post, vkontakte...

vk-poster-group/index-vkp.php 85% from 13 tests

"VK Poster Group" version 2.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("vk-poster-group.php" instead of "index-vkp.php")

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
Good job! No executable or dangerous file extensions detected1,624 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP193993661,580
JSON20022
CSS12020
Markdown1002
JavaScript12260

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 issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.86
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods78
▷ Static methods1823.08%
▷ Public methods7191.03%
▷ Protected methods56.41%
▷ Private methods22.56%
Functions7
▷ Named functions228.57%
▷ Anonymous functions571.43%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 1.09MB with 0.70MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/help_9.png118.90KB41.08KB▼ 65.45%
img/help_7.png43.69KB16.04KB▼ 63.28%
img/help_4.png63.29KB25.85KB▼ 59.15%
img/help_5.png116.69KB38.75KB▼ 66.79%
img/help_2.png52.80KB18.89KB▼ 64.23%