84% wp-acf-nullify-gatsby

Code Review | Nullify empty fields for ACF

WordPress plugin Nullify empty fields for ACF scored84%from 54 tests.

About plugin

  • Plugin page: wp-acf-nullify-ga...
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: Sep 9, 2023
  • Number of updates: 8
  • Update frequency: every 158.0 days
  • Top authors: jabranr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,241 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Nullify empty fields for ACF
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.66 ▼1.77
Dashboard /wp-admin3.31 ▲0.0045.36 ▼4.29
Posts /wp-admin/edit.php3.36 ▲0.0049.74 ▲1.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.52 ▲3.61
Media Library /wp-admin/upload.php3.23 ▲0.0035.54 ▼0.50

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Nullify empty fields for ACF: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.25 ▼1.101.64 ▼0.4942.99 ▼1.53
Dashboard /wp-admin2,206 ▲184.84 ▼1.04107.30 ▼12.1435.06 ▼11.67
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0138.96 ▲1.6133.00 ▼2.11
Add New Post /wp-admin/post-new.php1,533 ▲1323.13 ▼0.18615.82 ▼24.2547.88 ▼10.15
Media Library /wp-admin/upload.php1,388 ▼04.18 ▲0.0093.25 ▼4.5342.26 ▼2.67

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function nullify_empty_fields_for_acf_is_acf_active() in wp-content/plugins/wp-acf-nullify-gatsby/ui.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-acf-nullify-gatsby/index.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-acf-nullify-gatsby/settings.php:37

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: wordpress, graphql, gatsby, advanced-custom-fields, acf

wp-acf-nullify-gatsby/index.php 92% from 13 tests

The entry point to "Nullify empty fields for ACF" version 1.2.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-acf-nullify-gatsby.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected171 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33765171

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.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
There were not PNG files found in your plugin