84% image-flow-gallery-block

Code Review | Image Flow Gallery Block

WordPress plugin Image Flow Gallery Block scored84%from 54 tests.

About plugin

  • Plugin page: image-flow-galler...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2020
  • Latest release: Sep 5, 2023
  • Number of updates: 9
  • Update frequency: every 114.0 days
  • Top authors: tishonator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by Image Flow Gallery Block
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.73 ▼3.28
Dashboard /wp-admin3.32 ▲0.0251.02 ▼3.90
Posts /wp-admin/edit.php3.37 ▲0.0146.74 ▼5.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.59 ▼10.15
Media Library /wp-admin/upload.php3.24 ▲0.0138.31 ▼1.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Image Flow Gallery Block
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14314.05 ▼0.556.21 ▲4.2846.44 ▲1.14
Dashboard /wp-admin2,206 ▲214.87 ▼0.0299.69 ▼5.2540.07 ▼5.86
Posts /wp-admin/edit.php2,092 ▲62.00 ▲0.0138.51 ▲0.5334.04 ▼0.20
Add New Post /wp-admin/post-new.php6,350 ▲4,81727.94 ▲5.06914.98 ▲315.3167.09 ▲18.59
Media Library /wp-admin/upload.php1,388 ▼04.23 ▲0.0297.76 ▼7.0740.02 ▼6.00

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-flow-gallery-block/image-flow-gallery-block.php:110

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: flow image gallery, gallery block, 3d gallery block, flipping image gallery, image gallery block...

image-flow-gallery-block/image-flow-gallery-block.php 92% from 13 tests

The main PHP script in "Image Flow Gallery Block" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 224 characters long)

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
Good job! No executable or dangerous file extensions detected544 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1815412
JavaScript216187
PHP1244245

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.60
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin