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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼10.78ms] Passed 4 tests
Server-side resources used by 3D Product Viewer & WebAR for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.72 ▼4.33 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.47 ▼5.66 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 43.83 ▼3.61 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 70.79 ▼25.73 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 29.18 ▼7.40 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 26 new options
New WordPress options |
---|
nickx_adaptive_height |
nickx_thumbnails_to_show |
widget_recent-posts |
nickx_show_zoom |
nickx_arrowdisable |
nickx_arrow_thumb |
theysaidso_admin_options |
nickx_vid_autoplay |
nickx_arrowbgcolor |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 3D Product Viewer & WebAR for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.17 ▼1.21 | 1.56 ▼0.15 | 40.98 ▼14.47 |
Dashboard /wp-admin | 2,209 ▲24 | 5.82 ▼0.07 | 99.51 ▼17.18 | 43.31 ▼4.43 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.05 ▼0.00 | 39.62 ▲1.48 | 35.30 ▼0.21 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.61 ▲6.15 | 667.10 ▲7.92 | 53.17 ▼2.95 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.25 ▲0.08 | 100.72 ▲1.83 | 44.85 ▼0.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 26 options in the database
- nickx_show_only_video
- theysaidso_admin_options
- nickx_show_zoom
- nickx_hide_thumbnails
- nickx_sliderautoplay
- nickx_vid_autoplay
- nickx_rtl
- nickx_template
- nickx_thumbnails_to_show
- nickx_adaptive_height
- ...
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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid url: ""
- Screenshots: These screenshots have no corresponding images in /assets: #2 (WebAR), #3 (Portal management)
- Tags: Please delete some tags, you are using 27 tag instead of maximum 10
wc-product-3d-viewer/3D-product-viewer-and-webAR-for-woocommerce.php 69% from 13 tests
Analyzing the main PHP file in "3D Product Viewer & WebAR for WooCommerce" version 1.0.5
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires at least: The required version number must match the one declared in readme.txt ("5.6" instead of "2.3")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-product-3d-viewer.php" instead of "3D-product-viewer-and-webAR-for-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin5,308 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,180 | 651 | 4,355 |
PHP | 2 | 31 | 29 | 526 |
CSS | 3 | 0 | 1 | 426 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.14% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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.22MB with 0.12MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.82KB | 1.46KB | ▼ 19.75% |
images/viraview.png | 166.49KB | 54.95KB | ▼ 66.99% |
images/icon-256x256.png | 43.45KB | 15.63KB | ▼ 64.03% |
images/logo-virakle.png | 12.63KB | 4.78KB | ▼ 62.20% |