84% genesis-simple-hero-image

Code Review | Genesis Simple Hero Image

WordPress plugin Genesis Simple Hero Image scored 84% from 54 tests.

About plugin

  • Plugin page: genesis-simple-he...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.1
  • WordPress version: 6.3.1
  • First release: Dec 20, 2014
  • Latest release: Jan 22, 2015
  • Number of updates: 11
  • Update frequency: every 3.0 days
  • Top authors: joshmedeski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Genesis Simple Hero Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.78 ▼5.39
Dashboard /wp-admin3.32 ▲0.0249.01 ▲5.81
Posts /wp-admin/edit.php3.37 ▲0.0146.84 ▼3.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.84 ▼59.95
Media Library /wp-admin/upload.php3.24 ▲0.0134.42 ▼3.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Genesis Simple Hero Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.16 ▼1.201.72 ▼0.1043.37 ▼3.32
Dashboard /wp-admin2,203 ▲155.83 ▼0.0296.86 ▼2.4138.49 ▼2.38
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0435.59 ▼5.2731.50 ▼4.37
Add New Post /wp-admin/post-new.php1,533 ▼923.14 ▲4.94659.07 ▲21.7157.57 ▼2.95
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0195.87 ▼1.3541.27 ▼2.06

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following
  • 1× 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-simple-hero-image/genesis-simple-hero-image.php:14

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === genesis-simple-hero-image === )
Please take inspiration from this readme.txt

genesis-simple-hero-image/genesis-simple-hero-image.php Passed 13 tests

The primary PHP file in "Genesis Simple Hero Image" version 1.1.6 is used by WordPress to initiate all plugin functionality
70 characters long description:
Adds a hero image to the top of your site using the Genesis Framework.

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
There were no executable files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211766

PHP code Passed 2 tests

This is a short overview 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.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected