94% acf-extended

Code Review | Advanced Custom Fields: Extended

WordPress plugin Advanced Custom Fields: Extended scored 94% from 54 tests.

About plugin

  • Plugin page: acf-extended
  • Plugin version: 0.8.8.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 5.8.1
  • First release: Mar 18, 2019
  • Latest release: Dec 23, 2021
  • Number of updates: 162
  • Update frequency: every 6.2 days
  • Top authors: hwk-fr (100%)

Code review

54 tests

User reviews

108 reviews

Install metrics

50,000+ active / 640,563 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼149.03ms] Passed 4 tests

An overview of server-side resources used by Advanced Custom Fields: Extended
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.20 ▲0.3635.73 ▲8.58
Dashboard /wp-admin3.49 ▲0.4238.16 ▼2.48
Posts /wp-admin/edit.php3.54 ▲0.4236.02 ▼0.81
Add New Post /wp-admin/post-new.php5.79 ▲0.3475.45 ▼591.78
Media Library /wp-admin/upload.php3.37 ▲0.3625.76 ▼1.06

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 153 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields: Extended
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.81 ▼0.168.62 ▲3.2875.52 ▼2.41
Dashboard /wp-admin2,929 ▲336.09 ▼0.06116.72 ▼14.41168.36 ▼0.48
Posts /wp-admin/edit.php2,740 ▲33.24 ▲0.0162.92 ▼1.98138.03 ▼5.90
Add New Post /wp-admin/post-new.php3,760 ▲1719.02 ▼0.14405.98 ▼18.80161.96 ▲0.39
Media Library /wp-admin/upload.php1,749 ▼35.53 ▲0.02137.03 ▼7.54179.16 ▼5.65

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
This plugin's uninstaller ran successfully

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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/acf-extended/includes/admin/views/html-options-edit.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_new_instance() in wp-content/plugins/acf-extended/includes/upgrades.php:812
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/acf-extended/includes/admin/views/html-options-list.php:3

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: custom fields, admin, content, acf, fields...

acf-extended/acf-extended.php 92% from 13 tests

The primary PHP file in "Advanced Custom Fields: Extended" version 0.8.8.7 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin41,738 lines of code in 150 files:
LanguageFilesBlank linesComment linesLines of code
PHP12711,9085,60433,264
CSS1068103,618
JavaScript121,7837393,063
PO File18501,7561,793

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.88
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes111
▷ Abstract classes00.00%
▷ Concrete classes111100.00%
▷ Final classes00.00%
Methods919
▷ Static methods20.22%
▷ Public methods919100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions177
▷ Named functions14380.79%
▷ Anonymous functions3419.21%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin