84% custom-field-bulk-editor

Code Review | Custom Field Bulk Editor

WordPress plugin Custom Field Bulk Editor scored 84% from 54 tests.

About plugin

  • Plugin page: custom-field-bulk...
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 5.8.1
  • First release: Aug 17, 2011
  • Latest release: Nov 20, 2019
  • Number of updates: 59
  • Update frequency: every 51.1 days
  • Top authors: sparkweb (100%)

Code review

54 tests

User reviews

38 reviews

Install metrics

4,000+ active / 46,705 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼165.53ms] Passed 4 tests

This is a short check of server-side resources used by Custom Field Bulk Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2143.25 ▲21.90
Dashboard /wp-admin3.17 ▲0.1146.64 ▲1.79
Posts /wp-admin/edit.php3.22 ▲0.1141.34 ▼1.93
Add New Post /wp-admin/post-new.php5.53 ▲0.0991.82 ▼664.53
Media Library /wp-admin/upload.php3.11 ▲0.1134.12 ▲2.56
Bulk Edit Fields /wp-admin/edit.php?page=cfbe_editor-post3.1127.58
Bulk Edit Fields /wp-admin/edit.php?post_type=wp_block&page=cfbe_editor-wp_block3.0928.23
Bulk Edit Fields /wp-admin/edit.php?post_type=page&page=cfbe_editor-page3.0931.32
Bulk Edit Fields /wp-admin/edit.php?post_type=wp_template&page=cfbe_editor-wp_template3.0931.27
Bulk Edit Fields /wp-admin/edit.php?post_type=user_request&page=cfbe_editor-user_request3.0929.51
Bulk Edit Fields /wp-admin/edit.php?post_type=custom_css&page=cfbe_editor-custom_css3.0931.51
Bulk Editor Settings /wp-admin/options-general.php?page=cfbe_settings3.0928.68
Bulk Edit Fields /wp-admin/edit.php?post_type=customize_changeset&page=cfbe_editor-customize_changeset3.0930.47
Bulk Edit Fields /wp-admin/edit.php?post_type=oembed_cache&page=cfbe_editor-oembed_cache3.0931.94

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
cfbe_post_types

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Field Bulk Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,693 ▲9716.17 ▲0.458.24 ▼1.7847.87 ▲6.71
Dashboard /wp-admin2,988 ▲575.88 ▼0.21132.10 ▼17.25105.91 ▲4.37
Posts /wp-admin/edit.php2,754 ▲182.72 ▲0.0066.18 ▲2.7885.87 ▼8.97
Add New Post /wp-admin/post-new.php1,881 ▲26619.07 ▼2.79377.51 ▲101.14114.84 ▲10.88
Media Library /wp-admin/upload.php1,822 ▲155.03 ▲0.01148.40 ▲8.42115.53 ▼6.85
Bulk Edit Fields /wp-admin/edit.php?page=cfbe_editor-post1,4062.1055.5377.80
Bulk Edit Fields /wp-admin/edit.php?post_type=wp_block&page=cfbe_editor-wp_block1,3712.0853.2268.76
Bulk Edit Fields /wp-admin/edit.php?post_type=page&page=cfbe_editor-page1,4002.2251.3774.10
Bulk Edit Fields /wp-admin/edit.php?post_type=wp_template&page=cfbe_editor-wp_template1,3712.0853.2263.18
Bulk Edit Fields /wp-admin/edit.php?post_type=user_request&page=cfbe_editor-user_request1,3712.0952.7266.77
Bulk Edit Fields /wp-admin/edit.php?post_type=custom_css&page=cfbe_editor-custom_css1,3712.0955.0364.49
Bulk Editor Settings /wp-admin/options-general.php?page=cfbe_settings1,2362.0953.9767.41
Bulk Edit Fields /wp-admin/edit.php?post_type=customize_changeset&page=cfbe_editor-customize_changeset1,3712.1054.4962.62
Bulk Edit Fields /wp-admin/edit.php?post_type=oembed_cache&page=cfbe_editor-oembed_cache1,3712.1155.5565.60

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • cfbe_post_types

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-field-bulk-editor/custom-field-bulk-editor.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Bulk Editor Screen), #2 (View With Sample Customization)
Please take inspiration from this readme.txt

custom-field-bulk-editor/custom-field-bulk-editor.php Passed 13 tests

The entry point to "Custom Field Bulk Editor" version 1.9.1 is a PHP file that has certain tags in its header comment area
76 characters long description:
Allows you to edit your custom fields in bulk. Works with custom post types.

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
There were no executable files found in this plugin518 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110354459
CSS10059

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions11
▷ Named functions11100.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
3 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png17.51KB6.75KB▼ 61.44%
screenshot-1.png47.87KB14.64KB▼ 69.42%
screenshot-3.png27.53KB10.52KB▼ 61.78%