Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲6.40MB] [CPU: ▲43.63ms] 75% from 4 tests
This is a short check of server-side resources used by Unite Gallery Lite
Please take the time to fix the following items
- Extra RAM: Extra memory usage should kept under 5MB (currently 6.40MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.79 ▲6.32 | 81.87 ▲40.86 |
Dashboard /wp-admin | 9.73 ▲6.43 | 88.47 ▲40.03 |
Posts /wp-admin/edit.php | 9.85 ▲6.49 | 88.57 ▲41.67 |
Add New Post /wp-admin/post-new.php | 12.32 ▲6.43 | 143.18 ▲51.94 |
Media Library /wp-admin/upload.php | 9.66 ▲6.43 | 90.12 ▲57.08 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.90 | 73.89 |
Server storage [IO: ▲7.36MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 717 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_unitegallery_items |
wp_unitegallery_categories |
wp_unitegallery_galleries |
New WordPress options |
---|
fs_debug_mode |
widget_theysaidso_widget |
widget_unitegallery-widget |
fs_active_plugins |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
fs_accounts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Unite Gallery Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.58 ▲0.17 | 1.63 ▲0.01 | 31.77 ▼10.04 |
Dashboard /wp-admin | 2,228 ▲57 | 5.52 ▼0.13 | 82.77 ▼8.32 | 40.23 ▲1.06 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 1.99 ▼0.04 | 36.79 ▼2.38 | 35.83 ▲1.77 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 24.43 ▲1.23 | 711.77 ▲74.59 | 60.45 ▲3.14 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.19 ▼0.02 | 100.08 ▼0.19 | 44.12 ▲2.53 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,088 | 1.67 | 24.06 | 27.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/unite-gallery-lite/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_unitegallery_galleries
- wp_unitegallery_categories
- wp_unitegallery_items
- The uninstall procedure has failed, leaving 10 options in the database
- fs_active_plugins
- widget_unitegallery-widget
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- fs_accounts
- widget_recent-posts
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 | 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
- 151× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/unite-gallery-lite/galleries/ugcore_tilescolumns/client_output.php
- > /wp-content/plugins/unite-gallery-lite/unitegallery_admin.php
- > /wp-content/plugins/unite-gallery-lite/inc_php/unitegallery_gallery_type.class.php
- > /wp-content/plugins/unite-gallery-lite/views/preview.php
- > /wp-content/plugins/unite-gallery-lite/galleries/ugcore_compact/client_output.php
- > /wp-content/plugins/unite-gallery-lite/galleries/ugcore_tilesgrid/views/preview.php
- > /wp-content/plugins/unite-gallery-lite/helpers/settings/slider_textpanel.php
- > /wp-content/plugins/unite-gallery-lite/views/system/video_dialog.php
- > /wp-content/plugins/unite-gallery-lite/galleries/ugcore_tilesgrid/settings/gallery_settings.php
- > /wp-content/plugins/unite-gallery-lite/galleries/ugcore_grid/scripts.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'UniteGalleryManager' not found in wp-content/plugins/unite-gallery-lite/inc_php/unitegallery_manager_main.class.php:9
- > PHP Fatal error
Uncaught Error: Class 'UniteGalleryManager' not found in wp-content/plugins/unite-gallery-lite/inc_php/unitegallery_manager_inline.class.php:9
- > PHP Fatal error
Uncaught Error: Class 'GlobalsUGGallery' not found in wp-content/plugins/unite-gallery-lite/views/items.php:3
- > PHP Notice
Undefined variable: currentFolder in wp-content/plugins/unite-gallery-lite/inc_php/framework/provider/provider_main_file.php on line 3
- > PHP Warning
require_once(/inc_php/framework/provider/unitegallery_widget.class.php): failed to open stream: No such file or directory in wp-content/plugins/unite-gallery-lite/inc_php/framework/provider/provider_main_file.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'UniteGallerySettingsUG' not found in wp-content/plugins/unite-gallery-lite/helpers/settings/position.php:2
- > PHP Fatal error
require_once(): Failed opening required '/inc_php/framework/provider/unitegallery_widget.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/unite-gallery-lite/inc_php/framework/provider/provider_main_file.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/unite-gallery-lite/galleries/ugcore_video/views/settings_before_draw.php:8
- > PHP Fatal error
Uncaught Error: Class 'UniteGallerySettingsUG' not found in wp-content/plugins/unite-gallery-lite/helpers/settings/position_tiles.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/unite-gallery-lite/inc_php/framework/provider/unitegallery_widget.class.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 118 tag instead of maximum 10
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== unite-gallery-lite ===
)
unite-gallery-lite/unitegallery.php 92% from 13 tests
The principal PHP file in "Unite Gallery Lite" v. 1.7.62 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 ("unite-gallery-lite.php" instead of "unitegallery.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected92,551 lines of code in 423 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 272 | 15,927 | 21,671 | 48,965 |
JavaScript | 58 | 14,659 | 7,813 | 34,650 |
CSS | 37 | 1,133 | 245 | 5,187 |
XML | 43 | 864 | 17 | 3,266 |
SVG | 10 | 0 | 0 | 263 |
Markdown | 1 | 68 | 0 | 214 |
INI | 2 | 2 | 2 | 6 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 62.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 96.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 2 | 1.87% |
▷ Concrete classes | 105 | 98.13% |
▷ Final classes | 0 | 0.00% |
Methods | 2,306 | |
▷ Static methods | 494 | 21.42% |
▷ Public methods | 1,524 | 66.09% |
▷ Protected methods | 231 | 10.02% |
▷ Private methods | 551 | 23.89% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 380 | |
▷ Global constants | 100 | 26.32% |
▷ Class constants | 280 | 73.68% |
▷ Public constants | 280 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
137 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
unitegallery-plugin/themes/default/images/arrows_strip_right.png | 0.19KB | 0.12KB | ▼ 37.19% |
unitegallery-plugin/skins/default/arrow_grid_down.png | 0.45KB | 0.24KB | ▼ 46.77% |
unitegallery-plugin/images/cover-grid.png | 0.91KB | 0.10KB | ▼ 89.28% |
unitegallery-plugin/images/icon-play32.png | 0.67KB | 0.63KB | ▼ 6.83% |
unitegallery-plugin/skins/default/tile_button_right.png | 0.61KB | 0.48KB | ▼ 20.97% |