84% acf-extended

Code Review | Advanced Custom Fields: Extended

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

About plugin

  • Plugin page: acf-extended
  • Plugin version: 0.8.9.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2019
  • Latest release: Nov 6, 2023
  • Number of updates: 183
  • Update frequency: every 9.3 days
  • Top authors: hwk-fr (100%)

Code review

54 tests

User reviews

125 reviews

Install metrics

80,000+ active /1,212,236 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.52MB] [CPU: ▲1.37ms] Passed 4 tests

Server-side resources used by Advanced Custom Fields: Extended
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.03 ▲0.5643.40 ▼0.17
Dashboard /wp-admin3.86 ▲0.5649.45 ▲0.41
Posts /wp-admin/edit.php3.91 ▲0.5649.80 ▲2.66
Add New Post /wp-admin/post-new.php6.38 ▲0.4992.40 ▲2.59
Media Library /wp-admin/upload.php3.72 ▲0.4938.24 ▲4.23

Server storage [IO: ▲3.11MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 182 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

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 /2,815 ▲5314.29 ▼0.081.90 ▼0.0738.58 ▼6.45
Dashboard /wp-admin2,192 ▲125.55 ▼0.0984.68 ▼17.1238.15 ▼8.81
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0240.34 ▲2.1535.50 ▲2.10
Add New Post /wp-admin/post-new.php1,535 ▲925.26 ▲2.06613.79 ▼95.6069.09 ▲16.85
Media Library /wp-admin/upload.php1,400 ▼34.24 ▼0.0197.21 ▼4.2341.07 ▼6.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > 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 _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 on the user side

Optimizations

Plugin configuration 96% from 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
8 plugin tags: admin, content, custom fields, fields, repeater...

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

The entry point to "Advanced Custom Fields: Extended" version 0.8.9.5 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected48,126 lines of code in 179 files:
LanguageFilesBlank linesComment linesLines of code
PHP15613,77111,47036,594
JavaScript122,3781,5244,371
CSS1080004,065
PO File11,1542,2753,096

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.13
▷ Minimum class complexity1.00
▷ Maximum class complexity125.00
Average method complexity3.49
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes140
▷ Abstract classes00.00%
▷ Concrete classes140100.00%
▷ Final classes00.00%
Methods1,103
▷ Static methods20.18%
▷ Public methods1,103100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions255
▷ Named functions20379.61%
▷ Anonymous functions5220.39%
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
There are no PNG files in this plugin