94% add-featured-image-to-genesis-cpt-archive

Code Review | Add Featured Image To Genesis CPT Archive

WordPress plugin Add Featured Image To Genesis CPT Archive scored 94% from 54 tests.

About plugin

  • Plugin page: add-featured-imag...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 5.9.2
  • First release: May 13, 2019
  • Latest release: May 13, 2019
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: stevejonesdev (75%)roadwarriorwp (50%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 439 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.02MB] [CPU: ▼292.28ms] Passed 4 tests

This is a short check of server-side resources used by Add Featured Image To Genesis CPT Archive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.56 ▲2.66
Dashboard /wp-admin3.41 ▲0.0034.07 ▼0.88
Posts /wp-admin/edit.php3.64 ▲0.0041.37 ▲4.69
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.59 ▼1,163.38
Media Library /wp-admin/upload.php3.29 ▼0.0124.97 ▼7.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add Featured Image To Genesis CPT Archive: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.82 ▲0.137.52 ▲1.612.24 ▼0.30
Dashboard /wp-admin2,888 ▲306.12 ▼0.06114.92 ▼20.36155.40 ▼2.01
Posts /wp-admin/edit.php2,694 ▲93.24 ▲0.0064.61 ▲1.08141.08 ▼5.93
Add New Post /wp-admin/post-new.php1,623 ▼8819.19 ▼2.12396.58 ▼37.46148.86 ▼5.82
Media Library /wp-admin/upload.php1,701 ▲35.54 ▲0.01140.05 ▼2.28184.23 ▼9.92

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/add-featured-image-to-genesis-cpt-archive/add-featured-image-to-genesis-cpt-archive.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: custom post type, genesis, archive

add-featured-image-to-genesis-cpt-archive/add-featured-image-to-genesis-cpt-archive.php Passed 13 tests

The main file in "Add Featured Image To Genesis CPT Archive" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
Adds an image uploader to the custom post type archive settings page in Genesis, which can be used in theme development.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin81 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101761
JavaScript191220

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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