84% display-featured-image-in-post-list

Code Review | Display Featured Image In Post List

WordPress plugin Display Featured Image In Post List scored84%from 54 tests.

About plugin

  • Plugin page: display-featured-...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2022
  • Latest release: Nov 18, 2023
  • Number of updates: 9
  • Update frequency: every 74.9 days
  • Top authors: suhassurse (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /7,427 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Display Featured Image In Post List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.57 ▲5.56
Dashboard /wp-admin3.31 ▼0.0343.62 ▼19.11
Posts /wp-admin/edit.php3.37 ▲0.0148.70 ▲2.06
Add New Post /wp-admin/post-new.php5.89 ▲0.01174.01 ▲79.38
Media Library /wp-admin/upload.php3.24 ▲0.0135.53 ▲2.50

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Display Featured Image In Post List: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.33 ▼0.381.73 ▲0.0746.41 ▲1.23
Dashboard /wp-admin2,195 ▲185.62 ▼0.0494.37 ▼4.6336.22 ▼7.58
Posts /wp-admin/edit.php2,109 ▲91.95 ▼0.0439.69 ▼0.5637.72 ▲0.40
Add New Post /wp-admin/post-new.php1,526 ▼023.77 ▲0.57697.28 ▲15.3457.75 ▲9.27
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.02107.16 ▲6.5844.93 ▼0.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/display-featured-image-in-post-list/display-featured-image-in-post-list.php:25

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: post, featured image, featured image list

display-featured-image-in-post-list/display-featured-image-in-post-list.php 92% from 13 tests

The principal PHP file in "Display Featured Image In Post List" v. 2.4 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)

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
Good job! No executable or dangerous file extensions detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.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
PNG images were not found in this plugin