100% acf-theme-code

Code Review | ACF Theme Code for Advanced Custom Fields

WordPress plugin ACF Theme Code for Advanced Custom Fields scored 100% from 54 tests.

About plugin

  • Plugin page: acf-theme-code
  • Plugin version: 2.5.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.8
  • WordPress version: 5.9.2
  • First release: Jul 21, 2016
  • Latest release: Dec 21, 2021
  • Number of updates: 30
  • Update frequency: every 66.0 days
  • Top authors: aaronrutley (76.67%)benpearson (26.67%)

Code review

54 tests

User reviews

41 reviews

Install metrics

10,000+ active / 93,563 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.06MB] [CPU: ▼303.52ms] Passed 4 tests

An overview of server-side resources used by ACF Theme Code for Advanced Custom Fields
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.93 ▼0.02
Dashboard /wp-admin3.51 ▲0.1033.13 ▼1.34
Posts /wp-admin/edit.php3.75 ▲0.1036.71 ▼1.94
Add New Post /wp-admin/post-new.php6.99 ▲0.0292.45 ▼1,207.97
Media Library /wp-admin/upload.php3.40 ▲0.0928.75 ▼2.82

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Theme Code for Advanced Custom Fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.80 ▲0.086.36 ▼0.302.32 ▼0.03
Dashboard /wp-admin2,895 ▲346.12 ▼0.04120.57 ▼15.63153.94 ▼4.49
Posts /wp-admin/edit.php2,694 ▲63.24 ▲0.0061.85 ▼3.08135.02 ▼6.51
Add New Post /wp-admin/post-new.php1,717 ▼021.36 ▼0.46434.84 ▼4.35158.71 ▲6.81
Media Library /wp-admin/upload.php1,701 ▲65.55 ▲0.08149.02 ▲15.68191.81 ▲0.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 96% 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
4 plugin tags: acf, php, automation, advanced custom fields

acf-theme-code/acf_theme_code.php 92% from 13 tests

The main file in "ACF Theme Code for Advanced Custom Fields" v. 2.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acf-theme-code.php" instead of "acf_theme_code.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 detected1,574 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity15.40
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
▷ Static methods00.00%
▷ Public methods1434.15%
▷ Protected methods614.63%
▷ Private methods2151.22%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin