Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.41MB] [CPU: ▲12.48ms] Passed 4 tests
This is a short check of server-side resources used by Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.89 ▲1.43 | 56.26 ▲13.66 |
Dashboard /wp-admin | 4.72 ▲1.41 | 64.75 ▲18.32 |
Posts /wp-admin/edit.php | 4.77 ▲1.41 | 63.24 ▲10.48 |
Add New Post /wp-admin/post-new.php | 7.46 ▲1.57 | 106.92 ▲12.03 |
Media Library /wp-admin/upload.php | 4.64 ▲1.41 | 53.73 ▲13.73 |
Add New /wp-admin/post-new.php?post_type=gt3_gallery | 7.48 | 105.19 |
All Galleries /wp-admin/edit.php?post_type=gt3_gallery | 4.68 | 67.24 |
Categories /wp-admin/edit-tags.php?taxonomy=gt3_gallery_category&post_type=gt3_gallery | 4.64 | 62.00 |
Settings /wp-admin/admin.php?page=gt3_gallery-settings | 4.62 | 51.85 |
Server storage [IO: ▲3.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 154 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
gt3_rate_date |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲186 | 13.24 ▼1.32 | 2.27 ▲0.20 | 38.61 ▼6.36 |
Dashboard /wp-admin | 2,284 ▲129 | 5.12 ▼0.51 | 104.30 ▼3.47 | 132.12 ▲91.49 |
Posts /wp-admin/edit.php | 2,168 ▲76 | 2.37 ▲0.38 | 45.10 ▲4.45 | 38.76 ▲1.13 |
Add New Post /wp-admin/post-new.php | 6,442 ▲4,908 | 30.21 ▲7.07 | 1,062.81 ▲412.96 | 42.89 ▼7.57 |
Media Library /wp-admin/upload.php | 1,455 ▲67 | 4.51 ▲0.37 | 108.31 ▲0.55 | 79.81 ▲35.15 |
Add New /wp-admin/post-new.php?post_type=gt3_gallery | 10,896 | 26.05 | 1,109.03 | 33.05 |
All Galleries /wp-admin/edit.php?post_type=gt3_gallery | 1,184 | 2.29 | 38.58 | 33.17 |
Categories /wp-admin/edit-tags.php?taxonomy=gt3_gallery_category&post_type=gt3_gallery | 1,366 | 2.22 | 41.32 | 43.05 |
Settings /wp-admin/admin.php?page=gt3_gallery-settings | 1,526 | 11.19 | 188.63 | 165.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- gt3_rate_date
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gt3_gallery-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
Undefined offset: 0
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gt3_gallery-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
Trying to get property 'guid' of non-object
- 39 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gt3_gallery-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
Trying to get property 'ID' of non-object
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gt3_gallery-settings
- > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
- > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
Trying to get property 'post_title' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gt3-photo-video-gallery/rate.php:2
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3input_color.php:9
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3select.php:10
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3input_onoff.php:8
- > PHP Warning
Use of undefined constant GT3PG_LITE_IMG_URL - assumed 'GT3PG_LITE_IMG_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gt3-photo-video-gallery/core/pages/premium_themes.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3_el.php:3
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3panel_input_color.php:9
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3input.php:10
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3options.php:10
- > PHP Fatal error
Uncaught Error: Class 'gt3classStd' not found in wp-content/plugins/gt3-photo-video-gallery/core/class/gt3attr.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=gt3_gallery-settings
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
wp.compose.withGlobalEvents is deprecated since version 5.7. Please use useEffect instead.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Screenshots: Please a description for screenshot #4 in gt3-photo-video-gallery/assets to your readme.txt
gt3-photo-video-gallery/gt3-photo-video-gallery.php 85% from 13 tests
The main file in "Photo Gallery - GT3 Image Gallery & Gutenberg Block Gallery" v. 2.7.7.18 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- 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
- Description: The description should be shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11,137 lines of code in 110 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 1,498 | 401 | 8,697 |
CSS | 10 | 209 | 42 | 1,177 |
JavaScript | 17 | 97 | 227 | 1,154 |
SVG | 7 | 0 | 2 | 109 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 20.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 8 | |
Classes | 42 | |
▷ Abstract classes | 4 | 9.52% |
▷ Concrete classes | 38 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 358 | |
▷ Static methods | 41 | 11.45% |
▷ Public methods | 260 | 72.63% |
▷ Protected methods | 72 | 20.11% |
▷ Private methods | 26 | 7.26% |
Functions | 83 | |
▷ Named functions | 33 | 39.76% |
▷ Anonymous functions | 50 | 60.24% |
Constants | 30 | |
▷ Global constants | 19 | 63.33% |
▷ Class constants | 11 | 36.67% |
▷ Public constants | 11 | 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
21 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/edit.4c0ce7b7.png | 0.73KB | 0.69KB | ▼ 4.44% |
core/cpt/gallery/static/img/edit.png | 0.61KB | 0.65KB | 0.00% |
dist/img/edit.3036e8e0.png | 0.61KB | 0.65KB | 0.00% |
dist/img/lightbox_sprite.773491ce.png | 19.70KB | 9.54KB | ▼ 51.57% |
dist/img/support.png | 1.35KB | 0.42KB | ▼ 68.96% |