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.08MB] [CPU: ▼4.32ms] Passed 4 tests
An overview of server-side resources used by Image Gallery Horizontal
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.08 ▲2.48 |
Dashboard /wp-admin | 3.39 ▲0.05 | 46.31 ▼10.88 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 44.45 ▼3.54 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.56 ▲0.60 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.80 ▼3.45 |
Add New /wp-admin/post-new.php?post_type=master_gallery_image | 3.44 | 47.74 |
All Image /wp-admin/edit.php?post_type=master_gallery_image | 3.36 | 34.74 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_ighb_slider-category&post_type=master_gallery_image | 3.31 | 32.92 |
Gallery showcases /wp-admin/edit.php?post_type=master_gallery_image&page=responsive_gallery-hozizontal-bar-submenu-page | 3.28 | 31.76 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Image Gallery Horizontal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲184 | 14.04 ▼0.24 | 10.86 ▲9.13 | 42.33 ▲2.47 |
Dashboard /wp-admin | 2,241 ▲49 | 5.83 ▲0.91 | 101.11 ▼4.50 | 39.12 ▼7.65 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.03 ▲0.04 | 33.57 ▼1.65 | 32.89 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,565 ▲51 | 23.43 ▲5.69 | 655.73 ▼87.23 | 53.10 ▼8.47 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.25 ▲0.07 | 96.24 ▼0.07 | 42.05 ▼2.04 |
Add New /wp-admin/post-new.php?post_type=master_gallery_image | 2,329 | 7.66 | 169.15 | 64.70 |
All Image /wp-admin/edit.php?post_type=master_gallery_image | 1,108 | 1.96 | 30.40 | 30.63 |
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_ighb_slider-category&post_type=master_gallery_image | 1,283 | 2.14 | 25.90 | 28.04 |
Gallery showcases /wp-admin/edit.php?post_type=master_gallery_image&page=responsive_gallery-hozizontal-bar-submenu-page | 793 | 2.18 | 22.75 | 26.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% 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 50% 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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-gallery-horizontal/image-gallery-hozizontal.php:416
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-gallery-horizontal/ighb_gallery_admin_settings_center.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_post_thumbnail() in wp-content/plugins/image-gallery-horizontal/designs/design-1.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
image-gallery-horizontal/image-gallery-hozizontal.php 92% from 13 tests
The primary PHP file in "Image Gallery Horizontal" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("image-gallery-horizontal.php" instead of "image-gallery-hozizontal.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin5,271 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,339 | 804 | 4,736 |
PHP | 3 | 74 | 50 | 336 |
CSS | 2 | 22 | 17 | 199 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/t01.png | 1.58KB | 0.74KB | ▼ 53.49% |
css/d17.png | 5.38KB | 3.32KB | ▼ 38.24% |