84% genesis-featured-page-extras

Code Review | Genesis Featured Page Extras

WordPress plugin Genesis Featured Page Extras scored84%from 54 tests.

About plugin

  • Plugin page: genesis-featured-...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 20, 2014
  • Latest release: Feb 21, 2019
  • Number of updates: 15
  • Update frequency: every 123.9 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /16,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.48ms] Passed 4 tests

Server-side resources used by Genesis Featured Page Extras
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0046.37 ▲1.92
Dashboard /wp-admin3.31 ▼0.0456.39 ▼8.33
Posts /wp-admin/edit.php3.36 ▲0.0049.98 ▲1.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.48 ▼15.30
Media Library /wp-admin/upload.php3.23 ▲0.0037.64 ▲0.64

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Featured Page Extras
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.25 ▼0.311.83 ▲0.0345.11 ▲4.55
Dashboard /wp-admin2,195 ▲235.62 ▼0.0491.96 ▼20.0138.42 ▼5.48
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0439.23 ▲2.1435.30 ▼2.75
Add New Post /wp-admin/post-new.php1,526 ▼223.81 ▲0.71634.44 ▼44.3653.88 ▼6.63
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.06101.24 ▼12.8145.85 ▼3.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

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 no errors were found, 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 fix the following items
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/genesis-featured-page-extras/includes/gfpe-admin-extras.php
    • > /wp-content/plugins/genesis-featured-page-extras/includes/gfpe-widget-featured-page-extras.php
    • > /wp-content/plugins/genesis-featured-page-extras/includes/gfpe-widget-featured-page-extras-form.php
    • > /wp-content/plugins/genesis-featured-page-extras/genesis-featured-page-extras.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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Requires at least: Version format is invalid
You can look at the official readme.txt

genesis-featured-page-extras/genesis-featured-page-extras.php Passed 13 tests

The main PHP file in "Genesis Featured Page Extras" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
Extra advanced version of the Genesis Featured Page widget. This plugin is for the (premium) Genesis Framework 2.0+ only!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,241 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP6335476730
PO File2227257479
JavaScript2112132

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity11.33
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 were not PNG files found in your plugin