84% acf-fields-in-custom-table

Code Review | ACF: Fields in Custom Table

WordPress plugin ACF: Fields in Custom Table scored84%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: 6.3.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

100+ active /2,402 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
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼17.48ms] Passed 4 tests

A check of server-side resources used by ACF: Fields in Custom Table
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2740.53 ▲3.29
Dashboard /wp-admin3.59 ▲0.2847.77 ▼7.82
Posts /wp-admin/edit.php3.64 ▲0.2847.37 ▼6.28
Add New Post /wp-admin/post-new.php6.10 ▲0.2292.51 ▼56.65
Media Library /wp-admin/upload.php3.45 ▲0.2243.53 ▲0.83

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, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF: Fields in Custom Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.24 ▼1.154.89 ▲3.0242.34 ▼5.40
Dashboard /wp-admin2,221 ▲174.82 ▼0.14100.85 ▼25.6736.51 ▼20.05
Posts /wp-admin/edit.php2,103 ▲32.06 ▲0.0536.34 ▼2.2031.75 ▼12.09
Add New Post /wp-admin/post-new.php1,553 ▲818.27 ▼4.96635.04 ▼87.1156.23 ▼15.95
Media Library /wp-admin/upload.php1,397 ▼04.21 ▼0.04112.26 ▼47.8248.91 ▼7.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

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 | 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 take a closer look at the following
  • 27× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > 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' not found in wp-content/plugins/acf-fields-in-custom-table/includes/fields/class-acfict-field-number.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-taxonomy.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-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-password.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-button_group.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' 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_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_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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: custom fields, advanced custom fields, acf, fields, meta

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

This is the main PHP file of "ACF: Fields in Custom Table" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin705 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
Great job! No cyclomatic complexity issues were detected in 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin