100% acf-hide-layout

Code Review | ACF Hide Layout

WordPress plugin ACF Hide Layout scored 100% from 54 tests.

About plugin

  • Plugin page: acf-hide-layout
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8.2
  • WordPress version: 5.9.2
  • First release: Jun 25, 2020
  • Latest release: Dec 13, 2021
  • Number of updates: 15
  • Update frequency: every 36.6 days
  • Top authors: bleechberlin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active / 2,445 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.01MB] [CPU: ▼294.55ms] Passed 4 tests

This is a short check of server-side resources used by ACF Hide Layout
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0456.21 ▲4.80
Dashboard /wp-admin3.45 ▲0.0435.02 ▲2.07
Posts /wp-admin/edit.php3.68 ▲0.0337.87 ▲1.42
Add New Post /wp-admin/post-new.php6.92 ▼0.0593.64 ▼1,183.10
Media Library /wp-admin/upload.php3.33 ▲0.0325.60 ▲1.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Hide Layout: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲3816.21 ▲0.466.67 ▲0.062.15 ▼0.35
Dashboard /wp-admin2,904 ▲466.05 ▼0.11119.47 ▼14.04153.74 ▼6.80
Posts /wp-admin/edit.php2,700 ▲93.24 ▼0.0063.29 ▼0.91143.15 ▲1.64
Add New Post /wp-admin/post-new.php1,718 ▲5721.20 ▲4.00432.76 ▲26.71151.60 ▼1.64
Media Library /wp-admin/upload.php1,704 ▲65.53 ▲0.02146.26 ▲3.28196.16 ▲3.34

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: advanced custom fields, flexible content, hide layout, acf

acf-hide-layout/acf-hide-layout.php Passed 13 tests

The main PHP script in "ACF Hide Layout" version 1.1 is automatically included on every request by WordPress
96 characters long description:
Easily hide the layout of the flexible content on the frontend but still keep it in the backend.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin301 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File3182496

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods15.56%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
No PNG images were found in this plugin