Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼5.61ms] Passed 4 tests
A check of server-side resources used by WordPress Ultimate Gallery
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.03 ▲0.52 | 41.39 ▼18.81 |
Dashboard /wp-admin | 4.01 ▲0.67 | 56.70 ▲4.70 |
Posts /wp-admin/edit.php | 4.03 ▲0.64 | 52.74 ▼3.65 |
Add New Post /wp-admin/post-new.php | 6.60 ▲0.68 | 92.20 ▼4.67 |
Media Library /wp-admin/upload.php | 3.93 ▲0.66 | 45.29 ▲7.38 |
Galleries /wp-admin/edit.php?post_type=wp-ultimate-gallery | 3.91 | 43.29 |
Gallery Settings /wp-admin/edit.php?post_type=wp-ultimate-gallery&page=gallery-settings | 3.84 | 37.52 |
Add New /wp-admin/post-new.php?post_type=wp-ultimate-gallery | 4.37 | 59.33 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Ultimate Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲200 | 13.65 ▼0.70 | 14.34 ▲11.86 | 41.42 ▼17.85 |
Dashboard /wp-admin | 2,234 ▲60 | 5.63 ▲0.05 | 89.63 ▼11.94 | 42.44 ▼2.63 |
Posts /wp-admin/edit.php | 2,142 ▲45 | 2.02 ▼0.11 | 36.04 ▼3.12 | 35.84 ▲3.63 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.41 ▲0.25 | 708.91 ▲47.33 | 74.72 ▲23.52 |
Media Library /wp-admin/upload.php | 1,445 ▲42 | 4.24 ▼0.04 | 100.25 ▲1.50 | 46.91 ▲0.15 |
Galleries /wp-admin/edit.php?post_type=wp-ultimate-gallery | 1,121 | 1.99 | 36.56 | 36.34 |
Gallery Settings /wp-admin/edit.php?post_type=wp-ultimate-gallery&page=gallery-settings | 1,854 | 2.66 | 42.72 | 48.45 |
Add New /wp-admin/post-new.php?post_type=wp-ultimate-gallery | 3,433 | 4.53 | 110.47 | 49.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% 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)
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=wp-ultimate-gallery
- > Notice in wp-content/plugins/wp-ultimate-gallery/admin/admin-shortcode-generator.php+22
Undefined variable: shortcode_column_lang_text
- > GET request to /wp-admin/edit.php?post_type=wp-ultimate-gallery
- > Notice in wp-content/plugins/wp-ultimate-gallery/admin/admin-shortcode-generator.php+23
Undefined variable: images_column_lang_text
- > GET request to /wp-admin/edit.php?post_type=wp-ultimate-gallery
- > Notice in wp-content/plugins/wp-ultimate-gallery/admin/admin-shortcode-generator.php+24
Undefined variable: type_column_lang_text
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
Almost there! Just fix the following items
- 11× 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 add_filter() in wp-content/plugins/wp-ultimate-gallery/admin/admin-gallery-custom-messages.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-ultimate-gallery/admin/gallery-shortcode.php:621
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ultimate-gallery/admin/admin-plugin-settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-gallery/admin/plugin-assets.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-ultimate-gallery/admin/media-extra-fields.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-ultimate-gallery/admin/admin-shortcode-generator.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-gallery/libs/cmb2-conditions/cmb-conditions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-gallery/admin/gallery-metabox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-ultimate-gallery/wp-ultimate-gallery.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ultimate-gallery/libs/cmb2/init.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-ultimate-gallery ===
)
wp-ultimate-gallery/wp-ultimate-gallery.php Passed 13 tests
The entry point to "WordPress Ultimate Gallery" version 1.7 is a PHP file that has certain tags in its header comment area
60 characters long description:
This plugin will multi style gallery in your wordpress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin16,704 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 2,161 | 2,105 | 9,795 |
PHP | 25 | 1,326 | 2,304 | 4,613 |
Sass | 11 | 168 | 23 | 1,116 |
JavaScript | 12 | 219 | 223 | 922 |
PO File | 1 | 107 | 137 | 245 |
SVG | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 40.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 130.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 233 | |
▷ Static methods | 24 | 10.30% |
▷ Public methods | 218 | 93.56% |
▷ Protected methods | 9 | 3.86% |
▷ Private methods | 6 | 2.58% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
libs/cmb2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
libs/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
libs/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
libs/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
libs/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |