84% post-list-with-featured-image

Code Review | Post List With Featured Image

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

About plugin

  • Plugin page: post-list-with-fe...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Aug 25, 2023
  • Number of updates: 37
  • Update frequency: every 64.3 days
  • Top authors: ddpatel4241 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /6,297 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.25ms] Passed 4 tests

A check of server-side resources used by Post List With Featured Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0647.66 ▲6.27
Dashboard /wp-admin3.36 ▲0.0650.03 ▼4.66
Posts /wp-admin/edit.php3.41 ▲0.0650.07 ▼0.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.05 ▼12.97
Media Library /wp-admin/upload.php3.28 ▲0.0641.37 ▲4.94
Post With Featured Image Setting /wp-admin/options-general.php?page=dp-post-with-image3.2532.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Post List With Featured Image
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.421.67 ▼0.2340.27 ▼6.32
Dashboard /wp-admin2,207 ▲194.86 ▼1.0097.54 ▼20.1143.78 ▼0.60
Posts /wp-admin/edit.php2,106 ▲172.04 ▼0.0236.32 ▼1.8236.04 ▲1.94
Add New Post /wp-admin/post-new.php1,536 ▲823.32 ▲5.07671.36 ▼26.8551.96 ▼1.96
Media Library /wp-admin/upload.php1,395 ▲44.28 ▼0.0598.64 ▼10.6046.79 ▼2.95
Post With Featured Image Setting /wp-admin/options-general.php?page=dp-post-with-image8882.0627.0556.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/post-list-with-featured-image/post_image.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-list-with-featured-image/post_image_admin.php:6

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 96% from 29 tests

readme.txt Passed 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
6 plugin tags: post list, post list with image, post list customization, featured image at post list, admin customization...

post-list-with-featured-image/post_lwf_image.php 92% from 13 tests

The primary PHP file in "Post List With Featured Image" version 1.2.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-list-with-featured-image.php" instead of "post_lwf_image.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected211 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4912132
CSS27565
JavaScript11114

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/dummy-150x150.png11.48KB7.96KB▼ 30.68%