Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▲3.23ms] Passed 4 tests
Analyzing server-side resources used by WoowGallery - image gallery / content gallery / ecommerce gallery / social gallery / video gallery / album photo gallery
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.73 | 45.10 ▲9.29 |
Dashboard /wp-admin | 4.23 ▲0.92 | 55.49 ▲8.86 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 55.42 ▲8.16 |
Add New Post /wp-admin/post-new.php | 7.02 ▲1.13 | 95.62 ▼10.47 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 39.51 ▲6.36 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.47 | 40.38 |
Media Tags /wp-admin/edit-tags.php?taxonomy=media_tag&post_type=attachment | 4.14 | 41.51 |
Settings /wp-admin/edit.php?post_type=woowgallery&page=woowgallery-settings | 4.39 | 44.33 |
Server storage [IO: ▲6.50MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 379 new files
Database: no new tables, 13 new options
New WordPress options |
---|
fs_active_plugins |
woowgallery_version |
can_compress_scripts |
widget_theysaidso_widget |
fs_accounts |
widget_recent-comments |
fs_debug_mode |
theysaidso_admin_options |
db_upgraded |
woowgallery_options |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WoowGallery - image gallery / content gallery / ecommerce gallery / social gallery / video gallery / album photo gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲185 | 13.52 ▼1.17 | 5.29 ▲3.55 | 33.86 ▼6.57 |
Dashboard /wp-admin | 2,299 ▲107 | 5.80 ▲0.85 | 96.08 ▼6.65 | 37.55 ▼3.32 |
Posts /wp-admin/edit.php | 2,181 ▲92 | 2.03 ▲0.03 | 41.42 ▲0.19 | 38.48 ▲3.59 |
Add New Post /wp-admin/post-new.php | 6,336 ▲4,822 | 26.98 ▲9.37 | 920.34 ▲260.42 | 38.48 ▼23.34 |
Media Library /wp-admin/upload.php | 1,488 ▲97 | 4.28 ▼0.03 | 97.73 ▼4.73 | 44.73 ▼0.43 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,152 | 1.73 | 26.02 | 29.32 |
Media Tags /wp-admin/edit-tags.php?taxonomy=media_tag&post_type=attachment | 1,329 | 2.31 | 27.61 | 30.73 |
Settings /wp-admin/edit.php?post_type=woowgallery&page=woowgallery-settings | 1,113 | 3.81 | 73.66 | 57.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/woowgallery/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 13 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- fs_debug_mode
- fs_active_plugins
- widget_recent-comments
- woowgallery_options
- can_compress_scripts
- woowgallery_install_date
- widget_woowgallery
- woowgallery_version
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 40× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/woowgallery/includes/class-lightbox.php
- > /wp-content/plugins/woowgallery/includes/admin/class-edit-modal.php
- > /wp-content/plugins/woowgallery/includes/admin/class-gutenberg.php
- > /wp-content/plugins/woowgallery/includes/class-taxonomies.php
- > /wp-content/plugins/woowgallery/includes/admin/templates/modal-edit-form-advanced.php
- > /wp-content/plugins/woowgallery/includes/admin/class-media-library.php
- > /wp-content/plugins/woowgallery/includes/admin/class-admin.php
- > /wp-content/plugins/woowgallery/includes/class-rest-routes.php
- > /wp-content/plugins/woowgallery/includes/tools/proxy.php
- > /wp-content/plugins/woowgallery/includes/class-assets.php
- 26× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woowgallery/includes/admin/templates/settings.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woowgallery/includes/admin/templates/gallery-media-view.php:18
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/woowgallery/includes/admin/templates/settings.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woowgallery/includes/admin/templates/gallery-media-edit.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woowgallery/includes/admin/templates/settings.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function woowgallery_get_post_types() in wp-content/plugins/woowgallery/includes/admin/templates/query-wp.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_reset_vars() in wp-content/plugins/woowgallery/includes/admin/templates/modal-edit.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woowgallery/includes/admin/templates/gallery-media.php:21
- > PHP Fatal error
Uncaught Error: Class 'WoowGallery\\Admin\\Admin' not found in wp-content/plugins/woowgallery/includes/admin/templates/gallery-skin-config.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/woowgallery/includes/admin/templates/gallery-media-bulk-edit.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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:
- Screenshots: A description for screenshot #8 is missing in woowgallery/assets to your readme.txt
woowgallery/woowgallery.php 92% from 13 tests
The principal PHP file in "WoowGallery - image gallery / content gallery / ecommerce gallery / social gallery / video gallery / album photo gallery" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
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
Good job! No executable or dangerous file extensions detected76,504 lines of code in 293 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 189 | 9,827 | 20,984 | 43,361 |
JavaScript | 54 | 4,271 | 4,542 | 28,964 |
Sass | 15 | 592 | 5 | 3,209 |
CSS | 28 | 44 | 78 | 963 |
SVG | 7 | 0 | 0 | 7 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
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.57 |
Average class complexity | 59.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 6 | 6.59% |
▷ Concrete classes | 85 | 93.41% |
▷ Final classes | 0 | 0.00% |
Methods | 1,573 | |
▷ Static methods | 241 | 15.32% |
▷ Public methods | 1,151 | 73.17% |
▷ Protected methods | 38 | 2.42% |
▷ Private methods | 384 | 24.41% |
Functions | 160 | |
▷ Named functions | 135 | 84.38% |
▷ Anonymous functions | 25 | 15.62% |
Constants | 190 | |
▷ Global constants | 105 | 55.26% |
▷ Class constants | 85 | 44.74% |
▷ Public constants | 85 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 compressed PNG files occupy 0.15MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/spreadsheet.png | 2.87KB | 2.71KB | ▼ 5.35% |
assets/images/icons/pdf.png | 3.77KB | 3.77KB | 0.03% |
skins/parallax/screenshot.png | 21.39KB | 20.22KB | ▼ 5.47% |
assets/images/icons/interactive.png | 3.41KB | 3.25KB | ▼ 4.50% |
assets/images/icons/code.png | 2.97KB | 2.97KB | 0.00% |