90% happyvr

Code Review | HappyVR - WordPress 360 Panorama Viewer

WordPress plugin HappyVR - WordPress 360 Panorama Viewer scored90%from 54 tests.

About plugin

  • Plugin page: happyvr
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2023
  • Latest release: Oct 24, 2023
  • Number of updates: 21
  • Update frequency: N/A
  • Top authors: lavrentevmx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /15 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.25ms] Passed 4 tests

This is a short check of server-side resources used by HappyVR - WordPress 360 Panorama Viewer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.27 ▲0.90
Dashboard /wp-admin3.32 ▲0.0146.98 ▲0.80
Posts /wp-admin/edit.php3.37 ▲0.0141.25 ▼4.28
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.35 ▼9.72
Media Library /wp-admin/upload.php3.24 ▲0.0134.34 ▲0.20

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

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

Browser metrics Passed 4 tests

Checking browser requirements for HappyVR - WordPress 360 Panorama Viewer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.001.76 ▲0.1944.04 ▲3.75
Dashboard /wp-admin2,198 ▲245.63 ▲0.1185.82 ▼1.9236.59 ▼5.64
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0834.73 ▼0.6733.33 ▼6.92
Add New Post /wp-admin/post-new.php1,526 ▼023.23 ▲0.14655.68 ▲58.9253.04 ▼8.44
Media Library /wp-admin/upload.php1,394 ▼64.24 ▲0.0194.78 ▲1.6242.92 ▲1.00

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: virtual reality, 360 image, equirectangular, shortcode, vr...

happyvr/happyvr.php Passed 13 tests

"HappyVR - WordPress 360 Panorama Viewer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
HappyVR is a plugin that enables you add interactive 360 photos to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,136 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34791,3313,594
CSS1543418
PHP4161993
SVG50026
Sass1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods8
▷ Static methods112.50%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants6
▷ Global constants6100.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
There are no PNG files in this plugin