78% innozilla-image-gallery-8

Code Review | Innozilla Image Gallery 8

WordPress plugin Innozilla Image Gallery 8 scored78%from 54 tests.

About plugin

  • Plugin page: innozilla-image-g...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 28, 2019
  • Latest release: Jun 17, 2022
  • Number of updates: 31
  • Update frequency: every 35.0 days
  • Top authors: innozilla (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.98ms] Passed 4 tests

This is a short check of server-side resources used by Innozilla Image Gallery 8
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0621.62 ▼23.99
Dashboard /wp-admin3.33 ▲0.0349.02 ▲2.64
Posts /wp-admin/edit.php3.38 ▲0.0247.58 ▲3.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.02 ▼1.99
Media Library /wp-admin/upload.php3.25 ▲0.0238.81 ▲4.28
All Gallery /wp-admin/edit.php?post_type=cs_gallery3.2940.66
Settings /wp-admin/edit.php?post_type=cs_gallery&page=iig8-settings3.1927.15
Add New /wp-admin/post-new.php?post_type=cs_gallery3.3742.60

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Innozilla Image Gallery 8
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.21 ▼1.254.55 ▲2.5041.86 ▼5.82
Dashboard /wp-admin2,237 ▲465.88 ▲1.04106.18 ▲1.7837.17 ▼5.98
Posts /wp-admin/edit.php2,120 ▲312.05 ▼0.1339.88 ▲2.7335.42 ▲1.79
Add New Post /wp-admin/post-new.php1,559 ▲1723.51 ▲5.33651.25 ▲48.4165.64 ▲12.81
Media Library /wp-admin/upload.php1,416 ▲314.22 ▼0.09108.48 ▲7.6847.55 ▲2.98
All Gallery /wp-admin/edit.php?post_type=cs_gallery1,0842.0031.2728.96
Settings /wp-admin/edit.php?post_type=cs_gallery&page=iig8-settings9062.3024.5345.46
Add New /wp-admin/post-new.php?post_type=cs_gallery2,1757.77177.4360.74

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=cs_gallery&page=iig8-settings
    • > Notice in wp-content/plugins/innozilla-image-gallery-8/includes/iig8-admin.php+89
    Trying to access array offset on value of type bool

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
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'IIG8_PLUGIN_DIR/includes/initialize.php' (include_path='.:/usr/share/php') in wp-content/plugins/innozilla-image-gallery-8/includes/init.php on line 10
    • > PHP Warning
      Use of undefined constant IIG8_PLUGIN_DIR - assumed 'IIG8_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/innozilla-image-gallery-8/includes/init.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innozilla-image-gallery-8/includes/initialize.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/innozilla-image-gallery-8/includes/iig8-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/innozilla-image-gallery-8/includes/shortcode.php:110
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/innozilla-image-gallery-8/innozilla-image-gallery-8.php:19
    • > PHP Warning
      require_once(IIG8_PLUGIN_DIR/includes/initialize.php): failed to open stream: No such file or directory in wp-content/plugins/innozilla-image-gallery-8/includes/init.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: filter gallery, photo gallery, load more gallery, isotope gallery

innozilla-image-gallery-8/innozilla-image-gallery-8.php 92% from 13 tests

"Innozilla Image Gallery 8" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,242 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript514846577
CSS2419445
PHP67845220

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin