73% acf-to-custom-database-tables

Code Review | ACF to Custom Database Tables

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

About plugin

  • Plugin page: acf-to-custom-dat...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Dec 15, 2021
  • Latest release: Nov 13, 2023
  • Number of updates: 14
  • Update frequency: every 50.0 days
  • Top authors: abhisheksatre (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /4,841 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.27ms] Passed 4 tests

Server-side resources used by ACF to Custom Database Tables
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.91 ▼1.03
Dashboard /wp-admin3.34 ▲0.0444.35 ▼3.78
Posts /wp-admin/edit.php3.45 ▲0.1046.00 ▼2.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.82 ▼11.81
Media Library /wp-admin/upload.php3.26 ▲0.0334.25 ▼2.67
Custom Tables /wp-admin/edit.php?post_type=acf-field-group&page=acf-custom-table3.1025.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF to Custom Database Tables
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.54 ▲0.201.82 ▲0.0745.72 ▼0.11
Dashboard /wp-admin2,198 ▲245.55 ▲0.0183.50 ▼18.8338.12 ▼4.29
Posts /wp-admin/edit.php2,100 ▼01.95 ▲0.0035.51 ▼5.2530.95 ▼2.17
Add New Post /wp-admin/post-new.php1,526 ▼923.04 ▼2.10678.70 ▲35.3853.10 ▼19.33
Media Library /wp-admin/upload.php1,400 ▲64.17 ▲0.0096.44 ▼4.0043.00 ▲2.14
Custom Tables /wp-admin/edit.php?post_type=acf-field-group&page=acf-custom-table280.410.093.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/acf-to-custom-database-tables/includes/views/acf-custom-table-view.php
  • 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Trait 'Acfct_formatters' not found in wp-content/plugins/acf-to-custom-database-tables/includes/class-acfct-register-hooks.php on line 3
    • > PHP Warning
      include_once(ACF_CUSTOM_TABLE_PATHincludes/class-acfct-register-hooks.php): failed to open stream: No such file or directory in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 16
    • > 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 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: Call to undefined function esc_html() in wp-content/plugins/acf-to-custom-database-tables/includes/views/acf-custom-table-log.php:3
    • > 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/include.php on line 7
    • > 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(ACF_CUSTOM_TABLE_PATHincludes/trait-acfct-formatters.php): failed to open stream: No such file or directory in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 13
    • > PHP Warning
      include_once(): Failed opening 'ACF_CUSTOM_TABLE_PATHincludes/views/acf-custom-table-list.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-to-custom-database-tables/includes/views/acf-custom-table-view.php on line 130
    • > PHP Warning
      include_once(): Failed opening 'ACF_CUSTOM_TABLE_PATHincludes/trait-acfct-formatters.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-to-custom-database-tables/includes/include.php on line 13

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > 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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: acf, custom fields, acf to custom table

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

The primary PHP file in "ACF to Custom Database Tables" version 1.0.6 is used by WordPress to initiate all plugin functionality
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 a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,682 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP193253431,661
JavaScript15021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity22.33
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity4.19
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits3
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods62
▷ Static methods2743.55%
▷ Public methods5385.48%
▷ Protected methods69.68%
▷ Private methods34.84%
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