Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.02MB] [CPU: ▼43.56ms] Passed 4 tests
Server-side resources used by Winsome Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▼0.52 | 9.25 ▼33.43 |
Dashboard /wp-admin | 3.00 ▼0.31 | 12.79 ▼33.55 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 18.49 ▼31.54 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 14.71 ▼75.71 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 15.40 ▼18.40 |
Youtube video /wp-admin/edit.php?post_type=utube-gallery | 3.00 | 12.12 |
Add New /wp-admin/post-new.php?post_type=image-gallery | 3.00 | 15.71 |
youtube category /wp-admin/edit-tags.php?taxonomy=utube-category&post_type=utube-gallery | 3.00 | 12.68 |
Images /wp-admin/edit.php?post_type=image-gallery | 3.00 | 14.23 |
Image category /wp-admin/edit-tags.php?taxonomy=image-category&post_type=image-gallery | 3.00 | 14.29 |
Add New /wp-admin/post-new.php?post_type=utube-gallery | 3.00 | 15.49 |
Server storage [IO: ▲2.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 211 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
gallery_option |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Winsome Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,012 ▲277 | 13.87 ▼0.45 | 6.11 ▲4.39 | 40.77 ▼4.99 |
Dashboard /wp-admin | 2,293 ▲108 | 4.92 ▼0.87 | 120.34 ▲21.78 | 44.23 ▲0.50 |
Posts /wp-admin/edit.php | 2,176 ▲84 | 2.13 ▲0.09 | 37.49 ▼5.54 | 29.64 ▼5.69 |
Add New Post /wp-admin/post-new.php | 6,358 ▲4,844 | 19.03 ▲1.50 | 1,042.87 ▲354.08 | 47.05 ▼8.14 |
Media Library /wp-admin/upload.php | 1,475 ▲87 | 4.27 ▲0.06 | 112.37 ▲1.36 | 47.33 ▲1.03 |
Youtube video /wp-admin/edit.php?post_type=utube-gallery | 1,160 | 2.08 | 37.43 | 30.51 |
Add New /wp-admin/post-new.php?post_type=image-gallery | 2,341 | 7.89 | 176.22 | 65.58 |
youtube category /wp-admin/edit-tags.php?taxonomy=utube-category&post_type=utube-gallery | 1,346 | 1.97 | 30.19 | 26.77 |
Images /wp-admin/edit.php?post_type=image-gallery | 1,154 | 2.08 | 34.31 | 28.07 |
Image category /wp-admin/edit-tags.php?taxonomy=image-category&post_type=image-gallery | 1,346 | 1.84 | 29.82 | 28.87 |
Add New /wp-admin/post-new.php?post_type=utube-gallery | 1,896 | 3.91 | 68.78 | 112.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/winsome-gallery/vafpress/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
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- gallery_option
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=utube-gallery
- > Deprecated in wp-content/plugins/winsome-gallery/vafpress/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
SRP 0% from 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/winsome-gallery/css/lightGallery.php
- 116× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/winsome-gallery/admin/option/option.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/winsome-gallery/vafpress/constant.php:11
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/winsome-gallery/vafpress/views/control/checkimage.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_FieldMulti' not found in wp-content/plugins/winsome-gallery/vafpress/classes/control/field/multiselect.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/winsome-gallery/vafpress/views/option/restore.php:4
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/winsome-gallery/vafpress/views/control/slider.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/winsome-gallery/vafpress/classes/control/fieldmulti.php:6
- > PHP Notice
Undefined variable: is_compact in wp-content/plugins/winsome-gallery/vafpress/views/control/wpeditor.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'VP_Control_Field' not found in wp-content/plugins/winsome-gallery/vafpress/classes/control/field/slider.php:3
- > 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/winsome-gallery/vafpress/config/dependencies.php on line 124
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=utube-gallery
- > Javascript (severe) in unknown
/wp-content/plugins/winsome-gallery/vafpress/public/js/vendor/jquery.tipsy.js?ver=1.0.0a 179:24 Uncaught TypeError: this[binder] is not a function
- > GET request to /wp-admin/post-new.php?post_type=utube-gallery
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: vp.init_ace_editor is not a function" "TypeError: vp.init_ace_editor is not a function\n at vp.init_controls (/wp-content/plugins/winsome-gallery/vafpress/public/js/shared.min.js?ver=1.1:1:18433)\n at HTMLDivElement.\u003Canonymous> (/wp-content/plugins/winsome-gallery/vafpress/public/js/metabox.min.js?ver=6.3.1:1:975)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:3129)\n at e.\u003Ccomputed>.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:1594)\n at e (/wp-content/plugins/winsome-gallery/vafpress/public/js/metabox.min.js?ver=6.3.1:1:915)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/winsome-gallery/vafpress/public/js/metabox.min.js?ver=6.3.1:1:2532)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=utube-gallery
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: vp.init_ace_editor is not a function
Optimizations
Plugin configuration 93% 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
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
winsome-gallery/plugin-main.php 92% from 13 tests
The main file in "Winsome Gallery" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("winsome-gallery.php" instead of "plugin-main.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin17,326 lines of code in 163 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 2,164 | 2,395 | 9,351 |
CSS | 16 | 182 | 198 | 3,925 |
JavaScript | 48 | 447 | 299 | 2,960 |
SVG | 4 | 0 | 0 | 1,000 |
Markdown | 2 | 31 | 0 | 89 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 102)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 21.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 271.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 102.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 4 | 7.14% |
▷ Concrete classes | 52 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 505 | |
▷ Static methods | 89 | 17.62% |
▷ Public methods | 472 | 93.47% |
▷ Protected methods | 19 | 3.76% |
▷ Private methods | 14 | 2.77% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 33 | 91.67% |
▷ Class constants | 3 | 8.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
22 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
vafpress/public/img/vp_shortcode_icon_sprite.png | 1.55KB | 0.42KB | ▼ 73.10% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vafpress/public/img/bootstrap-colorpicker/hue.png | 2.90KB | 0.50KB | ▼ 82.71% |
vafpress/public/css/vendor/jqueryui/themes/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |