68% virtual-shop-for-woocommecre

Code Review | Virtual Shop For Woocommecre

WordPress plugin Virtual Shop For Woocommecre scored68%from 54 tests.

About plugin

  • Plugin page: virtual-shop-for-...
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Mar 12, 2018
  • Latest release: Mar 17, 2018
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: eewann (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /668 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.13MB] [CPU: ▼40.42ms] Passed 4 tests

Analyzing server-side resources used by Virtual Shop For Woocommecre
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▼0.6213.14 ▼28.46
Dashboard /wp-admin2.88 ▼0.4218.13 ▼33.57
Posts /wp-admin/edit.php2.88 ▼0.4718.73 ▼29.51
Add New Post /wp-admin/post-new.php2.88 ▼3.0019.78 ▼70.15
Media Library /wp-admin/upload.php2.88 ▼0.3516.34 ▼19.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Virtual Shop For Woocommecre
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.21 ▼1.411.70 ▼0.5137.08 ▼9.09
Dashboard /wp-admin2,215 ▲304.85 ▼1.19100.92 ▼5.2842.92 ▼1.23
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0739.50 ▼0.8142.00 ▲4.97
Add New Post /wp-admin/post-new.php1,372 ▼14820.59 ▼2.51552.83 ▼128.2241.70 ▼11.42
Media Library /wp-admin/upload.php1,400 ▲154.19 ▼0.0393.00 ▼14.6641.24 ▼4.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/virtual-shop-for-woocommecre/wc_virtual_shop.php+227
    Undefined index: session_key
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/virtual-shop-for-woocommecre/wc_virtual_shop.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template_directory() in wp-content/plugins/virtual-shop-for-woocommecre/wc_vrshop_blank-page.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, virtual reality, vr

virtual-shop-for-woocommecre/wc_virtual_shop.php 85% from 13 tests

"Virtual Shop For Woocommecre" version 0.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("virtual-shop-for-woocommecre.php" instead of "wc_virtual_shop.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin776 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP214354776

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin