Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼2.41MB] [CPU: ▼345.69ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Galleria
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.95 ▼1.56 | 4.69 ▼54.90 |
Dashboard /wp-admin | 1.97 ▼1.43 | 4.77 ▼29.50 |
Posts /wp-admin/edit.php | 1.97 ▼1.67 | 4.83 ▼32.35 |
Add New Post /wp-admin/post-new.php | 1.97 ▼5.00 | 6.22 ▼1,265.99 |
Media Library /wp-admin/upload.php | 1.97 ▼1.32 | 6.53 ▼21.74 |
Galleria /wp-admin/options-general.php?page=galleria | 1.97 | 4.67 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 3 new options
New WordPress options |
---|
advanced_galleria_large |
advanced_galleria_thumb |
advanced_galleria_theme |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Galleria
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,925 ▲171 | 16.37 ▲0.84 | 13.03 ▲6.21 | 2.62 ▼0.35 |
Dashboard /wp-admin | 2,907 ▲49 | 6.13 ▼0.03 | 120.88 ▼23.66 | 162.63 ▼27.04 |
Posts /wp-admin/edit.php | 2,685 ▲28 | 3.26 ▲0.01 | 66.25 ▼4.29 | 143.68 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,720 ▲59 | 21.21 ▲5.82 | 561.82 ▲86.14 | 182.75 ▲22.41 |
Media Library /wp-admin/upload.php | 1,713 ▲15 | 5.58 ▲0.05 | 160.66 ▲7.99 | 218.39 ▲26.21 |
Galleria /wp-admin/options-general.php?page=galleria | 1,104 | 2.70 | 55.53 | 132.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5768
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.)
- This plugin did not uninstall successfully, leaving 3 options in the database
- advanced_galleria_large
- advanced_galleria_thumb
- advanced_galleria_theme
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=galleria
- > User notice in wp-includes/functions.php+5768
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+5768
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+5768
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+5768
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > 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 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== advanced-galleria ===
)
advanced-galleria/advanced-galleria.php 85% from 13 tests
The primary PHP file in "Advanced Galleria" version 2.0.0.a.1... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 150 characters long)
- Version: The version number should be digits and periods (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 considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin6,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
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/map.png | 1.80KB | 0.67KB | ▼ 62.77% |
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% |