78% image-gallery-google-style

Code Review | Image Gallery Google Style

WordPress plugin Image Gallery Google Style scored78%from 54 tests.

About plugin

  • Plugin page: image-gallery-goo...
  • Plugin version: 0.42
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2017
  • Latest release: Jun 17, 2023
  • Number of updates: 19
  • Update frequency: every 115.5 days
  • Top authors: bigflannel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,718 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.00MB] [CPU: ▼5.46ms] Passed 4 tests

An overview of server-side resources used by Image Gallery Google Style
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.25 ▲0.38
Dashboard /wp-admin3.32 ▼0.0346.67 ▼13.80
Posts /wp-admin/edit.php3.37 ▲0.0148.73 ▼2.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0296.55 ▼6.35
Media Library /wp-admin/upload.php3.24 ▲0.0133.71 ▲1.33
Image Gallery Google Style /wp-admin/options-general.php?page=image-gallery-google-style3.2329.97

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Image Gallery Google Style: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14813.78 ▼0.839.30 ▲7.5841.05 ▲2.76
Dashboard /wp-admin2,215 ▲275.90 ▲0.03109.02 ▲11.5941.57 ▼5.83
Posts /wp-admin/edit.php2,095 ▲32.01 ▲0.0038.56 ▼2.6633.96 ▼7.99
Add New Post /wp-admin/post-new.php1,542 ▲623.43 ▲2.36651.61 ▲2.4461.99 ▲0.07
Media Library /wp-admin/upload.php1,405 ▲234.18 ▲0.0198.28 ▼13.4943.76 ▼1.17
Image Gallery Google Style /wp-admin/options-general.php?page=image-gallery-google-style8282.0226.0428.22

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/image-gallery-google-style/admin/partials/admin-display.php
    • > /wp-content/plugins/image-gallery-google-style/public/partials/image-gallery-google-style-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/image-gallery-google-style/admin/partials/gallery-options.php:32

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

image-gallery-google-style/image-gallery-google-style.php 92% from 13 tests

The main PHP script in "Image Gallery Google Style" version 0.42 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 228 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
Everything looks great! No dangerous files found in this plugin12,657 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JSON10011,900
PHP13142576287
JavaScript335177281
CSS31134168
SVG19021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity2.86
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png4.63KB0.90KB▼ 80.63%
assets/banner-1544x500.png15.62KB1.59KB▼ 89.84%
assets/icon-256x256.png6.94KB2.89KB▼ 58.33%
assets/icon-128x128.png2.95KB1.47KB▼ 50.18%