100% extend-acf-acf-json-directory

Code Review | Extends ACF to save json-file in plugin directory

WordPress plugin Extends ACF to save json-file in plugin directory scored 100% from 54 tests.

About plugin

  • Plugin page: extend-acf-acf-js...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.2
  • WordPress version: 5.8.1
  • First release: Jun 11, 2020
  • Latest release: Jun 11, 2020
  • Number of updates: 13
  • Update frequency: every 9.4 days
  • Top authors: polyres (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 272 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Extends ACF to save json-file in plugin directory
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0141.50 ▲1.62
Dashboard /wp-admin3.07 ▲0.0152.80 ▲0.51
Posts /wp-admin/edit.php3.12 ▲0.0147.69 ▲2.85
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.43 ▼583.09
Media Library /wp-admin/upload.php3.01 ▲0.0136.91 ▼1.34

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Extends ACF to save json-file in plugin directory
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲11116.32 ▲0.5910.26 ▼2.0945.02 ▼18.12
Dashboard /wp-admin2,974 ▲405.98 ▼0.01149.04 ▲6.14114.92 ▲6.08
Posts /wp-admin/edit.php2,743 ▲42.71 ▼0.0174.44 ▲4.9794.25 ▼0.24
Add New Post /wp-admin/post-new.php1,686 ▲318.38 ▼0.40410.62 ▼49.76116.81 ▲3.67
Media Library /wp-admin/upload.php1,811 ▲45.03 ▼0.01168.49 ▲11.09123.10 ▲7.36

Uninstaller [IO: ▲0.00MB] [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 Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 on the user side

Optimizations

Plugin configuration 96% from 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
3 plugin tags: acf, acf-json, json

extend-acf-acf-json-directory/extend-acf-acf-json-directory.php 92% from 13 tests

"Extends ACF to save json-file in plugin directory" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
There were no executable files found in this plugin59 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2105335
Markdown118024

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.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