Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.20MB] [CPU: ▲23.21ms] 75% from 4 tests
A check of server-side resources used by Justified Gallery
It is recommended to improve the following
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.20MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.41 | 72.20 ▲34.69 |
Dashboard /wp-admin | 8.90 ▲5.55 | 79.54 ▲14.06 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 88.41 ▲41.92 |
Add New Post /wp-admin/post-new.php | 10.17 ▲4.28 | 112.67 ▲14.34 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 71.20 ▲29.76 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 67.21 |
Server storage [IO: ▲4.01MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 269 new files
Database: no new tables, 12 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
dgwt_jg_activation_date |
can_compress_scripts |
dgwt_jg_settings |
fs_debug_mode |
widget_recent-posts |
db_upgraded |
fs_accounts |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Justified Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,979 ▲218 | 14.61 ▲0.26 | 1.56 ▼0.10 | 27.10 ▼17.07 |
Dashboard /wp-admin | 2,388 ▲207 | 6.34 ▲0.63 | 118.77 ▲12.53 | 89.07 ▲42.75 |
Posts /wp-admin/edit.php | 2,314 ▲214 | 3.50 ▲1.48 | 47.94 ▲8.66 | 69.74 ▲36.56 |
Add New Post /wp-admin/post-new.php | 1,527 ▼152 | 21.70 ▼0.48 | 679.04 ▼23.35 | 37.45 ▼14.01 |
Media Library /wp-admin/upload.php | 1,453 ▲56 | 4.30 ▲0.10 | 84.68 ▼24.01 | 89.24 ▲44.99 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,274 | 3.27 | 39.92 | 60.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/justified-gallery/includes/fs/lib/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 12 options in the database
- widget_recent-comments
- fs_accounts
- fs_debug_mode
- theysaidso_admin_options
- dgwt_jg_settings
- fs_active_plugins
- widget_theysaidso_widget
- db_upgraded
- dgwt_jg_activation_date
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/justified-gallery/includes/Block.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/justified-gallery/includes/TilesStyle/Simple/promobox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/justified-gallery/includes/Lightbox/Swipebox/promobox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/justified-gallery/includes/TilesStyle/Layla/promobox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/justified-gallery/includes/TilesStyle/JGStandard/promobox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/justified-gallery/includes/Lightbox/Photoswipe/promobox.php:2
- > PHP Fatal error
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
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: justified gallery, wordpress gallery, gutenberg block, gallery grid, best gallery plugin
justified-gallery/justified-gallery.php Passed 13 tests
The primary PHP file in "Justified Gallery" version 1.8.1 is used by WordPress to initiate all plugin functionality
94 characters long description:
Display native WordPress galleries in a responsive justified image grid and a pretty Lightbox.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin45,073 lines of code in 207 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 154 | 8,706 | 18,797 | 37,160 |
JavaScript | 22 | 1,401 | 940 | 5,859 |
CSS | 25 | 331 | 145 | 1,974 |
Sass | 1 | 6 | 0 | 42 |
Markdown | 1 | 17 | 0 | 29 |
SVG | 4 | 0 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 66.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 75 | |
▷ Abstract classes | 4 | 5.33% |
▷ Concrete classes | 71 | 94.67% |
▷ Final classes | 1 | 1.41% |
Methods | 1,471 | |
▷ Static methods | 233 | 15.84% |
▷ Public methods | 1,060 | 72.06% |
▷ Protected methods | 21 | 1.43% |
▷ Private methods | 390 | 26.51% |
Functions | 118 | |
▷ Named functions | 101 | 85.59% |
▷ Anonymous functions | 17 | 14.41% |
Constants | 172 | |
▷ Global constants | 109 | 63.37% |
▷ Class constants | 63 | 36.63% |
▷ Public constants | 63 | 100.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
8 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/jg-logo-128.png | 18.54KB | 12.57KB | ▼ 32.20% |
includes/Lightbox/Photoswipe/assets/white-light-skin/skin.png | 15.02KB | 0.72KB | ▼ 95.22% |
includes/fs/lib/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/Lightbox/Photoswipe/assets/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |
includes/Lightbox/Swipebox/assets/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |