93% 3d-image-gallery

Code Review | Image Gallery for Gutenberg

WordPress plugin Image Gallery for Gutenberg scored 93% from 54 tests.

About plugin

  • Plugin page: 3d-image-gallery
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Feb 15, 2022
  • Latest release: Mar 9, 2022
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: charlescormier (85.71%)abuhayat (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 240 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼297.76ms] Passed 4 tests

An overview of server-side resources used by Image Gallery for Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0359.55 ▲4.23
Dashboard /wp-admin3.45 ▲0.0437.19 ▼1.91
Posts /wp-admin/edit.php3.67 ▲0.0337.95 ▼1.65
Add New Post /wp-admin/post-new.php6.92 ▼0.0599.27 ▼1,175.52
Media Library /wp-admin/upload.php3.32 ▲0.0227.50 ▼11.97

Server storage [IO: ▲0.52MB] [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, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Gallery for Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.18 ▲0.485.51 ▼0.982.65 ▼0.16
Dashboard /wp-admin2,895 ▲376.16 ▲0.03114.77 ▼20.12157.59 ▼11.51
Posts /wp-admin/edit.php2,688 ▼03.37 ▲0.1360.48 ▼2.08139.44 ▲0.99
Add New Post /wp-admin/post-new.php1,676 ▼3517.43 ▼3.27402.16 ▼24.96174.51 ▲16.12
Media Library /wp-admin/upload.php1,701 ▼05.54 ▲0.02138.24 ▼1.75183.80 ▼17.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant BIGB_PLUGIN_VERSION - assumed 'BIGB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-image-gallery/dist/script.asset.php on line 4
    • > PHP Warning
      Use of undefined constant BIGB_PLUGIN_VERSION - assumed 'BIGB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/3d-image-gallery/dist/editor.asset.php on line 4

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)
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Requires at least: Invalid version format
The official readme.txt might help

3d-image-gallery/index.php 85% from 13 tests

The main PHP file in "Image Gallery for Gutenberg" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("3d-image-gallery.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin193 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin