89% featured-image-add-in-admin-column

Code Review | Featured Image Add in Admin Column

WordPress plugin Featured Image Add in Admin Column scored89%from 54 tests.

About plugin

  • Plugin page: featured-image-ad...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 24, 2021
  • Latest release: Jul 26, 2023
  • Number of updates: 11
  • Update frequency: every 52.7 days
  • Top authors: yasirkhalifa (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /356 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.01MB] [CPU: ▼0.78ms] Passed 4 tests

An overview of server-side resources used by Featured Image Add in Admin Column
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.23 ▼1.31
Dashboard /wp-admin3.31 ▲0.0145.56 ▼1.74
Posts /wp-admin/edit.php3.36 ▲0.0153.74 ▲2.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.28 ▲0.68
Media Library /wp-admin/upload.php3.24 ▲0.0134.09 ▼0.75

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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Featured Image Add in Admin Column
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲6613.58 ▼0.741.89 ▼0.0940.06 ▼9.14
Dashboard /wp-admin2,212 ▲245.86 ▲0.0498.92 ▼2.4239.83 ▼2.55
Posts /wp-admin/edit.php2,098 ▲62.00 ▼0.0739.92 ▼2.0234.73 ▼1.47
Add New Post /wp-admin/post-new.php1,552 ▲2418.32 ▲0.11618.16 ▼22.7252.84 ▼9.45
Media Library /wp-admin/upload.php1,400 ▲124.22 ▲0.0195.49 ▼10.3341.16 ▼2.92

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

featured-image-add-in-admin-column/fateh-feature-image.php 92% from 13 tests

This is the main PHP file of "Featured Image Add in Admin Column" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-image-add-in-admin-column.php" instead of "fateh-feature-image.php")

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
Good job! No executable or dangerous file extensions detected72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291172

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin