84% bulk-custom-fields-update

Code Review | Zedna Bulk Custom Fields Update

WordPress plugin Zedna Bulk Custom Fields Update scored84%from 54 tests.

About plugin

  • Plugin page: bulk-custom-field...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Jan 18, 2017
  • Latest release: Mar 12, 2020
  • Number of updates: 7
  • Update frequency: every 163.9 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /575 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.39ms] Passed 4 tests

Server-side resources used by Zedna Bulk Custom Fields Update
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.33 ▼6.00
Dashboard /wp-admin3.34 ▼0.0149.73 ▼13.20
Posts /wp-admin/edit.php3.39 ▲0.0346.33 ▼4.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.80 ▼9.70
Media Library /wp-admin/upload.php3.26 ▲0.0339.04 ▲2.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Zedna Bulk Custom Fields Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.19 ▲0.031.72 ▲0.0347.02 ▲6.68
Dashboard /wp-admin2,208 ▲285.64 ▼0.0390.81 ▼1.8742.56 ▼2.40
Posts /wp-admin/edit.php2,095 ▼52.02 ▲0.0236.77 ▼4.3434.73 ▼4.65
Add New Post /wp-admin/post-new.php1,544 ▲1823.34 ▲0.29659.36 ▲39.3736.83 ▼30.50
Media Library /wp-admin/upload.php1,427 ▲274.22 ▲0.0188.82 ▼14.7943.41 ▼4.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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/bulk-custom-fields-update/bulk-custom-fields-update.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

bulk-custom-fields-update/bulk-custom-fields-update.php Passed 13 tests

The main file in "Zedna Bulk Custom Fields Update" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Change your post custom fields by bulk update.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,411 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS141481,222
PHP18829154
JavaScript17535

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png10.59KB5.78KB▼ 45.45%
assets/screenshot-1.png20.96KB10.60KB▼ 49.44%
assets/banner-772x250.png46.45KB30.41KB▼ 34.53%
assets/icon-256x256.png23.84KB12.26KB▼ 48.58%