Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/image-gallery-reloaded/image-gallery-reloaded.php+273
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.06MB] [CPU: ▼296.52ms] Passed 4 tests
Analyzing server-side resources used by Image Gallery Reloaded
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.11 | 57.87 ▲6.64 |
Dashboard /wp-admin | 3.49 ▲0.09 | 32.76 ▼6.28 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 42.98 ▲5.82 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 98.79 ▼1,185.91 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 26.08 ▲0.28 |
Image Gallery Reloaded Options /wp-admin/options-general.php?page=image-gallery-reloaded/image-gallery-reloaded.php | 3.31 | 22.59 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 1 new option
New WordPress options |
---|
igr_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Gallery Reloaded
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,923 ▲181 | 16.32 ▲0.54 | 10.60 ▲5.00 | 2.74 ▲0.44 |
Dashboard /wp-admin | 2,902 ▲41 | 6.03 ▼0.15 | 117.89 ▼17.19 | 157.04 ▼8.59 |
Posts /wp-admin/edit.php | 2,701 ▲10 | 3.24 ▲0.00 | 61.43 ▼2.61 | 135.86 ▼6.02 |
Add New Post /wp-admin/post-new.php | 1,724 ▼28 | 21.06 ▲0.15 | 424.30 ▼40.48 | 160.02 ▲8.19 |
Media Library /wp-admin/upload.php | 1,709 ▲14 | 5.54 ▲0.02 | 139.34 ▲0.23 | 186.59 ▼1.49 |
Image Gallery Reloaded Options /wp-admin/options-general.php?page=image-gallery-reloaded/image-gallery-reloaded.php | 2,127 | 3.02 | 61.07 | 145.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=image-gallery-reloaded/image-gallery-reloaded.php
- > Notice in wp-content/plugins/image-gallery-reloaded/image-gallery-reloaded.php+509
Undefined index: custom_css
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/image-gallery-reloaded/image-gallery-reloaded-style.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-gallery-reloaded/image-gallery-reloaded.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=image-gallery-reloaded/image-gallery-reloaded.php
- > Network (severe)
wp-admin/images/bg_header.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (The Setup Page), #2 (The Gallery)
image-gallery-reloaded/image-gallery-reloaded.php Passed 13 tests
This is the main PHP file of "Image Gallery Reloaded" version 2.1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
94 characters long description:
The plugin replaces the default Wordpress gallery with full featured, jquery-powered Galleria.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,118 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 233 | 213 | 937 |
PHP | 2 | 127 | 21 | 593 |
CSS | 3 | 6 | 2 | 588 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.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
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
images/custom_background.png | 1.87KB | 2.12KB | 0.00% |
themes/classic_tumbs_top/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |
images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |
themes/classic/classic-map.png | 1.80KB | 0.67KB | ▼ 62.77% |