84% acf-fields-display

Code Review | ACF Field Display

WordPress plugin ACF Field Display scored 84% 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: 6.3.1
  • 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,878 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
Installer ran successfully

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

A check of server-side resources used by ACF Field Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.70 ▲1.35
Dashboard /wp-admin3.31 ▲0.0143.47 ▼7.57
Posts /wp-admin/edit.php3.36 ▲0.0044.71 ▲0.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.71 ▼10.52
Media Library /wp-admin/upload.php3.23 ▲0.0035.58 ▼1.60

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

ACF Field Display: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.861.58 ▼0.1248.51 ▲6.70
Dashboard /wp-admin2,200 ▲125.79 ▼0.08101.61 ▼1.1539.65 ▼2.32
Posts /wp-admin/edit.php2,086 ▼02.01 ▲0.0134.57 ▼4.2656.14 ▲19.23
Add New Post /wp-admin/post-new.php1,533 ▼021.09 ▼1.92616.16 ▼60.7958.69 ▼0.20
Media Library /wp-admin/upload.php1,391 ▲124.23 ▼0.00101.47 ▼3.6941.32 ▲0.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/acf-fields-display/acf-field-display.php:38
    • > 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
      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 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 Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-fields-display/inc/acf-fld-opts.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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
3 plugin tags: reference, acf, advanced custom fields

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

The entry point to "ACF Field Display" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
  • Main file name: It is recommended to name the main PHP file 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 | 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 plugin101 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2152487
JavaScript201028
CSS1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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

Often times overlooked, PNG files can occupy unnecessary space in 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%