84% simple-featured-image-column

Code Review | Simple Featured Image Column

WordPress plugin Simple Featured Image Column scored 84% from 54 tests.

About plugin

  • Plugin page: simple-featured-i...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Nov 25, 2017
  • Latest release: Jul 3, 2019
  • Number of updates: 15
  • Update frequency: every 39.1 days
  • Top authors: dedevillela (100%)Otto42 (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,604 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Simple Featured Image Column
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.48 ▲6.14
Dashboard /wp-admin3.32 ▲0.0148.89 ▼2.34
Posts /wp-admin/edit.php3.37 ▲0.0146.48 ▼1.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.33 ▼2.80
Media Library /wp-admin/upload.php3.24 ▲0.0135.15 ▲0.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Featured Image Column
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6813.30 ▼1.121.66 ▼0.0542.76 ▼12.82
Dashboard /wp-admin2,209 ▲185.85 ▲0.97111.20 ▲11.4242.57 ▼2.56
Posts /wp-admin/edit.php2,105 ▲132.12 ▲0.0834.85 ▼1.0632.22 ▲2.17
Add New Post /wp-admin/post-new.php1,545 ▲1223.12 ▼0.13666.22 ▼11.7258.50 ▼15.42
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0795.89 ▼11.2841.75 ▼4.54

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-featured-image-column/simple-featured-image-column.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: column, featured image, admin

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

The primary PHP file in "Simple Featured Image Column" version 1.0.7 is used by WordPress to initiate all plugin functionality
125 characters long description:
A simple plugin that displays the "Featured Image" column in admin post type listing. Supports Posts, Pages and Custom Posts.

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
Everything looks great! No dangerous files found in this plugin66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151144
PO File16822

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/default.png3.04KB1.65KB▼ 45.64%