94% admin-columns-for-acf-fields

Code Review | Admin Columns for ACF Fields

WordPress plugin Admin Columns for ACF Fields scored 94% from 54 tests.

About plugin

  • Plugin page: admin-columns-for...
  • Plugin version: 0.1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 5.9.2
  • First release: Oct 9, 2019
  • Latest release: Dec 17, 2019
  • Number of updates: 8
  • Update frequency: every 9.5 days
  • Top authors: flei (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

3,000+ active / 9,263 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Admin Columns for ACF Fields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0654.46 ▲5.41
Dashboard /wp-admin3.48 ▲0.0732.96 ▲0.48
Posts /wp-admin/edit.php3.70 ▲0.0736.55 ▲0.71
Add New Post /wp-admin/post-new.php6.95 ▼0.0294.40 ▼1,206.83
Media Library /wp-admin/upload.php3.35 ▲0.0522.98 ▼5.42

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Admin Columns for ACF Fields
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,766 ▲1215.85 ▼0.168.23 ▲2.132.10 ▼0.72
Dashboard /wp-admin2,895 ▲346.13 ▼0.10114.47 ▼24.05151.31 ▼11.76
Posts /wp-admin/edit.php2,691 ▲343.25 ▲0.0062.53 ▼0.38138.98 ▲2.18
Add New Post /wp-admin/post-new.php1,661 ▼015.54 ▼0.83421.57 ▲18.46155.22 ▲0.71
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.01135.27 ▼4.27184.08 ▼4.25

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 completely, with no zombie files or tables

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php:503

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: acf, advanced custom fields, admin columns

admin-columns-for-acf-fields/acf_admin_columns.php 92% from 13 tests

"Admin Columns for ACF Fields" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-columns-for-acf-fields.php" instead of "acf_admin_columns.php")

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
Good job! No executable or dangerous file extensions detected352 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

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.81
Average class complexity102.00
▷ Minimum class complexity102.00
▷ Maximum class complexity102.00
Average method complexity7.31
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods16.25%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin