83% advanced-custom-fields-table-field

Code Review | Advanced Custom Fields: Table Field

WordPress plugin Advanced Custom Fields: Table Field scored83%from 54 tests.

About plugin

  • Plugin page: advanced-custom-f...
  • Plugin version: 1.3.20
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2014
  • Latest release: Feb 9, 2023
  • Number of updates: 241
  • Update frequency: every 12.3 days
  • Top authors: Jonua (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

50,000+ active /591,441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.90ms] Passed 4 tests

Analyzing server-side resources used by Advanced Custom Fields: Table Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.11 ▲2.07
Dashboard /wp-admin3.31 ▼0.0346.64 ▼14.36
Posts /wp-admin/edit.php3.36 ▲0.0047.46 ▲0.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.79 ▼12.19
Media Library /wp-admin/upload.php3.23 ▲0.0033.22 ▼1.70

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Advanced Custom Fields: Table Field: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.201.56 ▼0.0137.85 ▼3.17
Dashboard /wp-admin2,206 ▲184.81 ▼0.12112.06 ▲8.4642.22 ▼1.69
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0032.61 ▼4.0731.58 ▼0.65
Add New Post /wp-admin/post-new.php1,539 ▲623.42 ▲0.32659.33 ▲6.4762.01 ▲9.93
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0294.14 ▼10.9940.84 ▼2.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-table-field/class-jh-acf-field-table.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: Please take inspiration from this readme.txt

advanced-custom-fields-table-field/acf-table.php 85% from 13 tests

The main PHP script in "Advanced Custom Fields: Table Field" version 1.3.20 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-custom-fields-table-field.php" instead of "acf-table.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,180 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript29641501,546
CSS14834255
PHP2215380245
PO File34885134

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity7.67
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin