Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.44MB] [CPU: ▼3.82ms] Passed 4 tests
An overview of server-side resources used by MaxGalleria
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 37.25 ▼2.08 |
Dashboard /wp-admin | 3.74 ▲0.44 | 44.87 ▼4.73 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 51.12 ▲0.95 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 89.70 ▼9.42 |
Media Library /wp-admin/upload.php | 3.66 ▲0.44 | 39.80 ▲4.60 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=maxgallery | 3.66 | 34.32 |
MaxGalleria /wp-admin/edit.php?post_type=maxgallery | 3.76 | 42.28 |
Support /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-support | 3.72 | 37.75 |
/wp-admin/admin.php?page=mg-review-notice | 3.60 | 35.62 |
NextGEN Importer /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-nextgen-importer | 3.72 | 44.64 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=maxgallery | 3.66 | 41.51 |
/wp-admin/admin.php?page=mg-admin-notice | 3.60 | 34.82 |
Settings /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-settings | 3.75 | 41.17 |
/wp-admin/admin.php?page=mg-review-later | 3.60 | 31.70 |
Upgrade to Pro /wp-admin/edit.php?post_type=maxgallery&page=mg-upgrade-to-pro | 3.76 | 36.23 |
Server storage [IO: ▲6.94MB] [DB: ▲0.00MB] 67% from 3 tests
A short overview of filesystem and database impact
Please try to fix the following items
- You have illegally modified 1 file (0.57KB) outside of "wp-content/plugins/maxgalleria/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/single-maxgallery.php
Filesystem: 372 new files
Database: no new tables, 11 new options
New WordPress options |
---|
mg_hide_presets |
can_compress_scripts |
db_upgraded |
maxgalleria_version |
widget_recent-posts |
widget_theysaidso_widget |
category_children |
widget_maxgalleria-gallery-thumb-widget |
widget_maxgalleria-gallery-widget |
widget_recent-comments |
... |
Browser metrics 75% from 4 tests
A check of browser resources used by MaxGalleria
Please improve the following
- Nodes: Try to keep the DOM nodes under 25,000 (currently 69,139 on /wp-admin/admin.php?page=mg-review-notice)
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲121 | 13.25 ▼1.12 | 5.43 ▲3.42 | 41.15 ▼2.26 |
Dashboard /wp-admin | 2,259 ▲68 | 5.84 ▲0.97 | 108.47 ▲1.73 | 86.18 ▲37.30 |
Posts /wp-admin/edit.php | 2,145 ▲53 | 2.01 ▲0.02 | 37.35 ▼2.23 | 33.13 ▼2.97 |
Add New Post /wp-admin/post-new.php | 6,726 ▲5,189 | 23.94 ▲0.91 | 1,007.90 ▲391.92 | 38.55 ▼21.73 |
Media Library /wp-admin/upload.php | 1,441 ▲50 | 4.19 ▼0.07 | 103.33 ▲0.45 | 44.57 ▲0.84 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=maxgallery | 1,363 | 2.14 | 29.13 | 33.54 |
MaxGalleria /wp-admin/edit.php?post_type=maxgallery | 1,768 | 5.49 | 140.09 | 134.38 |
Support /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-support | 1,157 | 3.21 | 42.38 | 94.58 |
/wp-admin/admin.php?page=mg-review-notice | 69,139 | 73.81 | 623.66 | 318.86 |
NextGEN Importer /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-nextgen-importer | 1,145 | 3.27 | 40.89 | 66.20 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=maxgallery | 1,493 | 2.14 | 26.60 | 34.20 |
/wp-admin/admin.php?page=mg-admin-notice | 69,119 | 73.82 | 439.62 | 273.57 |
Settings /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-settings | 1,331 | 3.29 | 42.83 | 94.51 |
/wp-admin/admin.php?page=mg-review-later | 69,114 | 74.10 | 428.54 | 266.23 |
Upgrade to Pro /wp-admin/edit.php?post_type=maxgallery&page=mg-upgrade-to-pro | 1,746 | 3.32 | 48.41 | 164.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 10 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_maxgalleria-gallery-widget
- db_upgraded
- widget_recent-posts
- mg_hide_presets
- can_compress_scripts
- widget_maxgalleria-gallery-thumb-widget
- category_children
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mg-review-later
- > Notice in wp-content/plugins/maxgalleria/maxgalleria-admin.php+111
Undefined index: HTTP_REFERER
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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/maxgalleria/maxgalleria-media-button.php
- 37× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/maxgalleria/admin/support.php:5
- > PHP Notice
Trying to get property 'settings' of non-object in wp-content/plugins/maxgalleria/admin/settings.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'MAXGALLERIA_PLUGIN_DIR/maxgallery-options.php' (include_path='.:/usr/share/php') in wp-content/plugins/maxgalleria/addons/templates/image-tiles/image-tiles-options.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/maxgalleria/meta/meta-images.php:11
- > PHP Fatal error
Uncaught Error: Class 'MaxGalleriaImageTilesOptions' not found in wp-content/plugins/maxgalleria/addons/templates/image-tiles/image-tiles-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/maxgalleria/meta/meta-options.php:1
- > PHP Fatal error
Uncaught Error: Class 'MaxGalleriaVideoTilesOptions' not found in wp-content/plugins/maxgalleria/addons/templates/video-tiles/video-tiles-meta.php:3
- > PHP Warning
require_once(MAXGALLERIA_PLUGIN_DIR/maxgallery-options.php): failed to open stream: No such file or directory in wp-content/plugins/maxgalleria/addons/templates/video-tiles/video-tiles-options.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'MaxGalleriaYoutubeOptions' not found in wp-content/plugins/maxgalleria/addons/media-sources/youtube/youtube-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'MaxGalleryOptions' not found in wp-content/plugins/maxgalleria/meta/meta-advanced.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=mg-review-notice
- > Javascript (warning) in unknown
/wp-admin/admin.php?page=mg-review-notice 51 Throttling navigation to prevent the browser from hanging. See https://crbug.com/1038223. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection
- > GET request to /wp-admin/admin.php?page=mg-admin-notice
- > Javascript (warning) in unknown
/wp-admin/admin.php?page=mg-admin-notice 51 Throttling navigation to prevent the browser from hanging. See https://crbug.com/1038223. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection
- > GET request to /wp-admin/edit.php?post_type=maxgallery&page=maxgalleria-settings
- > Network (severe)
wp-content/plugins/maxgalleria/images/maxgalleria-icon-32.png%20alt=MaxGalleria - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=mg-review-later
- > Javascript (warning) in unknown
/wp-admin/admin.php?page=mg-review-later 51 Throttling navigation to prevent the browser from hanging. See https://crbug.com/1038223. Command line switch --disable-ipc-flooding-protection can be used to bypass the protection
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in maxgalleria/assets to your readme.txt
maxgalleria/maxgalleria.php Passed 13 tests
"MaxGalleria" version 6.3.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
35 characters long description:
The gallery platform for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin52,026 lines of code in 189 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 95 | 5,941 | 474 | 22,038 |
PHP | 43 | 2,446 | 484 | 13,386 |
Sass | 19 | 551 | 71 | 6,314 |
LESS | 18 | 548 | 71 | 6,244 |
PO File | 2 | 913 | 1,742 | 2,248 |
JavaScript | 11 | 194 | 128 | 1,722 |
JSON | 1 | 0 | 0 | 74 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 59.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 452 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 442 | 97.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 2.21% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 177 | |
▷ Global constants | 177 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
147 PNG files occupy 2.56MB with 1.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/templates/slick-slider-1.png | 2.91KB | 2.30KB | ▼ 20.93% |
images/addons/masonry-cover.png | 25.85KB | 9.30KB | ▼ 64.00% |
images/templates/instagram-1.png | 3.36KB | 2.23KB | ▼ 33.83% |
images/options-icons/shadow-spread-1.png | 19.35KB | 0.52KB | ▼ 97.33% |
images/addons/get-mg-addons.png | 6.19KB | 3.48KB | ▼ 43.80% |