84% acf-columns

Code Review | ACF Columns

WordPress plugin ACF Columns scored84%from 54 tests.

About plugin

  • Plugin page: acf-columns
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Mar 21, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 20
  • Update frequency: every 116.8 days
  • Top authors: tmconnect (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

6,000+ active /37,631 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.36ms] Passed 4 tests

This is a short check of server-side resources used by ACF Columns
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.20 ▼2.21
Dashboard /wp-admin3.31 ▲0.0058.88 ▲3.94
Posts /wp-admin/edit.php3.36 ▲0.0050.63 ▲2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.74 ▼12.35
Media Library /wp-admin/upload.php3.23 ▲0.0038.52 ▼1.34

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Columns
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.79 ▼0.0459.57 ▲13.23
Dashboard /wp-admin2,195 ▲185.62 ▲0.0587.65 ▼11.0841.10 ▼4.28
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0336.91 ▼0.8733.82 ▼4.52
Add New Post /wp-admin/post-new.php1,526 ▼022.76 ▼0.39696.53 ▲24.8667.21 ▲3.97
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0696.16 ▼8.5643.00 ▼0.43

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-columns/fields/acf-column-v5.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-columns/fields/acf-column-v5.7.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
4 plugin tags: column, advanced custom fields, acf, acfpro

acf-columns/acf-column.php 85% from 13 tests

The entry point to "ACF Columns" version 1.2.5 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("acf-columns.php" instead of "acf-column.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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 detected576 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP3102211186
PO File25050134
CSS2200128
JavaScript25221128

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.67
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin