84% admin-columns-for-acf-fields

Code Review | Admin Columns for ACF Fields

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

About plugin

  • Plugin page: admin-columns-for...
  • Plugin version: 0.3.1
  • PHP compatiblity: 5.6.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2019
  • Latest release: Nov 17, 2023
  • Number of updates: 17
  • Update frequency: every 88.6 days
  • Top authors: flei (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

4,000+ active /20,914 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
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.24ms] Passed 4 tests

A check of server-side resources used by Admin Columns for ACF Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.54 ▼1.19
Dashboard /wp-admin3.40 ▲0.1043.65 ▼3.94
Posts /wp-admin/edit.php3.52 ▲0.1646.17 ▼1.90
Add New Post /wp-admin/post-new.php5.98 ▲0.1087.90 ▲6.19
Media Library /wp-admin/upload.php3.32 ▲0.1031.95 ▼1.94

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Admin Columns for ACF Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.19 ▲0.061.78 ▼0.1247.14 ▲1.07
Dashboard /wp-admin2,198 ▲275.63 ▲0.0086.62 ▼15.0640.40 ▼5.49
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0739.87 ▲0.8136.49 ▲3.24
Add New Post /wp-admin/post-new.php1,526 ▼023.18 ▲0.35595.58 ▼113.8258.99 ▲3.04
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0496.24 ▼12.3243.08 ▼5.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/admin-columns-for-acf-fields/acf_admin_columns.php:831

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% 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
3 plugin tags: admin columns, advanced custom fields, acf

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

Analyzing the main PHP file in "Admin Columns for ACF Fields" version 0.3.1
Please make the necessary changes and 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 not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin537 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1136160537

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.75
Average class complexity160.00
▷ Minimum class complexity160.00
▷ Maximum class complexity160.00
Average method complexity8.53
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1470.00%
▷ Protected methods00.00%
▷ Private methods630.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin