84% featured-image-column

Code Review | Featured Image Column

WordPress plugin Featured Image Column scored84%from 54 tests.

About plugin

  • Plugin page: featured-image-co...
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Sep 14, 2011
  • Latest release: Jun 25, 2017
  • Number of updates: 37
  • Update frequency: every 57.1 days
  • Top authors: austyfrosty (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active /39,953 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.03MB] [CPU: ▼8.88ms] Passed 4 tests

This is a short check of server-side resources used by Featured Image Column
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.13 ▲0.55
Dashboard /wp-admin3.35 ▼0.0047.69 ▼15.41
Posts /wp-admin/edit.php3.40 ▲0.0446.65 ▲0.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.42 ▼19.10
Media Library /wp-admin/upload.php3.27 ▲0.0436.87 ▼1.54
Featured Image Col /wp-admin/options-general.php?page=featured-image-column3.2431.43

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
featured_image_column
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Featured Image Column: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.051.65 ▼0.0540.74 ▲0.90
Dashboard /wp-admin2,204 ▲165.84 ▼0.0297.93 ▼3.3136.94 ▼7.84
Posts /wp-admin/edit.php2,102 ▲132.00 ▼0.0136.66 ▲2.1833.86 ▼1.06
Add New Post /wp-admin/post-new.php1,517 ▼617.38 ▼6.15664.96 ▼32.3659.14 ▼12.21
Media Library /wp-admin/upload.php1,392 ▲74.21 ▲0.0695.15 ▼6.6542.04 ▼4.53
Featured Image Col /wp-admin/options-general.php?page=featured-image-column8222.0626.2929.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • featured_image_column
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function TheFrosty\\add_action() in wp-content/plugins/featured-image-column/featured-image-column.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/featured-image-column/views/settings.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

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
3 plugin tags: admin, column, featured image

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

The principal PHP file in "Featured Image Column" v. 0.3.2 is loaded by WordPress automatically on each request
70 characters long description:
Adds a column to the edit screen with the featured image if it exists.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected176 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP240109165
CSS10011

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity2.54
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods969.23%
▷ Protected methods430.77%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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.png4.14KB0.53KB▼ 87.29%