Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲5.26MB] [CPU: ▲29.38ms] 75% from 4 tests
Server-side resources used by Gallery Blocks with Lightbox. Image Gallery, (HTML5 video , YouTube, Vimeo) Video Gallery and Lightbox for native gallery
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.26MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.02 ▲5.55 | 69.07 ▲25.67 |
Dashboard /wp-admin | 9.04 ▲5.73 | 80.09 ▲31.49 |
Posts /wp-admin/edit.php | 9.04 ▲5.68 | 78.53 ▲29.38 |
Add New Post /wp-admin/post-new.php | 9.98 ▲4.09 | 132.25 ▲30.99 |
Media Library /wp-admin/upload.php | 9.04 ▲5.80 | 75.65 ▲41.20 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.04 | 67.61 |
Server storage [IO: ▲7.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 268 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_debug_mode |
widget_recent-comments |
widget_pgc_sgb_widget_gallery |
fs_accounts |
fs_active_plugins |
theysaidso_admin_options |
db_upgraded |
pgc_sgb_global_lightbox_use |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
Gallery Blocks with Lightbox. Image Gallery, (HTML5 video , YouTube, Vimeo) Video Gallery and Lightbox for native gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,013 ▲226 | 16.44 ▲2.09 | 13.44 ▲11.52 | 31.37 ▼13.19 |
Dashboard /wp-admin | 2,353 ▲173 | 7.12 ▲1.50 | 240.77 ▲143.59 | 51.83 ▲10.23 |
Posts /wp-admin/edit.php | 2,148 ▲51 | 2.02 ▲0.07 | 41.73 ▲2.79 | 40.03 ▲5.52 |
Add New Post /wp-admin/post-new.php | 6,433 ▲4,907 | 29.03 ▲5.61 | 836.08 ▲171.37 | 34.45 ▼26.63 |
Media Library /wp-admin/upload.php | 1,447 ▲53 | 4.23 ▲0.00 | 96.71 ▲0.15 | 45.24 ▲2.66 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,116 | 1.66 | 25.70 | 30.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/simply-gallery-block/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 10 options in the database
- theysaidso_admin_options
- fs_debug_mode
- widget_pgc_sgb_widget_gallery
- widget_theysaidso_widget
- fs_accounts
- widget_recent-comments
- widget_recent-posts
- fs_active_plugins
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: gallery, block, wordpress gallery plugin, image gallery, video gallery...
simply-gallery-block/plugin.php 85% from 13 tests
The main PHP script in "Gallery Blocks with Lightbox. Image Gallery, (HTML5 video , YouTube, Vimeo) Video Gallery and Lightbox for native gallery" version 3.1.8 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 330 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simply-gallery-block.php" instead of "plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected36,049 lines of code in 187 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 8,298 | 17,534 | 35,582 |
JavaScript | 22 | 34 | 59 | 213 |
JSON | 8 | 0 | 0 | 135 |
CSS | 31 | 1 | 0 | 119 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 82.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,296 | |
▷ Static methods | 199 | 15.35% |
▷ Public methods | 893 | 68.90% |
▷ Protected methods | 20 | 1.54% |
▷ Private methods | 383 | 29.55% |
Functions | 175 | |
▷ Named functions | 168 | 96.00% |
▷ Anonymous functions | 7 | 4.00% |
Constants | 155 | |
▷ Global constants | 108 | 69.68% |
▷ Class constants | 47 | 30.32% |
▷ Public constants | 47 | 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
13 compressed PNG files occupy 0.19MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/coverAlbum-400x400.png | 17.28KB | 16.45KB | ▼ 4.79% |
assets/woocommerce_128x128.png | 3.35KB | 2.54KB | ▼ 24.18% |
assets/itemsManager.png | 34.69KB | 34.33KB | ▼ 1.04% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/cPanel.png | 21.56KB | 21.20KB | ▼ 1.65% |