73% genesis-layout-extras

Code Review | Genesis Layout Extras - Default Layouts in Genesis for WordPress

WordPress plugin Genesis Layout Extras - Default Layouts in Genesis for WordPress scored73%from 54 tests.

About plugin

  • Plugin page: genesis-layout-ex...
  • Plugin version: 2.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 1, 2011
  • Latest release: Nov 13, 2019
  • Number of updates: 73
  • Update frequency: every 40.6 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

5,000+ active /176,238 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Genesis Layout Extras - Default Layouts in Genesis for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.14 ▼6.65
Dashboard /wp-admin3.31 ▲0.0051.21 ▼0.04
Posts /wp-admin/edit.php3.36 ▲0.0048.69 ▼1.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.78 ▼8.81
Media Library /wp-admin/upload.php3.23 ▲0.0038.77 ▲1.59

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Layout Extras - Default Layouts in Genesis for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.52 ▲0.281.64 ▼0.3945.96 ▲2.93
Dashboard /wp-admin2,198 ▲305.62 ▲0.0896.09 ▲5.1242.54 ▲0.17
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0837.14 ▼0.7733.18 ▼5.93
Add New Post /wp-admin/post-new.php1,526 ▼023.58 ▲0.45671.40 ▲62.2258.32 ▲11.14
Media Library /wp-admin/upload.php1,400 ▼34.09 ▼0.14101.23 ▼4.6246.82 ▲1.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/genesis-layout-extras/uninstall.php+74
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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)
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 fix the following
  • 20× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/genesis-layout-extras/includes/admin/views/gle-admin-help-plugins.php
    • > /wp-content/plugins/genesis-layout-extras/includes/admin/gle-admin-extras.php
    • > /wp-content/plugins/genesis-layout-extras/uninstall.php
    • > /wp-content/plugins/genesis-layout-extras/includes/gle-frontend.php
    • > /wp-content/plugins/genesis-layout-extras/includes/gle-unload-translations.php
    • > /wp-content/plugins/genesis-layout-extras/includes/gle-functions-global.php
    • > /wp-content/plugins/genesis-layout-extras/includes/admin/views/gle-admin-options-plugins.php
    • > /wp-content/plugins/genesis-layout-extras/includes/admin/views/gle-admin-options-themedy.php
    • > /wp-content/plugins/genesis-layout-extras/genesis-layout-extras.php
    • > /wp-content/plugins/genesis-layout-extras/includes/admin/classes/ddwlib-plir/ddwlib-plugin-installer-recommendations.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires at least: Version not formatted correctly
  • Tags: Please delete some tags, you are using 19 tag instead of maximum 10
The official readme.txt is a good inspiration

genesis-layout-extras/genesis-layout-extras.php 92% from 13 tests

The primary PHP file in "Genesis Layout Extras - Default Layouts in Genesis for WordPress" version 2.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 246 characters long)

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 plugin7,120 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP221,6141,9113,393
PO File26561,7242,215
CSS23303232894
Markdown32880596
JSON10022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity43.00
▷ Minimum class complexity35.00
▷ Maximum class complexity51.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1657.14%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions96
▷ Named functions96100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
9 PNG files occupy 0.54MB with 0.41MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-gest.png69.09KB16.67KB▼ 75.86%
assets/images/icon-tbex.png63.41KB15.36KB▼ 75.78%
assets/images/icon-gwfoot.png67.48KB15.87KB▼ 76.47%
assets/images/icon-gwat.png69.75KB16.92KB▼ 75.74%
assets/images/icon-gle.png67.10KB16.31KB▼ 75.69%