84% woo-animated-grid

Code Review | woocommerce grid

WordPress plugin woocommerce grid scored84%from 54 tests.

About plugin

  • Plugin page: woo-animated-grid
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: Nov 18, 2016
  • Number of updates: 38
  • Update frequency: every 6.3 days
  • Top authors: aumsrini (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,729 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.62ms] Passed 4 tests

Server-side resources used by woocommerce grid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.42 ▼0.13
Dashboard /wp-admin3.50 ▲0.1952.93 ▲1.26
Posts /wp-admin/edit.php3.54 ▲0.1856.61 ▲8.28
Add New Post /wp-admin/post-new.php5.53 ▼0.3572.20 ▼21.22
Media Library /wp-admin/upload.php3.32 ▲0.0933.96 ▼2.40

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for woocommerce grid
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,259 ▲52416.15 ▲1.929.00 ▲7.3242.88 ▲2.39
Dashboard /wp-admin2,513 ▲3217.01 ▲2.07130.43 ▲18.9338.87 ▼1.70
Posts /wp-admin/edit.php2,422 ▲3333.89 ▲1.8460.05 ▲20.1936.24 ▲1.09
Add New Post /wp-admin/post-new.php6,491 ▲4,95819.53 ▼3.56891.27 ▲224.2846.90 ▼18.76
Media Library /wp-admin/upload.php1,558 ▲1704.80 ▲0.6587.57 ▼20.6743.28 ▼4.37

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • _cs_options
    • theysaidso_admin_options

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 everything seems fine, this is not 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/woo-animated-grid/public/partials/woo-animated-grid-public-display.php
    • > /wp-content/plugins/woo-animated-grid/admin/partials/woo-animated-grid-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

woo-animated-grid/woo-animated-grid.php 92% from 13 tests

The entry point to "woocommerce grid" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin28,120 lines of code in 95 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,928
JavaScript151,1559234,925
CSS8170524,009
PHP561,1601,4393,072
Sass528701,837
SVG100640
PO File6261285601
Markdown118097
XML10011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity10.66
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes38
▷ Abstract classes25.26%
▷ Concrete classes3694.74%
▷ Final classes00.00%
Methods119
▷ Static methods65.04%
▷ Public methods11495.80%
▷ Protected methods00.00%
▷ Private methods54.20%
Functions43
▷ Named functions43100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/10.png6.47KB6.93KB0.00%
public/images/13.png26.49KB28.51KB0.00%
cs-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%
cs-framework/assets/images/chosen-sprite.png0.63KB0.88KB0.00%
public/images/11.png12.99KB13.94KB0.00%