84% genesis-grid-loop

Code Review | Genesis Grid

WordPress plugin Genesis Grid scored84%from 54 tests.

About plugin

  • Plugin page: genesis-grid-loop
  • Plugin version: 1.4.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Sep 21, 2012
  • Latest release: Aug 19, 2020
  • Number of updates: 15
  • Update frequency: every 193.2 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

3,000+ active /68,039 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Genesis Grid
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.23 ▼1.92
Dashboard /wp-admin3.31 ▲0.0046.38 ▼4.65
Posts /wp-admin/edit.php3.36 ▲0.0049.48 ▲0.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.81 ▼13.73
Media Library /wp-admin/upload.php3.23 ▲0.0037.50 ▲0.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Genesis Grid: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.72 ▲0.452.14 ▲0.3041.40 ▼0.40
Dashboard /wp-admin2,198 ▲245.60 ▲0.0291.12 ▲3.3142.67 ▼0.14
Posts /wp-admin/edit.php2,103 ▲31.94 ▼0.0837.97 ▼2.4240.93 ▲1.37
Add New Post /wp-admin/post-new.php1,526 ▼223.31 ▲0.35656.02 ▼43.4051.51 ▼16.44
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0096.44 ▼10.9644.16 ▼3.14

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/genesis-grid-loop/plugin.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: genesis, grid, loop, genesiswp

genesis-grid-loop/plugin.php 85% from 13 tests

The primary PHP file in "Genesis Grid" version 1.4.2 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("genesis-grid-loop.php" instead of "plugin.php")
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin387 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP192157255
PO File25392132

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity29.00
▷ Minimum class complexity7.00
▷ Maximum class complexity51.00
Average method complexity5.31
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin