Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.59MB] [CPU: ▼4.25ms] Passed 4 tests
A check of server-side resources used by WordPress Photo Gallery - Image Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.66 | 43.21 ▲5.78 |
Dashboard /wp-admin | 4.27 ▲0.96 | 51.97 ▲8.01 |
Posts /wp-admin/edit.php | 4.30 ▲0.94 | 52.73 ▲4.92 |
Add New Post /wp-admin/post-new.php | 5.77 ▼0.12 | 56.88 ▼35.69 |
Media Library /wp-admin/upload.php | 4.13 ▲0.89 | 44.96 ▲10.30 |
Albums (PRO) /wp-admin/admin.php?page=galleries_ux_albums | 4.12 | 43.53 |
Lightbox Settings /wp-admin/admin.php?page=Options_gallery_lightbox_styles | 4.37 | 44.43 |
Template Settings /wp-admin/admin.php?page=Options_gallery_styles | 6.02 | 61.54 |
Galleries /wp-admin/admin.php?page=galleries_uxgallery | 4.20 | 48.87 |
Server storage [IO: ▲3.75MB] [DB: ▲0.04MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 273 new files
Database: 6 new tables, 543 new options
New tables |
---|
wp_ux_gallery_like_dislike |
wp_ux_gallery_gallerys |
wp_ux_gallery_categories |
wp_ux_gallery_albums |
wp_ux_gallery_images |
wp_ux_gallery_album_has_gallery |
New WordPress options |
---|
uxgallery_light_box_top |
uxgallery_ht_view5_linkbutton_font_size |
uxgallery_album_popup_blur_text_color |
uxgallery_ht_view8_element_animation_speed |
uxgallery_ht_blog_likedislike_bg_trans |
uxgallery_lightbox_pinterestButton |
uxgallery_image_natural_size_thumbnail |
uxgallery_ht_album_show_sharing_buttons |
uxgallery_thumb_title_font_size |
uxgallery_ht_album_mosaic_image_border_radius |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Photo Gallery - Image Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲188 | 13.32 ▼0.99 | 1.61 ▼0.42 | 39.53 ▲0.35 |
Dashboard /wp-admin | 2,340 ▲148 | 5.90 ▲0.95 | 95.90 ▼7.94 | 71.31 ▲27.63 |
Posts /wp-admin/edit.php | 2,227 ▲138 | 2.02 ▼0.01 | 36.38 ▲0.56 | 37.13 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6,482 ▲4,935 | 27.90 ▲9.60 | 953.66 ▲300.86 | 40.25 ▼16.42 |
Media Library /wp-admin/upload.php | 1,523 ▲135 | 4.20 ▼0.02 | 106.11 ▼3.54 | 48.02 ▲3.39 |
Albums (PRO) /wp-admin/admin.php?page=galleries_ux_albums | 1,192 | 3.77 | 61.40 | 37.30 |
Lightbox Settings /wp-admin/admin.php?page=Options_gallery_lightbox_styles | 2,933 | 3.96 | 62.62 | 81.77 |
Template Settings /wp-admin/admin.php?page=Options_gallery_styles | 7,108 | 4.97 | 90.81 | 133.64 |
Galleries /wp-admin/admin.php?page=galleries_uxgallery | 1,274 | 3.49 | 51.61 | 62.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% 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
- Zombie tables detected upon uninstall: 6 tables
- wp_ux_gallery_albums
- wp_ux_gallery_like_dislike
- wp_ux_gallery_album_has_gallery
- wp_ux_gallery_gallerys
- wp_ux_gallery_images
- wp_ux_gallery_categories
- This plugin did not uninstall successfully, leaving 543 options in the database
- uxgallery_ht_album_popup_mosaic_image_margin_right_in_px
- uxgallery_light_box_opacity
- uxgallery_album_lightbox_category_style
- uxgallery_lightbox_lightboxView
- can_compress_scripts
- uxgallery_ht_album_popup_image_scale_opacity
- uxgallery_thumb_box_has_background
- uxgallery_lightbox_overlayClose_new
- uxgallery_video_ht_view1_loadmore_text
- uxgallery_album_thumbnail_bottom_text_color
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/photo-image-gallery/templates/front-end/view/content-slider/content-slider-view.php
- > /wp-content/plugins/photo-image-gallery/templates/front-end/view/album/album-general.css.php
- > /wp-content/plugins/photo-image-gallery/templates/admin/gallery-images-list-html.php
- > /wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php
- 278× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 251
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 323
- > PHP Notice
Undefined variable: like_dislike in wp-content/plugins/photo-image-gallery/templates/front-end/view/justified/justified-view.php on line 4
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 214
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/content-popup/content-popup-view.css.php on line 3
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 515
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 502
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 481
- > PHP Notice
Undefined variable: galleryID in wp-content/plugins/photo-image-gallery/templates/front-end/view/slider/slider-view.php on line 215
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/photo-image-gallery/templates/front-end/view/content-slider/content-slider-view.php on line 10
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: album gallery, gallery, wordpress gallery, image gallery, photo gallery
photo-image-gallery/ux-gallery.php 77% from 13 tests
The entry point to "WordPress Photo Gallery - Image Gallery" version 2.0.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("photo-image-gallery.php" instead of "ux-gallery.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: The description should be shorter than 140 characters (currently 148 characters long)
Code Analysis Passed 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
No dangerous file extensions were detected42,085 lines of code in 143 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,609 | 961 | 21,319 |
JavaScript | 38 | 1,817 | 791 | 9,493 |
CSS | 20 | 878 | 459 | 6,192 |
SVG | 1 | 1 | 0 | 2,569 |
Sass | 13 | 23 | 24 | 1,256 |
LESS | 13 | 23 | 33 | 1,247 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 35.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 7.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 96 | |
▷ Static methods | 17 | 17.71% |
▷ Public methods | 81 | 84.38% |
▷ Protected methods | 8 | 8.33% |
▷ Private methods | 7 | 7.29% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
94 PNG files occupy 0.58MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/admin_images/right.png | 1.25KB | 0.36KB | ▼ 71.23% |
assets/images/admin_images/gradient.black.to.white.png | 0.96KB | 0.21KB | ▼ 78.39% |
assets/images/admin_images/gallery-active.png | 1.38KB | 0.42KB | ▼ 69.92% |
assets/images/admin_images/post.button.png | 0.45KB | 0.62KB | 0.00% |
assets/images/admin_images/duble.png | 1.17KB | 0.14KB | ▼ 87.95% |