Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼7.60ms] Passed 4 tests
Server-side resources used by JewelFit-Virtual Jewellery Try On Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.67 ▲0.50 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.82 ▼1.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.78 ▲1.42 |
Add New Post /wp-admin/post-new.php | 5.15 ▼0.74 | 61.19 ▼29.98 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 34.29 ▲0.21 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
JewelFit-Virtual Jewellery Try On Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲249 | 14.59 ▲0.21 | 10.92 ▲9.10 | 48.72 ▲4.20 |
Dashboard /wp-admin | 2,223 ▲38 | 5.79 ▼0.04 | 106.60 ▲4.52 | 40.34 ▼0.81 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.25 ▲0.24 | 39.95 ▲3.95 | 33.71 ▼1.00 |
Add New Post /wp-admin/post-new.php | 6,335 ▲4,802 | 22.19 ▼1.07 | 842.60 ▲177.39 | 67.69 ▲16.05 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.25 ▼0.02 | 96.79 ▲2.16 | 44.49 ▲3.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/jewelfit-virtual-jewellery-try-on/public/partials/virtual-jewellery-try-on-public-display.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/jewelfit-virtual-jewellery-try-on/public/partials/virtual-jewellery-try-on-public-display.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/jewelfit-virtual-jewellery-try-on/admin/partials/virtual-jewellery-try-on-admin-display.php:40
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/jewelfit-virtual-jewellery-try-on/public/partials/virtual-jewellery-try-on-public-display.php on line 14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/jewelfit-virtual-jewellery-try-on/public/partials/virtual-jewellery-try-on-public-display.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires php: Version not formatted correctly
- Screenshots: Add images for these screenshots: #1 (Set Try On Image), #2 (Try On pop up)
jewelfit-virtual-jewellery-try-on/virtual-jewellery-try-on.php 85% from 13 tests
Analyzing the main PHP file in "JewelFit-Virtual Jewellery Try On Woocommerce" version 2.0.7
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("jewelfit-virtual-jewellery-try-on.php" instead of "virtual-jewellery-try-on.php")
- 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 Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin5,802 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 466 | 269 | 2,927 |
CSS | 7 | 70 | 76 | 2,425 |
PHP | 12 | 203 | 546 | 436 |
SVG | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.45MB with 0.39MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) public/images/female.png | 216.90KB | 0.00KB | ▼ 100.00% |
(invalid) public/partials/images/female.png | 216.90KB | 0.00KB | ▼ 100.00% |
admin/partials/images/jewelfit_plans.png | 31.53KB | 13.89KB | ▼ 55.94% |