83% acf-to-custom-database-tables

Code Review | ACF to Custom Database Tables

WordPress plugin ACF to Custom Database Tables scored 83% from 54 tests.

About plugin

  • Plugin page: acf-to-custom-dat...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.0
  • WordPress version: 5.9.2
  • First release: Dec 15, 2021
  • Latest release: Feb 5, 2022
  • Number of updates: 6
  • Update frequency: every 9.0 days
  • Top authors: abhisheksatre (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 300 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.01MB] [CPU: ▼298.36ms] Passed 4 tests

This is a short check of server-side resources used by ACF to Custom Database Tables
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1054.52 ▲4.67
Dashboard /wp-admin3.45 ▲0.0432.80 ▼1.60
Posts /wp-admin/edit.php3.68 ▲0.0436.59 ▼0.89
Add New Post /wp-admin/post-new.php6.91 ▼0.0692.23 ▼1,192.54
Media Library /wp-admin/upload.php3.33 ▲0.0324.77 ▲1.60
Custom Tables /wp-admin/edit.php?post_type=acf-field-group&page=acf-custom-table3.1316.11

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF to Custom Database Tables
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,799 ▲4516.25 ▲0.275.97 ▼0.041.98 ▼0.41
Dashboard /wp-admin2,895 ▲346.14 ▲0.02116.27 ▼16.73155.00 ▲0.10
Posts /wp-admin/edit.php2,694 ▼03.23 ▲0.0061.95 ▲0.97135.26 ▼6.73
Add New Post /wp-admin/post-new.php1,760 ▲7021.79 ▲0.81397.35 ▼18.79156.69 ▲2.80
Media Library /wp-admin/upload.php1,698 ▲65.52 ▲0.04152.46 ▲15.58198.59 ▲11.31
Custom Tables /wp-admin/edit.php?post_type=acf-field-group&page=acf-custom-table280.940.0316.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-to-custom-database-tables/includes/views/acf-custom-table-view.php
  • 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      include_once(ACF_CUSTOM_TABLE_PATHincludes/api/public-api.php): failed to open stream: No such file or directory in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Acfct_utils' not found in wp-content/plugins/acf-to-custom-database-tables/includes/views/acf-custom-table-run.php:2
    • > PHP Warning
      include_once(): Failed opening 'ACF_CUSTOM_TABLE_PATHincludes/class-acfct-utils.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 11
    • > PHP Warning
      Use of undefined constant ACF_CUSTOM_TABLE_PATH - assumed 'ACF_CUSTOM_TABLE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-to-custom-database-tables/includes/views/acf-custom-table-view.php on line 130
    • > PHP Fatal error
      Trait 'ACFUtil' not found in wp-content/plugins/acf-to-custom-database-tables/includes/class-acfct-utils.php on line 4
    • > PHP Warning
      include_once(ACF_CUSTOM_TABLE_PATHincludes/class-acfct-table-data.php): failed to open stream: No such file or directory in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 14
    • > PHP Fatal error
      Trait 'Acfct_formatters' not found in wp-content/plugins/acf-to-custom-database-tables/includes/class-acfct-table-data.php on line 4
    • > PHP Warning
      include_once(): Failed opening 'ACF_CUSTOM_TABLE_PATHincludes/class-acfct-update.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 9
    • > PHP Warning
      include_once(): Failed opening 'ACF_CUSTOM_TABLE_PATHincludes/class-acfct-database-manager.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 15
    • > PHP Warning
      include_once(): Failed opening 'ACF_CUSTOM_TABLE_PATHincludes/api/public-api.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=acf-field-group&page=acf-custom-table
    • > Network (severe)
    wp-admin/edit.php?post_type=acf-field-group&page=acf-custom-table - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: acf to custom table, acf, custom fields

acf-to-custom-database-tables/acf-to-custom-database-tables.php Passed 13 tests

The main PHP script in "ACF to Custom Database Tables" version 1.0.2 is automatically included on every request by WordPress
117 characters long description:
An add-on plugin for Advanced Custom Fields plugin which lets you save custom fields data in a custom database table.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,659 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP193203351,638
JavaScript15021

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.11
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits3
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods61
▷ Static methods2744.26%
▷ Public methods5285.25%
▷ Protected methods69.84%
▷ Private methods34.92%
Functions19
▷ Named functions1052.63%
▷ Anonymous functions947.37%
Constants13
▷ Global constants13100.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
There are no PNG files in this plugin