94% acf-page-level

Code Review | ACF Page Level

WordPress plugin ACF Page Level scored 94% from 54 tests.

About plugin

  • Plugin page: acf-page-level
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.8.1
  • First release: Oct 20, 2016
  • Latest release: Aug 7, 2021
  • Number of updates: 10
  • Update frequency: every 175.2 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,041 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼181.58ms] Passed 4 tests

An overview of server-side resources used by ACF Page Level
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0229.96 ▲4.07
Dashboard /wp-admin3.08 ▲0.0239.89 ▼2.16
Posts /wp-admin/edit.php3.13 ▲0.0336.91 ▲0.20
Add New Post /wp-admin/post-new.php5.44 ▲0.0072.89 ▼728.44
Media Library /wp-admin/upload.php3.02 ▲0.0229.81 ▲6.52

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: no files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Page Level
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6415.63 ▼0.386.58 ▲0.3973.55 ▼5.16
Dashboard /wp-admin2,933 ▲376.14 ▼0.07117.54 ▼14.72171.95 ▼2.62
Posts /wp-admin/edit.php2,740 ▼33.22 ▼0.0164.86 ▼0.34137.44 ▲3.89
Add New Post /wp-admin/post-new.php3,735 ▼7218.04 ▼1.11432.00 ▼7.54160.18 ▼7.99
Media Library /wp-admin/upload.php1,752 ▼05.52 ▼0.03152.26 ▲15.50185.88 ▲3.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acf-page-level/acf-page-level.php

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

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt is a good inspiration

acf-page-level/acf-page-level.php Passed 13 tests

The principal PHP file in "ACF Page Level" v. 1.0.0 is loaded by WordPress automatically on each request
99 characters long description:
Sometimes you want to show the field groups based on the page level right? Well here you go. Enjoy!

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 plugin60 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods7100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin