99% augmented-reality-product-visualizer-and-configurator-for-woocommerce

Code Review | Augmented Reality & 3D Visualizer for WooCommerce

WordPress plugin Augmented Reality & 3D Visualizer for WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: augmented-reality...
  • Plugin version: 3.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 5.8.1
  • First release: Sep 7, 2020
  • Latest release: Aug 24, 2021
  • Number of updates: 65
  • Update frequency: every 5.5 days
  • Top authors: ogmoliveroom (87.69%)ogmodev (13.85%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,204 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼149.56ms] Passed 4 tests

This is a short check of server-side resources used by Augmented Reality & 3D Visualizer for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.02 ▲16.43
Dashboard /wp-admin3.08 ▲0.0246.21 ▼4.66
Posts /wp-admin/edit.php3.13 ▲0.0245.03 ▼15.56
Add New Post /wp-admin/post-new.php5.44 ▲0.0195.42 ▼567.94
Media Library /wp-admin/upload.php3.02 ▲0.0133.92 ▼10.08

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 63 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Augmented Reality & 3D Visualizer for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.23 ▲0.728.80 ▲0.2147.07 ▼1.88
Dashboard /wp-admin2,973 ▲395.97 ▲0.03135.67 ▼21.86123.05 ▲9.41
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0166.55 ▼8.5692.63 ▼11.96
Add New Post /wp-admin/post-new.php1,683 ▼018.74 ▲0.41383.73 ▼16.84138.37 ▲16.45
Media Library /wp-admin/upload.php1,807 ▼05.02 ▼0.08155.93 ▼21.33129.18 ▼9.52

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

augmented-reality-product-visualizer-and-configurator-for-woocommerce/ogmo.php 77% from 13 tests

The primary PHP file in "Augmented Reality & 3D Visualizer for WooCommerce" version 3.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 257 characters long)
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "5.2")
  • Main file name: Name the main plugin file the same as the plugin slug ("augmented-reality-product-visualizer-and-configurator-for-woocommerce.php" instead of "ogmo.php")

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
Success! There were no dangerous files found in this plugin2,850 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
PHP163371401,358
JavaScript14106140796
CSS6281643
JSON20050
SVG2002
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.24
Average class complexity7.07
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods89
▷ Static methods4449.44%
▷ Public methods6876.40%
▷ Protected methods00.00%
▷ Private methods2123.60%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants981.82%
▷ Class constants218.18%
▷ Public constants2100.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
10 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
widget/build/logo512.png9.44KB10.35KB0.00%
widget/build/logo192.png5.22KB5.57KB0.00%
assets/images/ARIcon.png1.32KB1.01KB▼ 23.56%
assets/images/ogmoLogo.png1.72KB0.96KB▼ 43.98%
assets/images/ogmo_logo.png6.36KB3.34KB▼ 47.50%