78% post-list-featured-image

Code Review | Post List Featured Image

WordPress plugin Post List Featured Image scored78%from 54 tests.

About plugin

  • Plugin page: post-list-feature...
  • Plugin version: 0.5.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 17, 2013
  • Latest release: Apr 4, 2016
  • Number of updates: 73
  • Update frequency: every 17.2 days
  • Top authors: pcgrejaldo (79.45%)JAkzam (21.92%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /36,314 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.65ms] 75% from 4 tests

Server-side resources used by Post List Featured Image
The following require your attention
  • CPU: The total CPU usage must kept under 500.00ms (currently 743.58ms on /wp-admin/upload.php?page=plfi-settings)
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.09 ▼3.10
Dashboard /wp-admin3.47 ▲0.1747.57 ▼1.64
Posts /wp-admin/edit.php3.59 ▲0.2350.96 ▲5.38
Add New Post /wp-admin/post-new.php6.05 ▲0.1792.16 ▼11.24
Media Library /wp-admin/upload.php3.39 ▲0.1741.19 ▲8.70
Featured Image Settings /wp-admin/upload.php?page=plfi-settings3.53743.58

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Post List Featured Image: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.211.58 ▼0.2138.69 ▼5.64
Dashboard /wp-admin2,210 ▲255.87 ▲0.02106.44 ▼18.2541.98 ▼4.75
Posts /wp-admin/edit.php2,144 ▲551.98 ▼0.0240.45 ▼0.1136.70 ▲1.04
Add New Post /wp-admin/post-new.php1,533 ▲1423.26 ▲0.45646.42 ▲34.6760.95 ▲7.59
Media Library /wp-admin/upload.php1,389 ▲14.20 ▲0.05100.02 ▲0.5240.83 ▼2.68
Featured Image Settings /wp-admin/upload.php?page=plfi-settings1,93216.95425.57130.19

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 15× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/Lib/Debugger.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/Model.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/View/admin-page-go-pro.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/Lib/TabsData.php
    • > /wp-content/plugins/post-list-featured-image/autoload.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/View/settings-tab.php
    • > /wp-content/plugins/post-list-featured-image/post-list-featured-image.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/Controller/Admin.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/Lib/Helper.php
    • > /wp-content/plugins/post-list-featured-image/PostListFeaturedImage/View/help-tab.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/upload.php?page=plfi-settings
    • > Network (severe)
    http://jaggededgemedia.com/wp-content/uploads/2013/05/cropped-logo-icon-lg-300x60.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/upload.php?page=plfi-settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/upload.php?page=plfi-settings
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/upload.php?page=plfi-settings
    • > Javascript (severe) in unknown
    http://platform.twitter.com/widgets.js 7:45852 Uncaught (in promise)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #5 (Screenshot shows the "Featured Image Settings" menu.) image required
  • Requires at least: Invalid plugin version format
The official readme.txt might help

post-list-featured-image/post-list-featured-image.php Passed 13 tests

The primary PHP file in "Post List Featured Image" version 0.5.9 is used by WordPress to initiate all plugin functionality
55 characters long description:
Adds a featured image column in admin Posts/Pages list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,357 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP152382061,340
CSS41210831
Sass1240138
JavaScript25048

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity15.00
▷ Minimum class complexity3.00
▷ Maximum class complexity38.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods73
▷ Static methods3547.95%
▷ Public methods6589.04%
▷ Protected methods810.96%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants337.50%
▷ Class constants562.50%
▷ Public constants5100.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
There were not PNG files found in your plugin