94% acf-page-grandchildren

Code Review | ACF Page Grandchildren

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

About plugin

  • Plugin page: acf-page-grandchi...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8
  • WordPress version: 5.9.2
  • First release: Aug 27, 2016
  • Latest release: Aug 7, 2021
  • Number of updates: 10
  • Update frequency: every 181.0 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,032 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼301.84ms] Passed 4 tests

Server-side resources used by ACF Page Grandchildren
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0257.28 ▲0.60
Dashboard /wp-admin3.44 ▲0.0335.64 ▼2.46
Posts /wp-admin/edit.php3.66 ▲0.0243.41 ▲1.18
Add New Post /wp-admin/post-new.php6.90 ▼0.0896.00 ▼1,206.69
Media Library /wp-admin/upload.php3.31 ▲0.0129.88 ▲2.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF Page Grandchildren
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.85 ▲0.567.19 ▲0.372.68 ▲0.22
Dashboard /wp-admin2,892 ▲316.00 ▼0.18121.74 ▼16.31160.33 ▼7.67
Posts /wp-admin/edit.php2,694 ▲63.23 ▲0.0064.24 ▼0.92142.72 ▲0.69
Add New Post /wp-admin/post-new.php1,752 ▲9121.75 ▲3.81437.50 ▲32.02166.72 ▲11.49
Media Library /wp-admin/upload.php1,695 ▼05.53 ▲0.05140.05 ▼11.84184.60 ▼0.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/acf-page-grandchildren/acf-page-grandchildren.php
    • > /wp-content/plugins/acf-page-grandchildren/index.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)
No browser issues were found

Optimizations

Plugin configuration Passed 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
10 plugin tags: grandchild, custom, acf, fields, parent...

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

"ACF Page Grandchildren" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
A great way to show group of fields only on grandchildren pages

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
Everything looks great! No dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2142559

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected