84% vkshop-for-edd

Code Review | VKShop for Easy Digital Downloads

WordPress plugin VKShop for Easy Digital Downloads scored 84% from 54 tests.

About plugin

  • Plugin page: vkshop-for-edd
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0
  • WordPress version: 6.3.1
  • First release: Jul 10, 2019
  • Latest release: Jul 10, 2019
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: aleksandrx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 797 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by VKShop for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.15 ▲1.73
Dashboard /wp-admin3.31 ▲0.0049.59 ▼0.55
Posts /wp-admin/edit.php3.36 ▲0.0044.77 ▼4.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.85 ▼20.62
Media Library /wp-admin/upload.php3.23 ▲0.0035.26 ▲4.33

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

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

Browser metrics Passed 4 tests

VKShop for Easy Digital Downloads: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.80 ▲0.401.84 ▲0.1144.38 ▼3.36
Dashboard /wp-admin2,206 ▲155.87 ▲0.9999.97 ▲1.1537.89 ▼7.44
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0434.97 ▼6.8530.22 ▼5.83
Add New Post /wp-admin/post-new.php1,533 ▲1923.40 ▲5.79631.52 ▲28.3145.47 ▼8.02
Media Library /wp-admin/upload.php1,388 ▲64.18 ▼0.04103.99 ▲5.2940.21 ▼6.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/vkshop-for-edd/inc/wp-settings-api-class-edd.php:766
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vkshop-for-edd/vks-functions.php:148
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vkshop-for-edd/inc/vkwp-api-edd.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/vkshop-for-edd/vks-export.php:485
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vkshop-for-edd/vks-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vkshop-for-edd/vkshop-for-edd.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
9 plugin tags: vk, edd, easy digital downloads, shop, vkmarket...

vkshop-for-edd/vkshop-for-edd.php 85% from 13 tests

The primary PHP file in "VKShop for Easy Digital Downloads" version 0.9 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 152 characters long)
  • Domain Path: The domain path folder was not found ("/languages/")

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
Success! There were no dangerous files found in this plugin2,891 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP77834262,644
JavaScript267247

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.33
▷ Minimum class complexity3.00
▷ Maximum class complexity80.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions84
▷ Named functions8398.81%
▷ Anonymous functions11.19%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin