100% wp-bfi-better-featured-image

Code Review | WP BFI – Better Featured Image

WordPress plugin WP BFI – Better Featured Image scored 100% from 54 tests.

About plugin

  • Plugin page: wp-bfi-better-fea...
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8.2
  • WordPress version: 5.9.2
  • First release: Sep 30, 2016
  • Latest release: Nov 19, 2021
  • Number of updates: 34
  • Update frequency: every 55.2 days
  • Top authors: verya.ca (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active / 4,909 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼296.28ms] Passed 4 tests

This is a short check of server-side resources used by WP BFI – Better Featured Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0651.54 ▼0.57
Dashboard /wp-admin3.50 ▲0.0935.54 ▲1.14
Posts /wp-admin/edit.php3.73 ▲0.0941.36 ▲3.97
Add New Post /wp-admin/post-new.php6.95 ▼0.0293.97 ▼1,186.18
Media Library /wp-admin/upload.php3.36 ▲0.0724.43 ▲0.51
WP BFI - Settings /wp-admin/upload.php?page=wp_bfi_admin_settings3.4030.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP BFI – Better Featured Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,971 ▲24817.71 ▲2.075.84 ▼0.182.29 ▲0.12
Dashboard /wp-admin3,096 ▲2418.01 ▲1.83143.03 ▲11.68168.24 ▲8.00
Posts /wp-admin/edit.php2,981 ▲2905.26 ▲2.0381.41 ▲20.08138.88 ▲3.10
Add New Post /wp-admin/post-new.php1,680 ▲1218.19 ▲0.25365.34 ▼38.13156.25 ▲0.56
Media Library /wp-admin/upload.php1,712 ▲145.58 ▲0.06108.83 ▼35.13186.88 ▲0.02
WP BFI - Settings /wp-admin/upload.php?page=wp_bfi_admin_settings1,6404.3072.02157.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can look at the official readme.txt

wp-bfi-better-featured-image/wp-bfi-better-featured-image.php Passed 13 tests

This is the main PHP file of "WP BFI – Better Featured Image" version 0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
WP BFI lets you manage featured images in a more efficient way, by adding intuitive tools to your WordPress interface.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin644 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP215032271
PO File14648169
JavaScript16410143
CSS117061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.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
PNG images were not found in this plugin