94% genesis-featured-content-widget

Code Review | Genesis Sandbox Featured Content Widget

WordPress plugin Genesis Sandbox Featured Content Widget scored 94% from 54 tests.

About plugin

  • Plugin page: genesis-featured-...
  • Plugin version: 1.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 5.8.1
  • First release: Dec 10, 2013
  • Latest release: Nov 29, 2017
  • Number of updates: 18
  • Update frequency: every 81.6 days
  • Top authors: wpsmith (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

4,000+ active / 27,981 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼146.49ms] Passed 4 tests

A check of server-side resources used by Genesis Sandbox Featured Content Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.13 ▲0.4135.75 ▲12.29
Dashboard /wp-admin3.35 ▲0.3047.16 ▼5.25
Posts /wp-admin/edit.php3.47 ▲0.3649.69 ▲1.90
Add New Post /wp-admin/post-new.php5.71 ▲0.2892.83 ▼585.91
Media Library /wp-admin/upload.php3.30 ▲0.3038.73 ▲3.30

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Sandbox Featured Content Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.26 ▲0.777.39 ▼5.3953.17 ▲2.19
Dashboard /wp-admin2,973 ▲425.86 ▼0.20136.37 ▼14.70117.84 ▼2.44
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0068.45 ▼5.87106.10 ▲10.80
Add New Post /wp-admin/post-new.php1,683 ▼018.43 ▼0.01363.57 ▼31.95119.90 ▲3.93
Media Library /wp-admin/upload.php1,807 ▼35.02 ▲0.00154.70 ▼10.92128.65 ▲2.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 fix the following items
  • 3× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-featured-content-widget/gs-featured-content-widget.php
    • > /wp-content/plugins/genesis-featured-content-widget/gsfc-settings.php
    • > /wp-content/plugins/genesis-featured-content-widget/widget.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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: genesis, featured post, studiopress, genesiswp, cu

genesis-featured-content-widget/gs-featured-content-widget.php 85% from 13 tests

This is the main PHP file of "Genesis Sandbox Featured Content Widget" version 1.2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 263 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("genesis-featured-content-widget.php" instead of "gs-featured-content-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,870 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity71.33
▷ Minimum class complexity5.00
▷ Maximum class complexity202.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods4473.33%
▷ Public methods5388.33%
▷ Protected methods711.67%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.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
There are no PNG files in this plugin