94% acf-fields-display

Code Review | ACF Field Display

WordPress plugin ACF Field Display scored 94% from 54 tests.

About plugin

  • Plugin page: acf-fields-display
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 5.9.2
  • First release: Jan 20, 2015
  • Latest release: Jan 26, 2015
  • Number of updates: 19
  • Update frequency: every 0.4 days
  • Top authors: ltnow (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,658 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.31ms] Passed 4 tests

This is a short check of server-side resources used by ACF Field Display
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.75 ▲6.65
Dashboard /wp-admin3.42 ▲0.0134.72 ▲1.12
Posts /wp-admin/edit.php3.65 ▲0.0137.06 ▼1.55
Add New Post /wp-admin/post-new.php6.89 ▼0.0990.19 ▼1,189.63
Media Library /wp-admin/upload.php3.30 ▲0.0023.15 ▲0.82

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Field Display
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲6116.16 ▲0.575.82 ▲0.302.34 ▼0.07
Dashboard /wp-admin2,895 ▲376.24 ▲0.07114.79 ▼14.14156.33 ▼5.22
Posts /wp-admin/edit.php2,688 ▲33.22 ▼0.0163.65 ▼1.05140.73 ▲0.15
Add New Post /wp-admin/post-new.php1,668 ▲718.38 ▼4.09424.46 ▲4.82149.18 ▼9.06
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.01145.10 ▲1.97186.65 ▼2.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 fix the following
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(wp-content/plugins/acf-fields-display/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/acf-fields-display/acf-field-display.php on line 35
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-fields-display/acf-field-display.php on line 17
    • > PHP Warning
      include_once(): Failed opening 'wp-content/plugins/acf-fields-display/wp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-fields-display/acf-field-display.php on line 35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-fields-display/inc/acf-fld-opts.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/acf-fields-display/acf-field-display.php:38

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: acf, reference, advanced custom fields

acf-fields-display/acf-field-display.php 85% from 13 tests

The main PHP script in "ACF Field Display" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-fields-display.php" instead of "acf-field-display.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected101 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152487
JavaScript201028
CSS1006

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.22
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/icons/list-fields.png1.28KB0.62KB▼ 51.60%