Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼152.96ms] Passed 4 tests
Server-side resources used by Simple Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.19 | 21.09 ▼14.81 |
Dashboard /wp-admin | 3.22 ▲0.16 | 29.24 ▼10.89 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 33.34 ▼7.79 |
Add New Post /wp-admin/post-new.php | 5.35 ▼0.09 | 76.72 ▼576.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.24 | 25.11 ▼9.80 |
Gallery Settings /wp-admin/admin.php?page=duogallery-settings | 3.21 | 24.87 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 3.21 | 27.06 |
Add New Gallery /wp-admin/post-new.php?post_type=gallery | 3.33 | 39.74 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 3.21 | 32.67 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 3.21 | 28.53 |
All Galleries /wp-admin/edit.php?post_type=gallery | 3.26 | 30.18 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 173 new files
Database: no new tables, 1 new option
New WordPress options |
---|
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Image Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,129 ▲533 | 18.29 ▲2.66 | 15.75 ▲5.32 | 48.39 ▲0.19 |
Dashboard /wp-admin | 3,280 ▲349 | 8.38 ▲2.45 | 163.38 ▲21.22 | 111.25 ▲0.75 |
Posts /wp-admin/edit.php | 3,081 ▲342 | 4.46 ▲1.76 | 86.14 ▲16.98 | 86.98 ▼9.42 |
Add New Post /wp-admin/post-new.php | 2,347 ▲732 | 24.99 ▲3.12 | 355.40 ▲80.42 | 101.63 ▼0.83 |
Media Library /wp-admin/upload.php | 1,923 ▲113 | 4.97 ▼0.07 | 116.37 ▼35.15 | 115.44 ▼6.93 |
Gallery Settings /wp-admin/admin.php?page=duogallery-settings | 2,229 | 8.82 | 167.55 | 130.05 |
Licenses /wp-admin/admin.php?page=duogeek-pro-licenses | 1,356 | 3.81 | 74.10 | 59.04 |
Add New Gallery /wp-admin/post-new.php?post_type=gallery | 2,366 | 4.84 | 106.35 | 94.51 |
Help /wp-admin/admin.php?page=duogeek-panel-help | 1,481 | 4.05 | 75.74 | 85.57 |
DuoGeek /wp-admin/admin.php?page=duogeek-panel | 1,056 | 2.27 | 35.40 | 71.19 |
All Galleries /wp-admin/edit.php?post_type=gallery | 1,772 | 4.35 | 85.75 | 76.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 1 option in the database
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=gallery
- > Notice in wp-content/plugins/simple-responsive-image-gallery/duogeek/duogeek-panel.php+147
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=duogeek-panel
- > Error in wp-content/plugins/simple-responsive-image-gallery/duogeek/duogeek-panel.php+413
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/simple-responsive-image-gallery/duogeek/duogeek-panel.php:413
Stack trace:
#0 wp-includes/class-wp-hook.php(303): DuoGeekPlugins->duogeek_panel_cb()
#1 wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(470): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
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
The following issues need your attention
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-responsive-image-gallery/duogeek/helper.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-responsive-image-gallery/duogeek/duogeek-panel.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-responsive-image-gallery/simple-image-gallery.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/simple-responsive-image-gallery/duogeek/class.customPostType.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: photo, awesome, easy, beautiful, wordpress...
simple-responsive-image-gallery/simple-image-gallery.php 92% from 13 tests
"Simple Image Gallery" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-responsive-image-gallery.php" instead of "simple-image-gallery.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
No dangerous file extensions were detected17,721 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 58 | 862 | 303 | 9,849 |
JavaScript | 9 | 731 | 1,035 | 3,379 |
Sass | 13 | 26 | 24 | 1,352 |
LESS | 13 | 26 | 33 | 1,343 |
PHP | 4 | 270 | 62 | 1,232 |
SVG | 2 | 0 | 0 | 566 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 5 | 11.90% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
67 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
duogeek/inc/icheck/skins/flat/flat.png | 1.48KB | 1.66KB | 0.00% |
duogeek/inc/icheck/skins/futurico/futurico.png | 1.69KB | 1.61KB | ▼ 5.07% |
duogeek/inc/icheck/skins/minimal/green@2x.png | 1.38KB | 2.66KB | 0.00% |
duogeek/inc/icheck/skins/square/orange.png | 2.13KB | 1.83KB | ▼ 14.26% |
duogeek/inc/icheck/skins/line/line.png | 0.57KB | 0.79KB | 0.00% |