89% is-gallery

Code Review | ImageSnippets Gallery Block

WordPress plugin ImageSnippets Gallery Block scored89%from 54 tests.

About plugin

  • Plugin page: is-gallery
  • Plugin version: 1.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8+
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Sep 4, 2023
  • Number of updates: 28
  • Update frequency: every 23.2 days
  • Top authors: hlsautter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,112 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by ImageSnippets Gallery Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0447.42 ▲4.35
Dashboard /wp-admin3.32 ▼0.0247.04 ▼13.63
Posts /wp-admin/edit.php3.38 ▲0.0246.97 ▼5.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.97 ▼24.55
Media Library /wp-admin/upload.php3.25 ▲0.0232.54 ▼2.74

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for ImageSnippets Gallery Block
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲13917.69 ▲2.96136.87 ▲134.6445.66 ▲0.76
Dashboard /wp-admin2,198 ▲245.49 ▼0.1083.91 ▼4.4242.42 ▲2.94
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0240.98 ▲4.7634.26 ▲0.19
Add New Post /wp-admin/post-new.php6,366 ▲4,84027.81 ▲4.81891.82 ▲206.7840.26 ▼11.00
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.06102.39 ▲2.2444.48 ▲0.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
You can look at the official readme.txt

is-gallery/is-gallery.php 92% from 13 tests

The main PHP script in "ImageSnippets Gallery Block" version 1.0.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 235 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,594 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript83546182,237
Sass2120125
CSS282895
JSON10082
PHP3123855

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.03
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin