84% inherit-featured-image

Code Review | JSM Inherit Parent Featured Image

WordPress plugin JSM Inherit Parent Featured Image scored84%from 54 tests.

About plugin

  • Plugin page: inherit-featured-...
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.2.34+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.0
  • WordPress version: 6.3.1
  • First release: Dec 1, 2013
  • Latest release: Oct 18, 2023
  • Number of updates: 551
  • Update frequency: every 6.6 days
  • Top authors: jsmoriss (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /6,760 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
Installer ran successfully

Server metrics [RAM: ▼0.34MB] [CPU: ▼17.04ms] Passed 4 tests

This is a short check of server-side resources used by JSM Inherit Parent Featured Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0332.53 ▼6.18
Dashboard /wp-admin3.32 ▲0.0246.33 ▼9.65
Posts /wp-admin/edit.php3.29 ▼0.0737.29 ▼5.11
Add New Post /wp-admin/post-new.php4.62 ▼1.2740.97 ▼47.23
Media Library /wp-admin/upload.php3.25 ▲0.0138.61 ▲8.33

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for JSM Inherit Parent Featured Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.051.67 ▲0.0144.09 ▼0.72
Dashboard /wp-admin2,189 ▲95.64 ▼0.0292.41 ▼8.1643.52 ▲0.98
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0634.51 ▼2.0934.29 ▲1.37
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.33670.03 ▲69.4852.33 ▲1.93
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.08100.24 ▼0.0244.14 ▲0.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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 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× PHP files output text when accessed directly:
    • > /wp-content/plugins/inherit-featured-image/inherit-featured-image.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: featured, parent, inherit, image

inherit-featured-image/inherit-featured-image.php Passed 13 tests

The main PHP script in "JSM Inherit Parent Featured Image" version 2.1.1 is automatically included on every request by WordPress
94 characters long description:
Inherit the featured image from the Post, Page, or Custom Post Type parent, grand-parent, etc.

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
Everything looks great! No dangerous files found in this plugin116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1495074
PO File15525
Markdown17017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods466.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin