84% featured-image-column-display

Code Review | Featured Image Column Display

WordPress plugin Featured Image Column Display scored84%from 54 tests.

About plugin

  • Plugin page: featured-image-co...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Jul 17, 2019
  • Number of updates: 9
  • Update frequency: every 117.2 days
  • Top authors: ssdheerawat (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /1,407 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
Installer ran successfully

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

An overview of server-side resources used by Featured Image Column Display
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.16 ▲1.94
Dashboard /wp-admin3.31 ▲0.0146.38 ▼1.86
Posts /wp-admin/edit.php3.37 ▲0.0150.27 ▲6.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.00 ▼13.31
Media Library /wp-admin/upload.php3.24 ▲0.0134.87 ▲4.17

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Featured Image Column Display: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.25 ▼1.131.79 ▼0.2440.82 ▼1.76
Dashboard /wp-admin2,206 ▲244.83 ▼1.02111.85 ▼4.3136.72 ▼6.85
Posts /wp-admin/edit.php2,106 ▲171.98 ▼0.0837.40 ▼3.3133.71 ▼3.13
Add New Post /wp-admin/post-new.php1,533 ▼923.31 ▲4.97679.21 ▲24.9862.83 ▲5.58
Media Library /wp-admin/upload.php1,385 ▼04.22 ▲0.0191.84 ▼14.9540.01 ▼6.01

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/featured-image-column-display/featured-image-column-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Screenshot shows the "Featured Image" column added in Posts list.) image not found
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

featured-image-column-display/featured-image-column-display.php Passed 13 tests

The principal PHP file in "Featured Image Column Display" v. 2.0 is loaded by WordPress automatically on each request
76 characters long description:
A plugin that adds the "Featured Image" column in post type listing display.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121424

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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

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