Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.48ms] Passed 4 tests
Analyzing server-side resources used by Visual Product Configurator for Woocommerce Lite
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 32.56 ▼13.06 |
Dashboard /wp-admin | 3.41 ▲0.10 | 52.29 ▼2.97 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 56.56 ▲6.78 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 93.90 ▲2.45 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.94 ▲3.66 |
New configuration /wp-admin/post-new.php?post_type=vpc-config | 3.44 | 53.05 |
Configurations /wp-admin/edit.php?post_type=vpc-config | 3.37 | 40.16 |
Server storage [IO: ▲8.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 143 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Visual Product Configurator for Woocommerce Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,659 ▼152 | 13.83 ▲0.33 | 6.64 ▲0.89 | 13.27 ▼37.58 |
Dashboard /wp-admin | 2,272 ▲63 | 4.93 ▲0.08 | 114.75 ▼1.94 | 75.51 ▲32.55 |
Posts /wp-admin/edit.php | 2,177 ▲88 | 2.31 ▲0.31 | 41.78 ▲5.50 | 45.69 ▲12.48 |
Add New Post /wp-admin/post-new.php | 1,426 ▼107 | 18.48 ▼4.68 | 666.07 ▲36.50 | 41.46 ▼14.89 |
Media Library /wp-admin/upload.php | 1,460 ▲72 | 4.30 ▲0.07 | 101.75 ▲3.19 | 83.39 ▲41.36 |
New configuration /wp-admin/post-new.php?post_type=vpc-config | 1,853 | 3.87 | 67.47 | 118.61 |
Configurations /wp-admin/edit.php?post_type=vpc-config | 1,135 | 2.24 | 34.70 | 33.55 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
5 plugin tags: woocommerce composite products, woocommerce product customizer, woocommerce product configurator, woocommerce product designer, woocommerce product builder
visual-products-configurator-for-woocommerce/vpc.php 77% from 13 tests
"Visual Product Configurator for Woocommerce Lite" version 3.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("visual-products-configurator-for-woocommerce.php" instead of "vpc.php")
- Domain Path: The domain path folder was not found ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin18,246 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 28 | 1,479 | 1,423 | 9,298 |
CSS | 18 | 412 | 239 | 4,303 |
PHP | 17 | 620 | 1,018 | 3,889 |
SVG | 15 | 0 | 3 | 756 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 31.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 13 | 11.11% |
▷ Public methods | 97 | 82.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 17.09% |
Functions | 38 | |
▷ Named functions | 37 | 97.37% |
▷ Anonymous functions | 1 | 2.63% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 5.54MB with 3.40MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/vpc-logo.png | 1.09KB | 0.78KB | ▼ 28.79% |
admin/images/form_builder.png | 6.41KB | 2.18KB | ▼ 65.97% |
admin/images/home-page.png | 148.67KB | 41.69KB | ▼ 71.96% |
admin/images/ninja-forms_old.png | 35.08KB | 9.10KB | ▼ 74.05% |
admin/images/vpc-uci.png | 6.61KB | 2.24KB | ▼ 66.03% |