Benchmarks
Plugin footprint 48% 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.62MB] [CPU: ▲0.02ms] Passed 4 tests
This is a short check of server-side resources used by Gallery PhotoBlocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 36.08 ▼4.63 |
Dashboard /wp-admin | 4.00 ▲0.69 | 51.87 ▲2.95 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 57.14 ▲11.97 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 86.97 ▼8.44 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 43.59 ▲10.18 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.12 | 40.92 |
Server storage [IO: ▲3.82MB] [DB: ▲0.08MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 256 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_photoblocks |
New WordPress options |
---|
widget_recent-posts |
fs_debug_mode |
widget_theysaidso_widget |
widget_recent-comments |
fs_active_plugins |
theysaidso_admin_options |
can_compress_scripts |
photoblocks_review |
db_upgraded |
photoblocks_db_version |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Gallery PhotoBlocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,100 ▲365 | 15.53 ▲0.97 | 7.06 ▲5.23 | 29.34 ▼16.35 |
Dashboard /wp-admin | 2,379 ▲191 | 6.78 ▲1.66 | 168.95 ▲53.36 | 83.48 ▲35.72 |
Posts /wp-admin/edit.php | 2,305 ▲216 | 3.71 ▲1.70 | 51.09 ▲13.44 | 81.48 ▲46.40 |
Add New Post /wp-admin/post-new.php | 1,703 ▲184 | 22.55 ▼0.68 | 629.15 ▼44.49 | 29.95 ▼40.39 |
Media Library /wp-admin/upload.php | 1,447 ▲59 | 4.50 ▲0.29 | 87.78 ▼8.53 | 84.15 ▲38.29 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,296 | 3.37 | 43.47 | 68.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 25% 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 did not uninstall without warnings or errors
- > Notice in wp-content/plugins/photoblocks-grid-gallery/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_photoblocks
- Zombie WordPress options were found after uninstall: 11 options
- fs_accounts
- theysaidso_admin_options
- fs_debug_mode
- can_compress_scripts
- photoblocks_review
- photoblocks_db_version
- widget_recent-comments
- db_upgraded
- fs_active_plugins
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/photoblocks-grid-gallery/admin/partials/photoblocks-troubleshooting.php
- > /wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/filters_claim.php
- 28× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/text.php:3
- > PHP Notice
Undefined variable: field in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/select.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/drawer-sections/image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/checkbox.php:2
- > PHP Notice
Undefined variable: field in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/toggle.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/photoblocks-grid-gallery/admin/partials/fields-markup.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/dynamic_list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/number.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/photoblocks-dashboard.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/photoblocks-grid-gallery/admin/partials/field-type/help_social.php:2
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
photoblocks-grid-gallery/photoblocks.php 85% from 13 tests
The primary PHP file in "Gallery PhotoBlocks" version 1.3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("photoblocks-grid-gallery.php" instead of "photoblocks.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin45,190 lines of code in 193 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 153 | 8,328 | 17,917 | 36,910 |
JavaScript | 13 | 1,052 | 1,116 | 4,994 |
CSS | 21 | 204 | 69 | 2,768 |
PO File | 2 | 188 | 328 | 443 |
SVG | 4 | 2 | 1 | 75 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 81.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 1,371 | |
▷ Static methods | 201 | 14.66% |
▷ Public methods | 971 | 70.82% |
▷ Protected methods | 17 | 1.24% |
▷ Private methods | 383 | 27.94% |
Functions | 102 | |
▷ Named functions | 102 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
admin/icon.png | 1.22KB | 0.55KB | ▼ 54.89% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
admin/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
admin/css/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |