100% acf-hider

Code Review | ACF Hider

WordPress plugin ACF Hider scored 100% from 54 tests.

About plugin

  • Plugin page: acf-hider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 5.9.2
  • First release: Mar 22, 2017
  • Latest release: Mar 22, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: danielpost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 940 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼299.44ms] Passed 4 tests

This is a short check of server-side resources used by ACF Hider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0163.11 ▲7.01
Dashboard /wp-admin3.41 ▲0.0152.66 ▼10.52
Posts /wp-admin/edit.php3.65 ▲0.0143.40 ▲2.94
Add New Post /wp-admin/post-new.php6.88 ▼0.0898.15 ▼1,197.17
Media Library /wp-admin/upload.php3.30 ▲0.0145.22 ▲14.50

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Hider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,771 ▲2715.59 ▼0.466.33 ▼0.022.59 ▲0.32
Dashboard /wp-admin2,878 ▲176.07 ▼0.09117.56 ▼21.24153.72 ▼10.99
Posts /wp-admin/edit.php2,693 ▼03.35 ▲0.1169.89 ▲2.56173.80 ▲30.03
Add New Post /wp-admin/post-new.php1,711 ▲5021.24 ▲4.49451.51 ▲59.92161.26 ▼6.39
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.01140.23 ▼0.79186.99 ▲3.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hide, hider, acf, advanced custom fields, admin menu

acf-hider/acf-hider.php Passed 13 tests

The primary PHP file in "ACF Hider" version 1.0 is used by WordPress to initiate all plugin functionality
58 characters long description:
Hide Advanced Custom Fields from the WordPress admin menu.

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
Success! There were no dangerous files found in this plugin24 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ 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
There are no PNG files in this plugin