89% storefront-gridder

Code Review | Storefront Gridder

WordPress plugin Storefront Gridder scored 89% from 54 tests.

About plugin

  • Plugin page: storefront-gridder
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2016
  • Latest release: Feb 15, 2020
  • Number of updates: 8
  • Update frequency: every 144.4 days
  • Top authors: UlisesFreitas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,533 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Storefront Gridder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.93 ▼0.23
Dashboard /wp-admin3.31 ▲0.0047.58 ▲0.08
Posts /wp-admin/edit.php3.36 ▲0.0047.64 ▲0.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.88 ▼24.42
Media Library /wp-admin/upload.php3.23 ▲0.0035.22 ▼0.94

Server storage [IO: ▲1.17MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
storefront-gridder-version
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Storefront Gridder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.141.76 ▼0.4142.67 ▼1.96
Dashboard /wp-admin2,203 ▲145.83 ▲0.9196.43 ▼19.8738.08 ▼3.21
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0539.18 ▼1.5734.64 ▼1.58
Add New Post /wp-admin/post-new.php1,533 ▼923.42 ▲5.38681.31 ▲81.7756.46 ▲0.12
Media Library /wp-admin/upload.php1,385 ▼64.19 ▼0.0896.04 ▲0.7743.63 ▼1.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • storefront-gridder-version
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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 require attention:
  • Screenshots: These screenshots do not have images: #1 (Gridder Products Gallery in Storefront homepage area in action.), #2 (Gridder Products Gallery in Storefront homepage expanded product details.), #3 (Gridder Products Gallery section added on the Customise page under Appearance.)
The official readme.txt is a good inspiration

storefront-gridder/storefront-gridder.php Passed 13 tests

"Storefront Gridder" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
98 characters long description:
Add gridder to your Storefront and display a grid of products with an expandable zone for details.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin785 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File4128136389
PHP292152323
CSS10034
JavaScript141222
SVG10017

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.93MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png6.67KB3.10KB▼ 53.47%
screenshot-2.png205.33KB81.41KB▼ 60.35%
assets/banner-1544x500.png23.12KB12.59KB▼ 45.56%
screenshot-3.png321.37KB97.50KB▼ 69.66%
assets/banner-772x250.png9.61KB5.19KB▼ 45.94%