89% acf-overview

Code Review | ACF Overview

WordPress plugin ACF Overview scored 89% from 54 tests.

About plugin

  • Plugin page: acf-overview
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1.1
  • WordPress version: 5.8.1
  • First release: Mar 22, 2019
  • Latest release: Mar 23, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: psychopsia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 454 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼145.27ms] Passed 4 tests

An overview of server-side resources used by ACF Overview
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0034.71 ▲0.46
Dashboard /wp-admin3.06 ▲0.0146.66 ▲3.03
Posts /wp-admin/edit.php3.11 ▲0.0145.00 ▼2.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0191.23 ▼576.79
Media Library /wp-admin/upload.php3.00 ▲0.0032.19 ▼2.23

Server storage [IO: ▲0.15MB] [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: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by ACF Overview
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.87 ▲0.239.09 ▼2.8747.70 ▲0.32
Dashboard /wp-admin2,973 ▲425.89 ▼0.25150.06 ▼10.73113.28 ▲3.56
Posts /wp-admin/edit.php2,736 ▼32.72 ▲0.0066.49 ▼5.0688.01 ▲0.80
Add New Post /wp-admin/post-new.php1,872 ▲20019.09 ▲0.04420.33 ▲7.15104.71 ▼5.76
Media Library /wp-admin/upload.php1,807 ▼05.01 ▲0.01145.45 ▼7.76115.17 ▼7.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/acf-overview/views/options.php
    • > /wp-content/plugins/acf-overview/views/table.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_overview\\esc_html() in wp-content/plugins/acf-overview/views/index.php:21
    • > PHP Notice
      Undefined variable: list in wp-content/plugins/acf-overview/views/options.php on line 6
    • > PHP Notice
      Undefined variable: columns in wp-content/plugins/acf-overview/views/table.php on line 8
    • > PHP Notice
      Undefined variable: fields in wp-content/plugins/acf-overview/views/table.php on line 16
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/acf-overview/views/options.php on line 6
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/acf-overview/views/table.php on line 16
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/acf-overview/views/table.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
5 plugin tags: custom, fields, overview, advanced, acf

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

The main file in "ACF Overview" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
ACF Overview allows to quick view the configuration of all field groups

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected325 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49116297
Markdown226028

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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