78% featured-image-bulk-set

Code Review | Featured Image Bulk Set Plugin

WordPress plugin Featured Image Bulk Set Plugin scored78%from 54 tests.

About plugin

  • Plugin page: featured-image-bu...
  • Plugin version: 1.5.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jan 26, 2021
  • Latest release: Jun 3, 2022
  • Number of updates: 10
  • Update frequency: every 49.3 days
  • Top authors: kc2qcy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /964 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.65ms] Passed 4 tests

This is a short check of server-side resources used by Featured Image Bulk Set Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.19 ▼1.52
Dashboard /wp-admin3.35 ▲0.0046.71 ▼17.88
Posts /wp-admin/edit.php3.40 ▲0.0441.53 ▼4.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.01 ▼14.93
Media Library /wp-admin/upload.php3.27 ▲0.0434.65 ▲0.67
FIBS Menu /wp-admin/options-general.php?page=fibs_plugin3.2126.89

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Featured Image Bulk Set Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.27 ▼1.061.74 ▼0.2543.37 ▲0.70
Dashboard /wp-admin2,210 ▲195.88 ▲1.00114.25 ▲12.2542.23 ▲3.31
Posts /wp-admin/edit.php2,093 ▲41.97 ▼0.0634.76 ▼7.2934.91 ▼3.45
Add New Post /wp-admin/post-new.php1,540 ▲723.12 ▲0.09679.75 ▲68.7361.60 ▲5.59
Media Library /wp-admin/upload.php1,389 ▲74.18 ▲0.0294.59 ▼11.0144.63 ▲1.45
FIBS Menu /wp-admin/options-general.php?page=fibs_plugin8792.0623.1327.46

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+241
    Undefined index: execute
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+242
    Undefined index: secretcheck
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+243
    Undefined index: dim
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+244
    Undefined index: override
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+245
    Undefined index: forreal
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+246
    Undefined index: firstlast
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+247
    Undefined index: automated
    • > GET request to /wp-admin/options-general.php?page=fibs_plugin
    • > Notice in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php+248
    Undefined index: drafts

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-image-bulk-set/featuredimageplugin.php:211

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: featured image, utilities

featured-image-bulk-set/featuredimageplugin.php 92% from 13 tests

The main PHP file in "Featured Image Bulk Set Plugin" ver. 1.5.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-image-bulk-set.php" instead of "featuredimageplugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin271 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17148271

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin