10% genesis-content-blurbs

Code Review | Genesis Content Blurbs

WordPress plugin Genesis Content Blurbs scored 10% from 54 tests.

About plugin

  • Plugin page: genesis-content-b...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 5.8.1
  • First release: Sep 30, 2014
  • Latest release: Jan 12, 2015
  • Number of updates: 7
  • Update frequency: every 17.0 days
  • Top authors: James Roberts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 727 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/genesis-content-blurbs/content-blurbs.php+20
    Function create_function() is deprecated

Server metrics [RAM: ▼1.84MB] [CPU: ▼196.43ms] Passed 4 tests

Server-side resources used by Genesis Content Blurbs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼0.935.17 ▼23.75
Dashboard /wp-admin1.82 ▼1.2414.39 ▼31.97
Posts /wp-admin/edit.php1.82 ▼1.307.91 ▼49.56
Add New Post /wp-admin/post-new.php1.82 ▼3.627.55 ▼675.99
Media Library /wp-admin/upload.php1.82 ▼1.195.13 ▼28.18

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 1 new option
New WordPress options
widget_lp-content-blurb

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Content Blurbs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.25 ▲0.7226.15 ▲15.1172.70 ▲22.93
Dashboard /wp-admin2,970 ▲395.92 ▲0.00163.33 ▲10.64135.49 ▼9.33
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0077.90 ▲7.59116.70 ▲9.13
Add New Post /wp-admin/post-new.php1,581 ▼10216.43 ▼2.31446.29 ▲53.81130.72 ▲16.08
Media Library /wp-admin/upload.php1,807 ▼05.07 ▲0.03190.55 ▲31.73148.13 ▲28.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/genesis-content-blurbs/content-blurbs.php+20
    Function create_function() is deprecated
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_lp-content-blurb

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/genesis-content-blurbs/views/widget.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/genesis-content-blurbs/content-blurbs.php:20
    • > PHP Notice
      Undefined variable: text in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 32
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 31
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/genesis-content-blurbs/views/admin.php:2
    • > PHP Notice
      Undefined variable: layout in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 8
    • > PHP Notice
      Undefined variable: image in wp-content/plugins/genesis-content-blurbs/views/widget.php on line 28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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:
  • Tags: Please add at least on tag
You can take inspiration from this readme.txt

genesis-content-blurbs/content-blurbs.php 92% from 13 tests

The main PHP script in "Genesis Content Blurbs" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("genesis-content-blurbs.php" instead of "content-blurbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin252 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP33987132
CSS418595
JavaScript25125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/img/layout-blurb-2.png3.79KB0.45KB▼ 88.12%
views/img/layout-blurb-1.png3.67KB0.42KB▼ 88.55%