78% custom-field-builder

Code Review | Custom Field Builder - WordPress custom fields plugin

WordPress plugin Custom Field Builder - WordPress custom fields plugin scored78%from 54 tests.

About plugin

  • Plugin page: custom-field-builder
  • Plugin version: 1.2.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2018
  • Latest release: Mar 5, 2019
  • Number of updates: 22
  • Update frequency: every 5.0 days
  • Top authors: kirillbdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.18ms] Passed 4 tests

A check of server-side resources used by Custom Field Builder - WordPress custom fields plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1044.89 ▲3.31
Dashboard /wp-admin3.50 ▲0.1950.92 ▲1.65
Posts /wp-admin/edit.php3.55 ▲0.1954.07 ▲3.67
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.90 ▼5.70
Media Library /wp-admin/upload.php3.33 ▲0.1139.55 ▲0.04

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Custom Field Builder - WordPress custom fields plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲18614.92 ▲0.551.68 ▼0.1844.86 ▲1.20
Dashboard /wp-admin2,356 ▲1796.37 ▲0.67112.44 ▲16.9941.32 ▲1.03
Posts /wp-admin/edit.php2,278 ▲1783.51 ▲1.4951.49 ▲8.8732.87 ▼5.92
Add New Post /wp-admin/post-new.php1,550 ▲2418.19 ▼4.91599.18 ▼97.7743.08 ▼17.85
Media Library /wp-admin/upload.php1,418 ▲184.35 ▲0.1683.33 ▼34.5644.05 ▼5.74

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following
  • 9× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/custom-field-builder/views/textarea.php
    • > /wp-content/plugins/custom-field-builder/views/checkbox_group.php
    • > /wp-content/plugins/custom-field-builder/views/media.php
    • > /wp-content/plugins/custom-field-builder/views/textbox.php
    • > /wp-content/plugins/custom-field-builder/views/post_relationship.php
    • > /wp-content/plugins/custom-field-builder/views/repeater.php
    • > /wp-content/plugins/custom-field-builder/views/logic.php
    • > /wp-content/plugins/custom-field-builder/views/select.php
    • > /wp-content/plugins/custom-field-builder/views/color_picker.php
  • 108× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/logic.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/logic.php on line 9
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/custom-field-builder/views/checkbox_group.php on line 4
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/custom-field-builder/views/textarea.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/repeater.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/custom-field-builder/views/editor.php:8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/custom-field-builder/views/post_relationship.php on line 8
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/custom-field-builder/views/checkbox_group.php on line 9
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/custom-field-builder/views/date_picker.php on line 4
    • > PHP Notice
      Undefined variable: field in wp-content/plugins/custom-field-builder/views/checkbox_group.php on line 8

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
Please take inspiration from this readme.txt

custom-field-builder/custom-field-builder.php Passed 13 tests

The main file in "Custom Field Builder - WordPress custom fields plugin" v. 1.2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Create and manage custom fields simply for your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,190 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP32215271,043
SVG202145
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity6.18
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes00.00%
Methods57
▷ Static methods47.02%
▷ Public methods4578.95%
▷ Protected methods47.02%
▷ Private methods814.04%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/close.png0.87KB0.46KB▼ 46.95%