Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼10.51ms] Passed 4 tests
An overview of server-side resources used by SpecFit-Virtual Try On Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.23 ▼6.46 |
Dashboard /wp-admin | 3.43 ▲0.08 | 48.12 ▼13.00 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.26 ▼2.20 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.64 ▼20.39 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 43.39 ▲11.79 |
Server storage [IO: ▲7.28MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SpecFit-Virtual Try On Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲79 | 14.28 ▲0.00 | 1.92 ▲0.23 | 42.32 ▼0.84 |
Dashboard /wp-admin | 2,219 ▲39 | 5.57 ▼0.06 | 88.20 ▼13.31 | 69.45 ▲24.41 |
Posts /wp-admin/edit.php | 2,154 ▲51 | 2.22 ▲0.26 | 39.12 ▲3.92 | 35.11 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,716 ▲190 | 22.25 ▼0.71 | 591.02 ▲19.67 | 33.93 ▼17.77 |
Media Library /wp-admin/upload.php | 1,446 ▲52 | 4.21 ▲0.04 | 109.59 ▲12.36 | 47.16 ▲3.54 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/try-on-for-woocommerce/public/partials/eyewear_virtual_try_on_wordpress-public-try-on.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/try-on-for-woocommerce/admin/partials/eyewear_virtual_try_on_wordpress-admin-display.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/try-on-for-woocommerce/public/partials/eyewear_virtual_try_on_wordpress-public-display-new.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Please a description for screenshot #8 in try-on-for-woocommerce/assets to your readme.txt
- Screenshots: Screenshot #7 (Frontend Page: Live try on using webcam) image missing
try-on-for-woocommerce/eyewear_virtual_try_on_wordpress.php 77% from 13 tests
The principal PHP file in "SpecFit-Virtual Try On Woocommerce" v. 6.0.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("try-on-for-woocommerce.php" instead of "eyewear_virtual_try_on_wordpress.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: The description should be shorter than 140 characters (currently 182 characters long)
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
Good job! No executable or dangerous file extensions detected80,259 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 8,738 | 54,646 | 77,634 |
CSS | 4 | 70 | 45 | 1,814 |
PHP | 14 | 154 | 544 | 696 |
Markdown | 1 | 26 | 0 | 60 |
SVG | 2 | 0 | 1 | 55 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/partials/images/SpecFit-logos_transparent.png | 10.61KB | 10.59KB | 0.17% |
public/partials/images/SpecFit-logos_black.png | 11.50KB | 11.48KB | 0.17% |
admin/css/upload.png | 3.15KB | 2.08KB | ▼ 34.10% |
admin/partials/images/SpecFit.png | 6.22KB | 3.54KB | ▼ 43.11% |