Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.86MB] [CPU: ▼58.75ms] Passed 4 tests
A check of server-side resources used by Advanced Galleria
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.03 ▼37.65 |
Dashboard /wp-admin | 2.16 ▼1.18 | 6.63 ▼58.87 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 7.72 ▼42.53 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.00 ▼95.95 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 6.53 ▼31.49 |
Galleria /wp-admin/options-general.php?page=galleria | 2.16 | 6.72 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
advanced_galleria_large |
advanced_galleria_thumb |
advanced_galleria_theme |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Galleria
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲145 | 13.73 ▼0.45 | 6.39 ▲4.34 | 41.39 ▲0.32 |
Dashboard /wp-admin | 2,224 ▲21 | 5.90 ▲1.02 | 100.52 ▼1.82 | 39.93 ▼5.70 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.11 ▲0.12 | 34.19 ▼2.83 | 33.88 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.17 ▼0.05 | 663.93 ▲16.99 | 53.60 ▲1.88 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.33 ▼0.08 | 101.49 ▲1.70 | 43.42 ▼0.88 |
Galleria /wp-admin/options-general.php?page=galleria | 885 | 1.76 | 26.09 | 26.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- advanced_galleria_theme
- advanced_galleria_large
- advanced_galleria_thumb
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=galleria
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=galleria
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the advanced-galleria handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=galleria
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the advanced-galleria-theme handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=galleria
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the advanced-galleria-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/advanced-galleria/advanced-galleria.php:351
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== advanced-galleria ===
)
advanced-galleria/advanced-galleria.php 85% from 13 tests
This is the main PHP file of "Advanced Galleria" version 2.0.0.a.1..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "2.0.0.a.1...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected6,397 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 1,871 | 1,197 | 5,101 |
CSS | 6 | 19 | 54 | 789 |
HTML | 4 | 54 | 15 | 272 |
PHP | 1 | 45 | 71 | 235 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 7.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
galleria/themes/advanced-classic-light/fullscreen.png | 0.25KB | 0.14KB | ▼ 41.67% |
galleria/themes/classic/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |
galleria/themes/advanced-classic/fullscreen.png | 0.26KB | 0.14KB | ▼ 44.94% |
galleria/themes/advanced-classic-light/map.png | 3.58KB | 1.25KB | ▼ 65.05% |
galleria/themes/advanced-classic/map.png | 1.80KB | 0.67KB | ▼ 62.77% |