Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼260.80ms] Passed 4 tests
An overview of server-side resources used by WP Fancy Gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 42.15 ▲21.51 |
Dashboard /wp-admin | 3.20 ▲0.14 | 48.17 ▲7.47 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 44.85 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 89.18 ▼1,050.11 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 33.73 ▼3.19 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: 2 new tables, no new options
New tables |
---|
wp_wpfancygallery_hu_fancy_images |
wp_wpfancygallery_hu_fancy_gallery |
Browser metrics Passed 4 tests
WP Fancy Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,894 ▲288 | 17.63 ▲2.10 | 12.49 ▲4.15 | 59.02 ▲12.80 |
Dashboard /wp-admin | 3,162 ▲312 | 7.98 ▲2.14 | 158.36 ▲19.36 | 88.65 ▼8.47 |
Posts /wp-admin/edit.php | 2,967 ▲261 | 4.35 ▲1.65 | 82.54 ▲13.29 | 71.99 ▼18.98 |
Add New Post /wp-admin/post-new.php | 1,606 ▼47 | 18.91 ▲0.10 | 359.59 ▼27.09 | 137.03 ▲32.91 |
Media Library /wp-admin/upload.php | 1,811 ▲39 | 4.87 ▼0.13 | 118.36 ▼36.31 | 120.10 ▲6.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method WpFancyGallery\inc\WpFancyGalleryManagerGallery::dropTables() should not be called statically
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/finish_wrap_item.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/start_wrap_item.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/finish_wrap_items.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/front/item_image.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/nav_menu_start_wrap.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/start_wrap_items.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/nav_menu_list.php
- > /wp-content/plugins/wp-fancy-gallery/inc/templates/admin/nav_menu_finish_wrap.php
- 68× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/nav_menu_list.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WpFancyGallery\\inc\\Controllers\\WpFancyGalleryController' not found in wp-content/plugins/wp-fancy-gallery/inc/Controllers/WpFancyGalleryShortcodeGalleryController.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php on line 28
- > PHP Warning
Use of undefined constant WPFANCYGALLERY_GALLERY_ASSETS_ADMIN_IMAGES_URL - assumed 'WPFANCYGALLERY_GALLERY_ASSETS_ADMIN_IMAGES_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-fancy-gallery/inc/templates/front/item_image.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WpFancyGallery\\inc\\Controllers\\WpFancyGalleryAdminGalleryTemplateController' not found in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/admin_settings.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php on line 5
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php on line 33
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php on line 13
- > PHP Notice
Undefined variable: data in wp-content/plugins/wp-fancy-gallery/inc/templates/admin/item_gallery.php on line 20
- > PHP Notice
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 86% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #1 is missing in wp-fancy-gallery/assets to your readme.txt
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Contributors: The plugin contributors field is not present
wp-fancy-gallery/index.php 92% from 13 tests
This is the main PHP file of "WP Fancy Gallery" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-fancy-gallery.php" instead of "index.php")
Code Analysis Passed 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 plugin2,968 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 528 | 198 | 2,020 |
PHP | 24 | 116 | 65 | 565 |
CSS | 7 | 68 | 23 | 383 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 82.61% |
▷ Protected methods | 3 | 6.52% |
▷ Private methods | 5 | 10.87% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
20 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/assets/frontend/css/fancybox/fancy_shadow_sw.png | 0.33KB | 0.48KB | 0.00% |
inc/assets/frontend/css/fancybox/fancybox.png | 14.93KB | 8.47KB | ▼ 43.29% |
inc/assets/frontend/css/fancybox/fancy_shadow_n.png | 0.10KB | 0.19KB | 0.00% |
inc/assets/frontend/css/fancybox/fancy_title_over.png | 0.07KB | 0.09KB | 0.00% |
inc/assets/frontend/css/fancybox/fancy_title_right.png | 0.49KB | 0.82KB | 0.00% |