93% vrm360

Code Review | Vrm 360 3D Model Viewer

WordPress plugin Vrm 360 3D Model Viewer scored 93% from 54 tests.

About plugin

  • Plugin page: vrm360
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 5.9.2
  • First release: Mar 22, 2019
  • Latest release: Sep 19, 2021
  • Number of updates: 38
  • Update frequency: every 24.0 days
  • Top authors: maui2wp (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

3,000+ active / 19,420 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼288.37ms] Passed 4 tests

A check of server-side resources used by Vrm 360 3D Model Viewer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1261.62 ▲2.63
Dashboard /wp-admin3.49 ▲0.0735.11 ▲2.01
Posts /wp-admin/edit.php3.72 ▲0.0846.86 ▲10.08
Add New Post /wp-admin/post-new.php6.96 ▼0.0295.71 ▼1,160.15
Media Library /wp-admin/upload.php3.37 ▲0.0724.68 ▲2.03

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 50 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Vrm 360 3D Model Viewer: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,930 ▲20818.15 ▲2.5743.62 ▲37.722.77 ▼0.15
Dashboard /wp-admin2,892 ▲346.14 ▲0.01124.76 ▼14.73174.28 ▲6.53
Posts /wp-admin/edit.php2,691 ▼03.36 ▼0.0168.52 ▲3.93153.69 ▼66.72
Add New Post /wp-admin/post-new.php1,752 ▲9121.79 ▲5.70452.63 ▲1.31186.24 ▲27.69
Media Library /wp-admin/upload.php1,692 ▼05.55 ▲0.03160.46 ▲16.27233.77 ▲2.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vrm360/vrm360.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

vrm360/vrm360.php Passed 13 tests

The main PHP file in "Vrm 360 3D Model Viewer" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
3D model viewer w/ rotation and zoom

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
Good job! No executable or dangerous file extensions detected8,946 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript145,1521,0858,259
PHP33355313
SVG51511298
CSS261676

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 3.72MB with 2.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-4.png771.25KB194.82KB▼ 74.74%
assets/Screenshot-2.png190.53KB67.11KB▼ 64.78%
Screenshot-3.png1,141.00KB380.74KB▼ 66.63%
dragtospin.png4.86KB2.51KB▼ 48.31%
assets/icon-128x128.png14.26KB5.60KB▼ 60.73%