78% thumbnail-grid

Code Review | Featured Image Thumbnail Grid

WordPress plugin Featured Image Thumbnail Grid scored78%from 54 tests.

About plugin

  • Plugin page: thumbnail-grid
  • Plugin version: 6.6.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 26, 2013
  • Latest release: Aug 16, 2023
  • Number of updates: 67
  • Update frequency: every 52.7 days
  • Top authors: nomadcoder (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /34,428 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.53ms] Passed 4 tests

Analyzing server-side resources used by Featured Image Thumbnail Grid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.96 ▼4.19
Dashboard /wp-admin3.31 ▼0.0349.04 ▼15.63
Posts /wp-admin/edit.php3.43 ▲0.0748.15 ▼3.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.27 ▼14.51
Media Library /wp-admin/upload.php3.24 ▲0.0139.67 ▲1.63
Thumbnail Grid Settings /wp-admin/options-general.php?page=sfly_tgrid_settings3.2534.81

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Featured Image Thumbnail Grid
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3413.61 ▼0.981.89 ▲0.2148.28 ▲3.64
Dashboard /wp-admin2,193 ▲195.56 ▼0.0881.65 ▼16.0540.94 ▼5.55
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0137.79 ▲1.6335.39 ▼1.58
Add New Post /wp-admin/post-new.php1,551 ▲2023.23 ▲0.15693.05 ▲36.3768.03 ▲7.36
Media Library /wp-admin/upload.php1,401 ▲44.29 ▼0.01105.22 ▼14.6649.72 ▼0.50
Thumbnail Grid Settings /wp-admin/options-general.php?page=sfly_tgrid_settings1,3402.0329.9755.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
Everything seems fine, however 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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/thumbnail-grid/thumbnailgrid.php
    • > /wp-content/plugins/thumbnail-grid/thumbnailgrid-admin.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=sfly_tgrid_settings
    • > Network (severe)
    https://www.shooflysolutions.com/2013/11/settings.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === thumbnail-grid === )
You can look at the official readme.txt

thumbnail-grid/thumbnailgrid.php 92% from 13 tests

"Featured Image Thumbnail Grid" version 6.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("thumbnail-grid.php" instead of "thumbnailgrid.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin782 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP2116169547
HTML1333167
CSS26245
JavaScript15123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity29.33
▷ Minimum class complexity3.00
▷ Maximum class complexity78.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods28
▷ Static methods310.71%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin