94% add-featuredimage-to-all-posts

Code Review | Featured image to All-Posts

WordPress plugin Featured image to All-Posts scored 94% from 54 tests.

About plugin

  • Plugin page: add-featuredimage...
  • Plugin version: 1.8.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.3
  • WordPress version: 5.9.2
  • First release: Nov 13, 2015
  • Latest release: Jan 26, 2022
  • Number of updates: 23
  • Update frequency: every 98.5 days
  • Top authors: yuya2since (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 4,086 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Featured image to All-Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0253.20 ▲6.33
Dashboard /wp-admin3.43 ▲0.0233.23 ▼0.99
Posts /wp-admin/edit.php3.66 ▲0.0239.66 ▲1.98
Add New Post /wp-admin/post-new.php6.90 ▼0.0894.69 ▼1,156.79
Media Library /wp-admin/upload.php3.31 ▲0.0125.78 ▲0.66

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured image to All-Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2116.18 ▲0.595.65 ▼0.492.56 ▲0.41
Dashboard /wp-admin2,895 ▲346.13 ▼0.00116.99 ▼21.51156.92 ▼7.61
Posts /wp-admin/edit.php2,707 ▲163.24 ▲0.0264.39 ▲1.41140.71 ▼3.19
Add New Post /wp-admin/post-new.php1,711 ▼4121.01 ▲0.20427.53 ▼63.06161.46 ▲8.59
Media Library /wp-admin/upload.php1,701 ▲35.49 ▼0.00145.36 ▲6.32187.80 ▼0.53

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
This plugin's uninstaller ran successfully

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 | 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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/add-featuredimage-to-all-posts/add-featuredimage-to-all-posts.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention: The official readme.txt is a good inspiration

add-featuredimage-to-all-posts/add-featuredimage-to-all-posts.php Passed 13 tests

"Featured image to All-Posts" version 1.8.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Add thumbnails of featured image to a column of admin All Posts page. No complecated settings.

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
Success! There were no dangerous files found in this plugin72 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1213244
PO File151028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin