83% 3d-image-gallery

Code Review | Image Gallery block - Create and display photo gallery/photo album.

WordPress plugin Image Gallery block - Create and display photo gallery/photo album. scored83%from 54 tests.

About plugin

  • Plugin page: 3d-image-gallery
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 15, 2022
  • Latest release: Nov 11, 2023
  • Number of updates: 25
  • Update frequency: every 25.4 days
  • Top authors: charlescormier (92%)abuhayat (12%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /3,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.61ms] Passed 4 tests

An overview of server-side resources used by Image Gallery block - Create and display photo gallery/photo album.
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0436.99 ▼3.18
Dashboard /wp-admin3.34 ▼0.0144.63 ▼17.38
Posts /wp-admin/edit.php3.39 ▲0.0344.70 ▲1.05
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.43 ▼14.92
Media Library /wp-admin/upload.php3.26 ▲0.0337.37 ▲4.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Gallery block - Create and display photo gallery/photo album.
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.21 ▼0.061.89 ▲0.1042.09 ▼1.79
Dashboard /wp-admin2,198 ▲215.62 ▼0.0288.37 ▼9.0538.96 ▼5.15
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0640.27 ▲2.6135.92 ▲2.10
Add New Post /wp-admin/post-new.php6,369 ▲4,84327.96 ▲4.26923.35 ▲218.0856.07 ▲6.06
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0399.64 ▼9.6240.69 ▼3.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× 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/editor.asset.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Requires at least: Invalid plugin version format
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Image Gallery block - Create and display photo gallery/photo album." version 1.0.6
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("3d-image-gallery.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected289 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON200161
PO File1356488
PHP2111236
CSS2022
JavaScript2022

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.14
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 were not PNG files found in your plugin