89% set-featured-images-for-individual-posts

Code Review | Set featured images for individual posts

WordPress plugin Set featured images for individual posts scored89%from 54 tests.

About plugin

  • Plugin page: set-featured-imag...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0-5.7
  • WordPress version: 6.3.1
  • First release: Jul 19, 2021
  • Latest release: Jul 19, 2021
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: atmiya25 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Set featured images for individual posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.39 ▼8.90
Dashboard /wp-admin3.31 ▲0.0147.53 ▼7.39
Posts /wp-admin/edit.php3.36 ▲0.0147.66 ▲3.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.44 ▼0.32
Media Library /wp-admin/upload.php3.24 ▲0.0140.22 ▲1.74
Featured Image /wp-admin/options-general.php?page=set-featured-images-into-post3.2034.90

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Set featured images for individual posts: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.74 ▲0.1042.79 ▼3.82
Dashboard /wp-admin2,202 ▲225.57 ▼0.0986.43 ▼4.4639.05 ▼3.18
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0334.25 ▼10.0336.32 ▼0.05
Add New Post /wp-admin/post-new.php1,541 ▲1518.30 ▼4.90644.56 ▲29.1289.38 ▲29.86
Media Library /wp-admin/upload.php1,398 ▲44.13 ▼0.05102.33 ▲2.5545.45 ▲1.66
Featured Image /wp-admin/options-general.php?page=set-featured-images-into-post8242.0223.4524.81

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (WordPress Admin Dashboard Set featured images for individual posts in Settings Page), #2 (Settings for Featured Image Settings size Like full, large, medium and thumbnail.), #3 (Final Results)
You can look at the official readme.txt

set-featured-images-for-individual-posts/set-featured-images-for-individual-posts.php 92% from 13 tests

The main file in "Set featured images for individual posts" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP185156

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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
PNG images were not found in this plugin