10% image-gallery-reloaded

Code Review | Image Gallery Reloaded

WordPress plugin Image Gallery Reloaded scored 10% from 54 tests.

About plugin

  • Plugin page: image-gallery-rel...
  • Plugin version: 2.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 5.9.2
  • First release: Jul 30, 2009
  • Latest release: Mar 9, 2013
  • Number of updates: 58
  • Update frequency: every 22.7 days
  • Top authors: Jukov (93.1%)DanielSachs (8.62%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active / 67,649 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1157.87 ▲6.64
Dashboard /wp-admin3.49 ▲0.0932.76 ▼6.28
Posts /wp-admin/edit.php3.72 ▲0.0842.98 ▲5.82
Add New Post /wp-admin/post-new.php6.96 ▼0.0198.79 ▼1,185.91
Media Library /wp-admin/upload.php3.37 ▲0.0726.08 ▲0.28
Image Gallery Reloaded Options /wp-admin/options-general.php?page=image-gallery-reloaded/image-gallery-reloaded.php3.3122.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,923 ▲18116.32 ▲0.5410.60 ▲5.002.74 ▲0.44
Dashboard /wp-admin2,902 ▲416.03 ▼0.15117.89 ▼17.19157.04 ▼8.59
Posts /wp-admin/edit.php2,701 ▲103.24 ▲0.0061.43 ▼2.61135.86 ▼6.02
Add New Post /wp-admin/post-new.php1,724 ▼2821.06 ▲0.15424.30 ▼40.48160.02 ▲8.19
Media Library /wp-admin/upload.php1,709 ▲145.54 ▲0.02139.34 ▲0.23186.59 ▼1.49
Image Gallery Reloaded Options /wp-admin/options-general.php?page=image-gallery-reloaded/image-gallery-reloaded.php2,1273.0261.07145.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript10233213937
PHP212721593
CSS362588

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 code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/custom_hex.png0.55KB0.39KB▼ 28.11%
images/custom_background.png1.87KB2.12KB0.00%
themes/classic_tumbs_top/classic-map.png1.80KB0.67KB▼ 62.77%
images/select.png0.49KB0.33KB▼ 33.40%
themes/classic/classic-map.png1.80KB0.67KB▼ 62.77%