72% wpvr

Code Review | WP VR - 360 Panorama and Virtual Tour Builder For WordPress

WordPress plugin WP VR - 360 Panorama and Virtual Tour Builder For WordPress scored72%from 54 tests.

About plugin

  • Plugin page: wpvr
  • Plugin version: 8.3.13
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 12, 2018
  • Latest release: Dec 1, 2023
  • Number of updates: 205
  • Update frequency: every 8.9 days
  • Top authors: rextheme (100%)

Code review

54 tests

User reviews

73 reviews

Install metrics

10,000+ active /387,538 total downloads

Benchmarks

Plugin footprint 82% 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: ▲1.51MB] [CPU: ▲10.74ms] 75% from 4 tests

This is a short check of server-side resources used by WP VR - 360 Panorama and Virtual Tour Builder For WordPress
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 526.94ms on /wp-admin/admin.php?page=wpvr)
PageMemory (MB)CPU Time (ms)
Home /4.88 ▲1.4150.05 ▲8.34
Dashboard /wp-admin4.93 ▲1.5870.82 ▲12.15
Posts /wp-admin/edit.php4.96 ▲1.5967.45 ▲19.52
Add New Post /wp-admin/post-new.php7.43 ▲1.54108.74 ▲2.95
Media Library /wp-admin/upload.php4.76 ▲1.5355.55 ▲20.86
Add New Tour /wp-admin/post-new.php?post_type=wpvr_item5.4465.95
Tours /wp-admin/edit.php?post_type=wpvr_item4.8952.16
Guided Tour /wp-admin/admin.php?page=wpvr-setup-wizard4.8050.59
Get Started /wp-admin/admin.php?page=wpvr5.17526.94

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 495 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
_is_wpvr_promotion
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WP VR - 360 Panorama and Virtual Tour Builder For WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,373 ▲61118.05 ▲3.2923.89 ▲22.3127.02 ▼9.52
Dashboard /wp-admin2,611 ▲4446.96 ▲1.30116.45 ▲5.08105.26 ▲59.34
Posts /wp-admin/edit.php2,471 ▲3713.77 ▲1.8069.12 ▲26.9266.36 ▲30.27
Add New Post /wp-admin/post-new.php6,560 ▲5,03428.83 ▲5.39915.57 ▲295.2439.02 ▼19.56
Media Library /wp-admin/upload.php1,605 ▲2054.83 ▲0.6390.79 ▼4.5078.01 ▲36.65
Add New Tour /wp-admin/post-new.php?post_type=wpvr_item9,3585.84344.24142.49
Tours /wp-admin/edit.php?post_type=wpvr_item1,5323.6562.2699.10
Guided Tour /wp-admin/admin.php?page=wpvr-setup-wizard2,19910.37326.70206.69
Get Started /wp-admin/admin.php?page=wpvr3,18114.92357.74186.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • _is_wpvr_promotion

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpvr/public/partials/wpvr-public-display.php
    • > /wp-content/plugins/wpvr/admin/partials/wpvr-admin-display.php
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wpvr/admin/partials/wpvr_confirmation_alert.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'OxyEl' not found in wp-content/plugins/wpvr/oxygen/WPVR_CUSTOM_OXY_ELEMENT.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'DiviExtension' not found in wp-content/plugins/wpvr/includes/wpvr-divi-modules/includes/DiviModules.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/wpvr/includes/wpvr-divi-modules/includes/modules/wpvr_modules/WpvrTour.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WPVR_CUSTOM_OXY_ELEMENT' not found in wp-content/plugins/wpvr/oxygen/elements/Wpvr_Tour_Element.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpvr/oxygen/WPVR_OXY_INTEGRATION.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wpvr/admin/partials/wpvr_setup_wizard.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Bold.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Regular.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Medium.woff2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Bold.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Regular.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Medium.woff - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Bold.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Regular.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=wpvr
    • > Network (severe)
    wp-content/plugins/wpvr/admin/fonts/roboto/Roboto-Medium.ttf - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (18 tag instead of maximum 10)
The official readme.txt is a good inspiration

wpvr/wpvr.php Passed 13 tests

The main file in "WP VR - 360 Panorama and Virtual Tour Builder For WordPress" v. 8.3.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
130 characters long description:
WP VR - 360 Panorama and virtual tour creator for WordPress is a customized panaroma & virtual builder tool for WordPress Website.

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin189,773 lines of code in 301 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14047,86255,437138,564
CSS456,24075324,007
PHP622,7654,43114,181
SVG270128,928
PO File171,2391,3153,234
Sass2930502
JSON430220
XML16776
Markdown210045
JSX17316

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 318)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity25.54
▷ Minimum class complexity1.00
▷ Maximum class complexity344.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity318.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes46
▷ Abstract classes48.70%
▷ Concrete classes4291.30%
▷ Final classes00.00%
Methods436
▷ Static methods11827.06%
▷ Public methods33075.69%
▷ Protected methods153.44%
▷ Private methods9120.87%
Functions30
▷ Named functions2583.33%
▷ Anonymous functions516.67%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
50 PNG files occupy 0.26MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/icon/wpfunnels.png0.35KB0.30KB▼ 15.15%
images/scene-pro-feature.png46.67KB12.10KB▼ 74.08%
admin/icon/vr-video-poster.png40.55KB42.96KB0.00%
admin/icon/wpvr-banner.png33.55KB35.29KB0.00%
admin/icon/street-view-hover.png0.35KB0.51KB0.00%