Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.46MB] [CPU: ▼41.48ms] Passed 4 tests
An overview of server-side resources used by Ultimate Product Gallery for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 17.89 ▼20.61 |
Dashboard /wp-admin | 3.57 ▲0.22 | 21.46 ▼39.20 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 21.01 ▼25.30 |
Add New Post /wp-admin/post-new.php | 3.57 ▼2.32 | 19.15 ▼80.80 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 18.53 ▼15.14 |
Server storage [IO: ▲5.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 245 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
upgfw_option |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate Product Gallery for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.75 ▼0.54 | 13.03 ▲11.23 | 46.85 ▲1.90 |
Dashboard /wp-admin | 2,222 ▲37 | 4.90 ▲0.03 | 102.55 ▼1.54 | 40.37 ▲1.74 |
Posts /wp-admin/edit.php | 2,105 ▲13 | 2.05 ▲0.04 | 43.98 ▲4.56 | 35.01 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,556 ▲37 | 23.31 ▲0.15 | 611.02 ▼57.87 | 54.12 ▼6.72 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.22 ▼0.08 | 98.02 ▼4.77 | 42.19 ▼2.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/includes/wpalchemy/MetaBox.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; WPAlchemy_MetaBox has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- upgfw_option
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ultimate-product-gallery-for-woocommerce/ultimate-product-gallery-for-woocommerce.php
- 115× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: type in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/views/control/notebox.php on line 4
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/views/control/toggle.php on line 1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/config/dependencies.php on line 176
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/views/control/color.php:1
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/views/control/upload.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_View' not found in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/views/control/checkimage.php:1
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/config/dependencies.php on line 72
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/config/dependencies.php on line 160
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/classes/control/fieldmultiimage.php:6
- > PHP Warning
Use of undefined constant VP_PUBLIC_URL - assumed 'VP_PUBLIC_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-product-gallery-for-woocommerce/vafpress-framework/config/dependencies.php on line 94
- > PHP Notice
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Popup lightbox gallery + default scrollbar theme), #2 (Video sample + minimal scrollbar without arrows), #3 (Lightbox lens zoom + other scrollbar theme), #4 (Fullscreen zooming), #5 (Single product page image zoom)
ultimate-product-gallery-for-woocommerce/ultimate-product-gallery-for-woocommerce.php Passed 13 tests
The principal PHP file in "Ultimate Product Gallery for WooCommerce" v. 1.0.1 is loaded by WordPress automatically on each request
34 characters long description:
WooCommerce Product Gallery Plugin
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin21,132 lines of code in 188 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 96 | 2,152 | 2,316 | 9,906 |
JavaScript | 58 | 1,222 | 1,253 | 6,759 |
CSS | 28 | 253 | 200 | 3,888 |
SVG | 3 | 0 | 2 | 489 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 21.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 4 | 7.02% |
▷ Concrete classes | 53 | 92.98% |
▷ Final classes | 0 | 0.00% |
Methods | 518 | |
▷ Static methods | 89 | 17.18% |
▷ Public methods | 485 | 93.63% |
▷ Protected methods | 19 | 3.67% |
▷ Private methods | 14 | 2.70% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 36 | 92.31% |
▷ Class constants | 3 | 7.69% |
▷ Public constants | 3 | 100.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 2.51MB with 0.78MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vafpress-framework/public/img/bootstrap-colorpicker/alpha.png | 3.19KB | 1.68KB | ▼ 47.45% |
assets/images/pan-zoom/zoomIn.png | 5.37KB | 2.82KB | ▼ 47.41% |
vafpress-framework/public/img/vp-sprite.png | 12.79KB | 4.90KB | ▼ 61.71% |
vafpress-framework/public/img/select2/select2.png | 0.60KB | 0.99KB | 0.00% |
vafpress-framework/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |