84% add-featuredimage-to-all-posts

Code Review | Featured image to All-Posts

WordPress plugin Featured image to All-Posts scored84%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: 6.3.1
  • 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,574 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

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.47 ▲0.0136.29 ▼0.48
Dashboard /wp-admin3.32 ▲0.0252.33 ▲6.00
Posts /wp-admin/edit.php3.37 ▲0.0245.24 ▼4.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.49 ▼26.13
Media Library /wp-admin/upload.php3.24 ▲0.0134.59 ▼3.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Featured image to All-Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.34 ▼0.012.01 ▲0.3143.35 ▲4.23
Dashboard /wp-admin2,195 ▲155.51 ▼0.1583.50 ▼14.1536.29 ▼10.37
Posts /wp-admin/edit.php2,112 ▲121.98 ▼0.0139.08 ▲2.4834.74 ▲0.61
Add New Post /wp-admin/post-new.php1,541 ▲623.01 ▲4.87629.73 ▲13.7074.54 ▲6.28
Media Library /wp-admin/upload.php1,400 ▲34.16 ▼0.04101.57 ▲1.7642.58 ▼4.97

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server errors 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 smoke test targeting browser errors/issues
Everything seems fine on the user side

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
These attributes need to be fixed: The official readme.txt might help

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

"Featured image to All-Posts" version 1.8.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable 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
There are no cyclomatic complexity problems detected for this plugin
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin