Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.40MB] [CPU: ▼179.82ms] Passed 4 tests
An overview of server-side resources used by Galleries by Angie Makes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼0.73 | 6.78 ▼20.80 |
Dashboard /wp-admin | 2.26 ▼0.81 | 8.03 ▼45.43 |
Posts /wp-admin/edit.php | 2.26 ▼0.85 | 10.94 ▼25.98 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.18 | 10.92 ▼627.05 |
Media Library /wp-admin/upload.php | 2.26 ▼0.75 | 8.21 ▼18.91 |
Gallery /wp-admin/themes.php?page=wc-gallery | 2.26 | 8.22 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 79 new files
Database: no new tables, 41 new options
New WordPress options |
---|
wc_gallery_small_size_h |
wc_gallery_icon_size_h |
wc_gallery_big_enable |
wc_gallery_big_size_h |
wc_gallery_square_crop |
wc_gallery_small_enable |
wc_gallery_standard_enable |
wc_gallery_fixedheightsmall_enable |
wc_gallery_carousel_size_h |
wc_gallery_slider_enable |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Galleries by Angie Makes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲196 | 16.33 ▲0.28 | 8.98 ▲3.75 | 80.12 ▲5.35 |
Dashboard /wp-admin | 2,935 ▲40 | 6.12 ▼0.15 | 115.08 ▼17.26 | 166.79 ▼9.63 |
Posts /wp-admin/edit.php | 2,745 ▲5 | 3.23 ▼0.00 | 64.05 ▼1.34 | 139.53 ▼5.64 |
Add New Post /wp-admin/post-new.php | 3,749 ▲51 | 18.79 ▲1.05 | 455.62 ▲5.55 | 158.46 ▼9.20 |
Media Library /wp-admin/upload.php | 1,758 ▲6 | 5.53 ▲0.02 | 136.13 ▼3.03 | 189.47 ▼2.11 |
Gallery /wp-admin/themes.php?page=wc-gallery | 2,103 | 4.97 | 73.64 | 125.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wc-gallery/includes/functions.php+758
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 41 options in the database
- wc_gallery_carouselsmall_enable
- wc_gallery_carousel_enable
- wc_gallery_slider_size_h
- wc_gallery_carousel_size_w
- wc_gallery_current_version
- wc_gallery_fixedheight_size_w
- wc_gallery_fixedheightmedium_size_h
- wc_gallery_square_size_h
- wc_gallery_icon_enable
- wc_gallery_square_enable
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=wc-gallery
- > Notice in wp-content/plugins/wc-gallery/includes/functions.php+761
Trying to access array offset on value of type bool
- > GET request to /wp-admin/themes.php?page=wc-gallery
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=wc-gallery
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=wc-gallery
- > Deprecated in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/tabs.php+69
implode(): Passing glue string after array is deprecated. Swap the parameters
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
The following issues need your attention
- 5× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/custom-checkboxes.php
- > /wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/custom-dropdown.php
- > /wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/custom-radio.php
- > /wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/group.php
- > /wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/order-show-hide.php
- 58× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/custom-radio.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/group.php on line 3
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/image-field.php on line 13
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/textarea-field.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/positive-number-input-field.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/positive-pixel-input-field.php:9
- > PHP Notice
Undefined variable: selection in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/order-show-hide.php on line 2
- > PHP Notice
Undefined variable: option_name in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/custom-dropdown.php on line 10
- > PHP Notice
Undefined variable: val in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/settings/order-show-hide.php on line 10
- > PHP Notice
Undefined variable: args in wp-content/plugins/wc-gallery/includes/vendors/wpc-settings-framework/views/group.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
9 plugin tags: slider gallery, pinterest style gallery, pinterest gallery, carousel gallery, gallery slider...
wc-gallery/wc-gallery.php Passed 13 tests
This is the main PHP file of "Galleries by Angie Makes" version 1.67, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
91 characters long description:
Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected7,608 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 748 | 1,100 | 3,610 |
PHP | 29 | 374 | 388 | 2,391 |
CSS | 11 | 109 | 270 | 1,191 |
Markdown | 3 | 249 | 0 | 396 |
SVG | 2 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 218.00 |
▷ Minimum class complexity | 218.00 |
▷ Maximum class complexity | 218.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 1 | 1.79% |
▷ Public methods | 55 | 98.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.79% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vendors/flexslider/images/slide-arrow-right.png | 2.95KB | 0.14KB | ▼ 95.20% |
includes/vendors/flexslider/images/slide-arrow-left.png | 2.94KB | 0.14KB | ▼ 95.12% |
includes/vendors/flexslider/images/slide-arrows.png | 3.38KB | 0.20KB | ▼ 94.23% |
includes/vendors/owlcarousel/assets/slide-arrow-left.png | 2.94KB | 0.14KB | ▼ 95.12% |
includes/vendors/flexslider/images/bg_play_pause.png | 1.51KB | 0.52KB | ▼ 65.52% |