Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.12MB] [CPU: ▲2.22ms] Passed 4 tests
An overview of server-side resources used by Photo Gallery by Ays - Responsive Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.56 ▲1.09 | 45.97 ▲1.81 |
Dashboard /wp-admin | 4.45 ▲1.10 | 58.86 ▼2.44 |
Posts /wp-admin/edit.php | 4.49 ▲1.13 | 56.02 ▲7.39 |
Add New Post /wp-admin/post-new.php | 7.17 ▲1.28 | 97.62 ▲2.11 |
Media Library /wp-admin/upload.php | 4.39 ▲1.16 | 43.11 ▲7.54 |
Add new /wp-admin/admin.php?page=gallery-photo-gallery-add-new | 4.42 | 64.29 |
PRO Features /wp-admin/admin.php?page=gallery-photo-gallery-pro-features | 4.45 | 46.60 |
All Galleries /wp-admin/admin.php?page=gallery-photo-gallery | 4.45 | 50.27 |
Our products /wp-admin/admin.php?page=gallery-photo-gallery-featured-plugins | 4.44 | 58.37 |
How to use /wp-admin/admin.php?page=gallery-photo-gallery-dashboard | 4.42 | 52.71 |
General Settings /wp-admin/admin.php?page=gallery-photo-gallery-settings | 4.52 | 49.75 |
Categories /wp-admin/admin.php?page=gallery-photo-gallery-categories | 4.45 | 64.66 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 174 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_ays_gallery_settings |
wp_ays_gallery |
wp_ays_gallery_categories |
New WordPress options |
---|
ays_gpg_sale_btn |
ays_gallery_db_version |
ays_gpg_banner_time |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
ays_gpg_sale_btn_for_two_months |
widget_recent-posts |
Browser metrics Passed 4 tests
Photo Gallery by Ays - Responsive Image Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲208 | 13.41 ▼0.93 | 7.64 ▲6.00 | 27.06 ▼16.87 |
Dashboard /wp-admin | 2,239 ▲64 | 5.62 ▼0.07 | 95.48 ▼18.35 | 87.91 ▲37.87 |
Posts /wp-admin/edit.php | 2,159 ▲56 | 1.99 ▼0.02 | 40.20 ▲0.36 | 41.96 ▲5.31 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,713 | 19.03 ▼3.84 | 884.94 ▲234.64 | 34.92 ▼27.36 |
Media Library /wp-admin/upload.php | 1,453 ▲50 | 4.18 ▼0.08 | 100.69 ▲2.56 | 82.44 ▲40.29 |
Add new /wp-admin/admin.php?page=gallery-photo-gallery-add-new | 6,653 | 8.02 | 333.03 | 261.25 |
PRO Features /wp-admin/admin.php?page=gallery-photo-gallery-pro-features | 2,151 | 5.61 | 103.82 | 146.94 |
All Galleries /wp-admin/admin.php?page=gallery-photo-gallery | 2,287 | 11.47 | 324.75 | 165.99 |
Our products /wp-admin/admin.php?page=gallery-photo-gallery-featured-plugins | 1,745 | 5.65 | 74.85 | 152.29 |
How to use /wp-admin/admin.php?page=gallery-photo-gallery-dashboard | 1,617 | 5.53 | 70.19 | 145.12 |
General Settings /wp-admin/admin.php?page=gallery-photo-gallery-settings | 2,338 | 5.82 | 74.83 | 121.42 |
Categories /wp-admin/admin.php?page=gallery-photo-gallery-categories | 1,743 | 5.63 | 76.31 | 114.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 9 options
- ays_gpg_banner_time
- widget_recent-comments
- ays_gpg_sale_btn
- ays_gpg_sale_btn_for_two_months
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gallery-photo-gallery/public/partials/gallery-photo-gallery-public-display.php
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gallery-photo-gallery/admin/partials/features/gallery-photo-gallery-featured-plugins.php:7
- > PHP Warning
Use of undefined constant AYS_GPG_ADMIN_URL - assumed 'AYS_GPG_ADMIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/gallery-photo-gallery/admin/partials/categories/gallery-photo-gallery-categories-display.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/gallery-photo-gallery/includes/lists/class-gallery-photo-gallery-categories-list-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gallery-photo-gallery/admin/partials/features/gallery-photo-gallery-features-display.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gallery-photo-gallery/admin/partials/categories/gallery-photo-gallery-categories-display.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_current_user_id() in wp-content/plugins/gallery-photo-gallery/admin/partials/actions/gallery-photo-gallery-admin-actions.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gallery-photo-gallery/admin/partials/settings/gallery-photo-gallery-settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'Gallery_Settings_Actions' not found in wp-content/plugins/gallery-photo-gallery/admin/partials/categories/actions/gallery-photo-gallery-categories-actions.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/gallery-photo-gallery/includes/lists/class-gallery-photo-gallery-list-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'Gallery_Photo_Gallery_Admin' not found in wp-content/plugins/gallery-photo-gallery/admin/partials/gallery-photo-gallery-admin-display.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=gallery-photo-gallery
- > Other (warning) in unknown
/wp-admin/admin.php?page=gallery-photo-gallery 314 Unrecognized feature: 'web-share'.
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
7 plugin tags: free gallery, gallery, photo gallery, responsive gallery, image gallery...
gallery-photo-gallery/gallery-photo-gallery.php Passed 13 tests
This is the main PHP file of "Photo Gallery by Ays - Responsive Image Gallery" version 5.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
If you want to be different and represent your photos in a cool way, then our Photo Gallery plugin is perfect for you.
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
There were no executable files found in this plugin18,310 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 1,201 | 1,231 | 8,781 |
CSS | 12 | 729 | 845 | 3,778 |
JavaScript | 16 | 254 | 169 | 2,703 |
PO File | 2 | 919 | 1,300 | 2,373 |
SVG | 23 | 3 | 0 | 675 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 294)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 63.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 412.00 |
Average method complexity | 6.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 294.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 31 | 17.82% |
▷ Public methods | 160 | 91.95% |
▷ Protected methods | 4 | 2.30% |
▷ Private methods | 10 | 5.75% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
71 PNG files occupy 1.23MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/view_22.png | 0.35KB | 0.14KB | ▼ 58.82% |
admin/images/remove-normal.png | 0.43KB | 0.43KB | 0.00% |
admin/images/icons/survey-128x128.png | 11.02KB | 4.53KB | ▼ 58.87% |
admin/images/features/pro4-compressor.png | 67.27KB | 71.02KB | 0.00% |
admin/images/view_2.png | 0.31KB | 0.14KB | ▼ 56.21% |