89% my-woocommerce-product-virtual-showroom

Code Review | Product Virtual Try On Showroom for WooCommerce - Sunglasses, Furniture

WordPress plugin Product Virtual Try On Showroom for WooCommerce - Sunglasses, Furniture scored89%from 54 tests.

About plugin

  • Plugin page: my-woocommerce-pr...
  • Plugin version: 2.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 22, 2017
  • Latest release: Jul 13, 2023
  • Number of updates: 89
  • Update frequency: every 26.2 days
  • Top authors: taz_bambu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /5,235 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼6.79ms] Passed 4 tests

A check of server-side resources used by Product Virtual Try On Showroom for WooCommerce - Sunglasses, Furniture
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.06 ▼3.51
Dashboard /wp-admin3.42 ▲0.0750.66 ▼13.20
Posts /wp-admin/edit.php3.53 ▲0.1847.78 ▲0.80
Add New Post /wp-admin/post-new.php5.99 ▲0.1190.44 ▼10.64
Media Library /wp-admin/upload.php3.32 ▲0.0933.81 ▲0.21

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Product Virtual Try On Showroom for WooCommerce - Sunglasses, Furniture
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,100 ▲35415.36 ▲0.988.82 ▲6.7843.69 ▲0.27
Dashboard /wp-admin2,375 ▲1876.50 ▲0.62114.67 ▲11.9638.80 ▼5.22
Posts /wp-admin/edit.php2,281 ▲1953.38 ▲1.3747.43 ▲10.7031.21 ▼3.65
Add New Post /wp-admin/post-new.php1,549 ▲1818.42 ▼4.44586.71 ▼98.0834.98 ▼21.12
Media Library /wp-admin/upload.php1,417 ▲384.23 ▲0.0278.31 ▼20.3344.58 ▲0.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
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 smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce product showroom, virtual try, virtual mirror, try sunglasses online simulator, try on

my-woocommerce-product-virtual-showroom/MyWooCommerceShowroom.php 69% from 13 tests

The main PHP file in "Product Virtual Try On Showroom for WooCommerce - Sunglasses, Furniture" ver. 2.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "2.2")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
  • Plugin Name: Keep the plugin name shorter than 70 characters (currently 71 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("my-woocommerce-product-virtual-showroom.php" instead of "MyWooCommerceShowroom.php")

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
There were no executable files found in this plugin2,242 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS3109511,610
PHP213722341
JavaScript25417159
PO File15371132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
9 PNG files occupy 0.25MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/save.png0.63KB0.76KB0.00%
images/extendwp.png5.75KB3.37KB▼ 41.46%
images/mywoocommerce-product-virtual-showroom_PRO.png57.89KB30.93KB▼ 46.57%
images/default.png14.13KB5.96KB▼ 57.80%
images/mywoocommerce-product-virtual-showroom_horizontal.png60.30KB37.40KB▼ 37.97%