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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.02 ▲16.43 |
Dashboard /wp-admin | 3.08 ▲0.02 | 46.21 ▼4.66 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 45.03 ▼15.56 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 95.42 ▼567.94 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 33.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.23 ▲0.72 | 8.80 ▲0.21 | 47.07 ▼1.88 |
Dashboard /wp-admin | 2,973 ▲39 | 5.97 ▲0.03 | 135.67 ▼21.86 | 123.05 ▲9.41 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 66.55 ▼8.56 | 92.63 ▼11.96 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.74 ▲0.41 | 383.73 ▼16.84 | 138.37 ▲16.45 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.08 | 155.93 ▼21.33 | 129.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 337 | 140 | 1,358 |
JavaScript | 14 | 106 | 140 | 796 |
CSS | 6 | 28 | 1 | 643 |
JSON | 2 | 0 | 0 | 50 |
SVG | 2 | 0 | 0 | 2 |
HTML | 1 | 0 | 0 | 1 |
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 code | 0.24 |
Average class complexity | 7.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 44 | 49.44% |
▷ Public methods | 68 | 76.40% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 23.60% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
widget/build/logo512.png | 9.44KB | 10.35KB | 0.00% |
widget/build/logo192.png | 5.22KB | 5.57KB | 0.00% |
assets/images/ARIcon.png | 1.32KB | 1.01KB | ▼ 23.56% |
assets/images/ogmoLogo.png | 1.72KB | 0.96KB | ▼ 43.98% |
assets/images/ogmo_logo.png | 6.36KB | 3.34KB | ▼ 47.50% |