84% 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 84% 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: 6.3.1
  • 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

30+ active / 714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Server-side resources used by Add Featured Image To Genesis CPT Archive
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.72 ▼9.50
Dashboard /wp-admin3.31 ▲0.0064.28 ▲15.83
Posts /wp-admin/edit.php3.36 ▲0.0047.90 ▼11.14
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.06 ▼5.30
Media Library /wp-admin/upload.php3.23 ▲0.0036.78 ▲3.24

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Add Featured Image To Genesis CPT Archive
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.015.23 ▲3.0541.42 ▲2.62
Dashboard /wp-admin2,206 ▲185.84 ▲0.95109.87 ▼6.4545.43 ▼0.60
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0141.23 ▲0.0834.29 ▼4.08
Add New Post /wp-admin/post-new.php1,533 ▼023.41 ▲0.04687.96 ▼0.6648.74 ▼7.86
Media Library /wp-admin/upload.php1,388 ▲34.30 ▲0.1095.62 ▼10.7342.98 ▼2.18

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /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 shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: genesis, custom post type, archive

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

The primary PHP file in "Add Featured Image To Genesis CPT Archive" version 2.0 is used by WordPress to initiate all plugin functionality
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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected81 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101761
JavaScript191220

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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
No PNG images were found in this plugin