Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▲8.11ms] Passed 4 tests
A check of server-side resources used by WordPress Photo Gallery by Gallery Master
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 38.82 ▼2.36 |
Dashboard /wp-admin | 4.14 ▲0.83 | 57.56 ▲11.17 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 61.44 ▲13.87 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 99.21 ▲9.77 |
Media Library /wp-admin/upload.php | 4.14 ▲0.91 | 45.19 ▲14.26 |
/wp-admin/admin.php?page=gm_foo_box_free_edition | 4.33 | 43.73 |
/wp-admin/admin.php?page=gm_masonry_layout | 4.33 | 46.07 |
/wp-admin/admin.php?page=gm_advertisement | 4.33 | 42.26 |
/wp-admin/admin.php?page=gm_order_by_settings | 4.33 | 43.56 |
Other Settings /wp-admin/admin.php?page=gm_other_settings | 4.33 | 43.55 |
/wp-admin/admin.php?page=gm_add_tag | 4.33 | 42.72 |
/wp-admin/admin.php?page=gm_global_options | 4.33 | 40.88 |
/wp-admin/admin.php?page=gm_search_box_settings | 4.33 | 44.92 |
Shortcodes /wp-admin/admin.php?page=gm_shortcodes | 4.33 | 40.51 |
/wp-admin/admin.php?page=gm_sort_galleries | 4.33 | 44.44 |
Server storage [IO: ▲4.02MB] [DB: ▲0.05MB] 67% from 3 tests
Input-output and database impact of this plugin
Just a few items left to fix
- You have illegally modified 80 files (3,239.31KB) outside of "wp-content/plugins/gallery-master/" and "wp-content/uploads/"
- (new file) wp-content/gallery-master/original-images/bg-app.jpg
- (new file) wp-content/gallery-master/original-images/bg-app-3.jpg
- (new file) wp-content/gallery-master/original-images/after-1.jpg
- (new file) wp-content/gallery-master/original-images/demo1-2.jpg
- (new file) wp-content/gallery-master/original-images/bg-app-1.jpg
- (new file) wp-content/gallery-master/original-images/after-2.jpg
- (new file) wp-content/gallery-master/original-images/bg-app-2.jpg
- (new file) wp-content/gallery-master/original-images/after.jpg
- (new file) wp-content/gallery-master/original-images/demo1-1.jpg
- (new file) wp-content/gallery-master/original-images/after-3.jpg
- ...
Filesystem: 174 new files
Database: 2 new tables, 9 new options
New tables |
---|
wp_gallery_master_meta |
wp_gallery_master |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
gallery-master-key |
widget_gallery_master_widget |
gm_admin_notice |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Photo Gallery by Gallery Master
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,098 ▲363 | 14.04 ▼0.35 | 4.86 ▲3.24 | 37.51 ▼4.26 |
Dashboard /wp-admin | 2,340 ▲152 | 4.96 ▼0.86 | 107.61 ▼7.77 | 80.21 ▲37.09 |
Posts /wp-admin/edit.php | 2,155 ▲87 | 1.99 ▼0.07 | 39.30 ▲3.08 | 34.89 ▲1.78 |
Add New Post /wp-admin/post-new.php | 8,244 ▲6,725 | 20.25 ▼2.92 | 1,012.37 ▲318.75 | 53.86 ▲2.44 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.20 ▲0.02 | 99.79 ▼1.87 | 78.69 ▲37.34 |
/wp-admin/admin.php?page=gm_foo_box_free_edition | 1,060 | 1.98 | 28.96 | 45.08 |
/wp-admin/admin.php?page=gm_masonry_layout | 1,057 | 2.03 | 29.12 | 34.08 |
/wp-admin/admin.php?page=gm_advertisement | 1,061 | 1.96 | 28.68 | 32.80 |
/wp-admin/admin.php?page=gm_order_by_settings | 1,017 | 2.02 | 29.32 | 36.73 |
Other Settings /wp-admin/admin.php?page=gm_other_settings | 1,057 | 2.42 | 28.01 | 32.99 |
/wp-admin/admin.php?page=gm_add_tag | 1,056 | 2.42 | 27.63 | 29.94 |
/wp-admin/admin.php?page=gm_global_options | 1,061 | 1.97 | 27.11 | 28.82 |
/wp-admin/admin.php?page=gm_search_box_settings | 1,063 | 2.05 | 28.96 | 33.89 |
Shortcodes /wp-admin/admin.php?page=gm_shortcodes | 1,059 | 2.44 | 27.98 | 30.96 |
/wp-admin/admin.php?page=gm_sort_galleries | 1,075 | 2.36 | 36.27 | 35.82 |
Uninstaller [IO: ▲3.16MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_gallery_master_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/gallery-master/lib/shortcode.php:63
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/gallery-master/lib/dashboard-widget.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: photo gallery, gallery, album, responsive gallery, image gallery
gallery-master/gallery-master.php 85% from 13 tests
The main file in "WordPress Photo Gallery by Gallery Master" v. 2.0.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)
- Plugin Name: A shorter plugin name is better (currently 88 characters long instead of max. 70)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .xap - Silverlight Application Package in Microsoft Silverlight
- ☣ wp-content/plugins/gallery-master/assets/global/plugins/pluploader/Moxie.xap
- .xap - Silverlight Application Package in Microsoft Silverlight
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 61 | 434 | 1,286 | 30,239 |
JavaScript | 17 | 830 | 1,169 | 11,237 |
CSS | 22 | 1,361 | 89 | 8,197 |
SVG | 2 | 0 | 0 | 1,441 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.22 |
Average class complexity | 13.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 5 | 12.82% |
▷ Public methods | 39 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 82 | |
▷ Named functions | 82 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 28 | |
▷ Global constants | 28 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
45 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/global/plugins/pluploader/img/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
assets/global/img/portlet-collapse-icon.png | 0.26KB | 0.25KB | ▼ 5.20% |
assets/global/plugins/datatables/media/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/admin/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |