100% add-featured-image-column

Code Review | Add Featured Image Column

WordPress plugin Add Featured Image Column scored 100% from 54 tests.

About plugin

  • Plugin page: add-featured-imag...
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.6
  • WordPress version: 5.9.2
  • First release: Sep 11, 2015
  • Latest release: Nov 29, 2020
  • Number of updates: 25
  • Update frequency: every 76.4 days
  • Top authors: littler.chicken (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active / 20,033 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Add Featured Image Column
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0351.64 ▲3.91
Dashboard /wp-admin3.45 ▲0.0537.34 ▲5.14
Posts /wp-admin/edit.php3.68 ▲0.0436.93 ▼0.39
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.71 ▼1,156.41
Media Library /wp-admin/upload.php3.33 ▲0.0424.39 ▼0.73

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Add Featured Image Column
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2115.94 ▲0.805.77 ▼0.142.06 ▲0.02
Dashboard /wp-admin2,895 ▲346.11 ▼0.09118.67 ▼14.26156.73 ▼3.42
Posts /wp-admin/edit.php2,718 ▲273.25 ▲0.0162.66 ▼1.60142.22 ▲2.61
Add New Post /wp-admin/post-new.php1,696 ▼220.98 ▼0.04422.22 ▼20.86156.25 ▲2.83
Media Library /wp-admin/upload.php1,695 ▼35.53 ▲0.07147.62 ▲0.08190.35 ▲4.68

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

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, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: featured image, admin columns

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

The primary PHP file in "Add Featured Image Column" version 1.1.6 is used by WordPress to initiate all plugin functionality
64 characters long description:
This plugin adds a featured image column to the WordPress admin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin137 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
There were not PNG files found in your plugin