83% ipanorama-360-virtual-tour-builder-lite

Code Review | iPanorama 360 - WordPress Virtual Tour Builder

WordPress plugin iPanorama 360 - WordPress Virtual Tour Builder scored83%from 54 tests.

About plugin

  • Plugin page: ipanorama-360-vir...
  • Plugin version: 1.8.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 23, 2016
  • Latest release: Oct 18, 2023
  • Number of updates: 186
  • Update frequency: every 14.2 days
  • Top authors: avirtum (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

7,000+ active /185,890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.91MB] [CPU: ▲0.46ms] Passed 4 tests

Server-side resources used by iPanorama 360 - WordPress Virtual Tour Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6342.72 ▲1.49
Dashboard /wp-admin4.31 ▲1.0052.79 ▲1.18
Posts /wp-admin/edit.php4.42 ▲1.0653.60 ▲1.77
Add New Post /wp-admin/post-new.php6.91 ▲1.0291.20 ▼2.59
Media Library /wp-admin/upload.php4.23 ▲1.0043.59 ▲6.67
Add New /wp-admin/admin.php?page=ipanorama_item4.7547.06
All Items /wp-admin/admin.php?page=ipanorama4.4640.86
Settings /wp-admin/admin.php?page=ipanorama_settings4.2337.70

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

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

Browser metrics Passed 4 tests

A check of browser resources used by iPanorama 360 - WordPress Virtual Tour Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.17 ▼0.541.53 ▼0.2343.25 ▲4.71
Dashboard /wp-admin2,229 ▲495.64 ▲0.0188.31 ▼2.1241.18 ▼3.92
Posts /wp-admin/edit.php2,128 ▲252.02 ▲0.0538.28 ▲0.1734.45 ▼5.78
Add New Post /wp-admin/post-new.php6,389 ▲4,84627.78 ▲4.58921.88 ▲313.3965.73 ▲21.71
Media Library /wp-admin/upload.php1,431 ▲374.20 ▼0.04100.56 ▼0.6045.95 ▲1.96
Add New /wp-admin/admin.php?page=ipanorama_item4,6339.87421.3588.92
All Items /wp-admin/admin.php?page=ipanorama1,1511.8927.0033.46
Settings /wp-admin/admin.php?page=ipanorama_settings1,7733.4557.5742.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=ipanorama_item
    • > Console-api (warning) in unknown
    http://maps.google.com/maps/api/js?ver=1.8.1 210:51 "Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading"
    • > GET request to /wp-admin/admin.php?page=ipanorama_item
    • > Other (warning) in unknown
    /wp-content/plugins/ipanorama-360-virtual-tour-builder-lite/assets/js/lib/ipanorama/ipanorama.min.js?ver=1.8.1 0 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt is a good inspiration

ipanorama-360-virtual-tour-builder-lite/ipanorama.php 69% from 13 tests

"iPanorama 360 - WordPress Virtual Tour Builder" version 1.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 465 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.6")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ipanorama-360-virtual-tour-builder-lite.php" instead of "ipanorama.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin11,348 lines of code in 497 files:
LanguageFilesBlank linesComment linesLines of code
PHP215409364,666
SVG37002,782
JavaScript425381832,721
PO File15136021,166
CSS1301913

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity98.50
▷ Minimum class complexity3.00
▷ Maximum class complexity283.00
Average method complexity5.90
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods72
▷ Static methods00.00%
▷ Public methods7198.61%
▷ Protected methods00.00%
▷ Private methods11.39%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants8
▷ Global constants8100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/lib/ipanorama/images/point-editor.png11.78KB5.38KB▼ 54.33%
assets/js/lib/ipanorama/widgets/list/images/progress.png0.84KB0.54KB▼ 35.74%
assets/js/lib/ipanorama/images/point-blank.png0.68KB0.11KB▼ 83.40%
assets/js/lib/ipanorama/images/plane-editor.png0.70KB0.11KB▼ 83.71%