84% bulk-featured-image

Code Review | Bulk Featured Image

WordPress plugin Bulk Featured Image scored84%from 54 tests.

About plugin

  • Plugin page: bulk-featured-image
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: May 22, 2021
  • Latest release: Nov 17, 2023
  • Number of updates: 18
  • Update frequency: every 50.8 days
  • Top authors: creedally (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active /6,179 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.22MB] [CPU: ▼2.05ms] Passed 4 tests

Server-side resources used by Bulk Featured Image
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1942.39 ▼1.65
Dashboard /wp-admin3.58 ▲0.2849.68 ▲1.48
Posts /wp-admin/edit.php3.64 ▲0.2853.01 ▲3.27
Add New Post /wp-admin/post-new.php6.10 ▲0.2179.72 ▼11.30
Media Library /wp-admin/upload.php3.42 ▲0.1936.02 ▲4.02

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
bfi_settings
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Bulk Featured Image: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,954 ▲16714.62 ▼0.091.80 ▼0.2639.87 ▼4.74
Dashboard /wp-admin2,362 ▲1856.41 ▲0.73120.71 ▲22.6244.11 ▲3.76
Posts /wp-admin/edit.php2,317 ▲2143.50 ▲1.5452.25 ▲13.7035.87 ▼10.45
Add New Post /wp-admin/post-new.php1,554 ▲2823.50 ▲0.40630.31 ▼38.7036.62 ▼12.08
Media Library /wp-admin/upload.php1,427 ▲274.37 ▲0.0480.87 ▼15.2745.10 ▲2.78

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 detected upon uninstall: 7 options
    • widget_recent-comments
    • bfi_settings
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/bulk-featured-image/admin/class-bfi-list-table.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/bulk-featured-image/admin/class-bfi-list-table.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/bulk-featured-image/admin/class-bfi-list-table.php on line 3

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: post-thumbnail, thumbnails

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

"Bulk Featured Image" version 1.1.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
28 characters long description:
Bulk Featured images update.

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 plugin1,142 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP10329229982
JavaScript2174120
CSS30638
Markdown1002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity29.67
▷ Minimum class complexity1.00
▷ Maximum class complexity70.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods54
▷ Static methods59.26%
▷ Public methods4990.74%
▷ Protected methods00.00%
▷ Private methods59.26%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu-icon.png0.72KB0.71KB▼ 1.63%