94% acf-display

Code Review | ACF Display

WordPress plugin ACF Display scored 94% from 54 tests.

About plugin

  • Plugin page: acf-display
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 5.8.1
  • First release: Aug 2, 2021
  • Latest release: Aug 2, 2021
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: darrenlambert (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 210 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by ACF Display
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1133.63 ▲10.48
Dashboard /wp-admin3.08 ▲0.0247.56 ▼2.80
Posts /wp-admin/edit.php3.13 ▲0.0244.34 ▼2.43
Add New Post /wp-admin/post-new.php5.44 ▼0.0094.16 ▼568.07
Media Library /wp-admin/upload.php3.02 ▲0.0139.76 ▲5.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Display: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,524 ▼7215.70 ▲0.198.08 ▼3.0632.41 ▼24.38
Dashboard /wp-admin2,970 ▲336.13 ▲0.19145.92 ▼8.94117.00 ▲9.19
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0169.29 ▼2.8694.35 ▼8.84
Add New Post /wp-admin/post-new.php1,683 ▼718.38 ▲2.82390.32 ▼37.85135.20 ▲19.57
Media Library /wp-admin/upload.php1,807 ▼05.05 ▼0.01170.11 ▲10.61145.07 ▲19.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
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 | This is a shallow check for server-side errors
Everything seems fine, however 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 add_action() in wp-content/plugins/acf-display/acf-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration Passed 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, display, fields

acf-display/acf-display.php Passed 13 tests

The principal PHP file in "ACF Display" v. 1.0 is loaded by WordPress automatically on each request
85 characters long description:
Automatically displays fields on posts, pages and custom post types created with ACF.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin108 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions685.71%
▷ Anonymous functions114.29%
▷ 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 are no PNG files in this plugin