94% acf-fields-in-custom-table

Code Review | ACF: Fields in Custom Table

WordPress plugin ACF: Fields in Custom Table scored 94% from 54 tests.

About plugin

  • Plugin page: acf-fields-in-cus...
  • Plugin version: 0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.7
  • WordPress version: 5.8.1
  • First release: Nov 26, 2020
  • Latest release: May 26, 2021
  • Number of updates: 10
  • Update frequency: every 18.2 days
  • Top authors: eduardo.marcolino (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 1,593 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼171.38ms] Passed 4 tests

Server-side resources used by ACF: Fields in Custom Table
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.16 ▲0.3337.48 ▲14.04
Dashboard /wp-admin3.43 ▲0.3643.55 ▲3.45
Posts /wp-admin/edit.php3.48 ▲0.3737.87 ▲4.90
Add New Post /wp-admin/post-new.php5.72 ▲0.2874.29 ▼699.04
Media Library /wp-admin/upload.php3.31 ▲0.3029.18 ▲5.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF: Fields in Custom Table
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.67 ▲0.025.67 ▼0.6582.36 ▲10.05
Dashboard /wp-admin2,929 ▲336.17 ▲0.01116.34 ▼16.09165.12 ▼9.80
Posts /wp-admin/edit.php2,740 ▲33.24 ▲0.0262.94 ▼3.06139.50 ▼0.28
Add New Post /wp-admin/post-new.php3,706 ▼3518.89 ▲0.39419.83 ▼22.00159.77 ▼9.04
Media Library /wp-admin/upload.php1,752 ▼05.54 ▲0.03140.10 ▼4.19184.89 ▼7.07

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please fix the following items
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_Url' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-oembed.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_File' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-image.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-relationship.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-date_time_picker.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_Text' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-url.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_Relationship' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-user.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Type' not found in wp-content/plugins/acf-fields-in-custom-table/includes/types/class-acfict-type-column.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_Text' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-email.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_Relationship' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-page_link.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ACF_FICT_Field_Select' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-checkbox.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
5 plugin tags: meta, fields, advanced custom fields, custom fields, acf

acf-fields-in-custom-table/acf-fields-in-custom-table.php 92% from 13 tests

Analyzing the main PHP file in "ACF: Fields in Custom Table" version 0.5
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected705 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP3116893705

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity2.27
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes30
▷ Abstract classes13.33%
▷ Concrete classes2996.67%
▷ Final classes13.45%
Methods81
▷ Static methods11.23%
▷ Public methods7592.59%
▷ Protected methods00.00%
▷ Private methods67.41%
Functions7
▷ Named functions457.14%
▷ Anonymous functions342.86%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin