77% vk-plugin-beta-tester

Code Review | VK Plugin Beta Tester

WordPress plugin VK Plugin Beta Tester scored77%from 54 tests.

About plugin

  • Plugin page: vk-plugin-beta-te...
  • Plugin version: 0.2.9
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 29, 2019
  • Latest release: Jun 2, 2021
  • Number of updates: 7
  • Update frequency: every 92.0 days
  • Top authors: vektor-inc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /902 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼1.97ms] Passed 4 tests

This is a short check of server-side resources used by VK Plugin Beta Tester
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.08 ▼5.49
Dashboard /wp-admin3.44 ▲0.14201.31 ▲146.17
Posts /wp-admin/edit.php3.54 ▲0.1949.05 ▲1.45
Add New Post /wp-admin/post-new.php6.01 ▲0.1292.96 ▼2.90
Media Library /wp-admin/upload.php3.35 ▲0.1235.28 ▼0.94
VK Plugin Beta Tester Setting /wp-admin/options-general.php?page=vk-plugin-beta-tester-setting3.33205.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for VK Plugin Beta Tester
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8314.76 ▲0.401.66 ▼0.8739.14 ▼7.39
Dashboard /wp-admin2,245 ▲685.67 ▲0.0395.42 ▼2.2477.39 ▲33.94
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0441.56 ▲5.9243.20 ▲8.02
Add New Post /wp-admin/post-new.php1,541 ▲1323.30 ▲0.20589.94 ▼102.3665.12 ▲13.52
Media Library /wp-admin/upload.php1,409 ▲94.18 ▲0.02102.07 ▼12.0342.59 ▼2.85
VK Plugin Beta Tester Setting /wp-admin/options-general.php?page=vk-plugin-beta-tester-setting8722.0031.0332.64

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • vkpbt_active_plugin_for_beta_notice
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/vk-plugin-beta-tester/tests/bootstrap.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-plugin-beta-tester/inc/vk-admin/package/class-vk-admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-plugin-beta-tester/inc/vk-admin/package/class-vk-admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/vk-plugin-beta-tester/vk-plugin-beta-tester.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/vk-plugin-beta-tester/tests/test-01.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 75% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Choose the plugins to show beta notifications.), #2 (You can check Beta version manually by clicking "Check for beta updates".)
  • Tested up to: Invalid version format
  • Requires at least: Invalid version format
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

vk-plugin-beta-tester/vk-plugin-beta-tester.php 92% from 13 tests

The primary PHP file in "VK Plugin Beta Tester" version 0.2.9 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin15,315 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON20013,508
PHP5212185661
Sass1233462
CSS2289316
JavaScript23148127
Bourne Shell12111123
YAML17058
XML241249
Ruby1027
Markdown1104

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity28.67
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods49
▷ Static methods1836.73%
▷ Public methods4897.96%
▷ Protected methods00.00%
▷ Private methods12.04%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 1.53MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png964.23KB308.57KB▼ 68.00%
inc/vk-admin/package/images/no-image.png9.74KB4.66KB▼ 52.17%
screenshot-2.png498.82KB148.40KB▼ 70.25%
inc/vk-admin/package/images/billvektor_banner.png33.56KB14.06KB▼ 58.09%
inc/vk-admin/package/images/vektor_logo-2020.png6.48KB5.37KB▼ 17.11%