100% acf-additional-hint

Code Review | ACF Additional Hint

WordPress plugin ACF Additional Hint scored 100% from 54 tests.

About plugin

  • Plugin page: acf-additional-hint
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 5.8.1
  • First release: Dec 18, 2019
  • Latest release: Jan 22, 2021
  • Number of updates: 8
  • Update frequency: every 50.3 days
  • Top authors: pressmaninc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 570 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼144.94ms] Passed 4 tests

A check of server-side resources used by ACF Additional Hint
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1425.67 ▲8.68
Dashboard /wp-admin3.08 ▲0.0233.87 ▼3.27
Posts /wp-admin/edit.php3.13 ▲0.0334.48 ▲3.46
Add New Post /wp-admin/post-new.php5.44 ▲0.0169.64 ▼581.15
Media Library /wp-admin/upload.php3.03 ▲0.0222.98 ▲1.20

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Additional Hint
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲6515.67 ▲0.068.46 ▲0.0073.53 ▼3.23
Dashboard /wp-admin2,926 ▲306.15 ▼0.00116.94 ▼15.85170.39 ▼5.40
Posts /wp-admin/edit.php2,737 ▼33.24 ▲0.0166.45 ▼4.40136.38 ▼19.95
Add New Post /wp-admin/post-new.php3,735 ▼7818.06 ▼0.33460.27 ▲28.66163.62 ▲0.69
Media Library /wp-admin/upload.php1,746 ▼65.47 ▼0.08138.88 ▼6.59186.83 ▲2.55

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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

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
7 plugin tags: acf, field, fields, hint, custom...

acf-additional-hint/acf-additional-hint.php Passed 13 tests

The principal PHP file in "ACF Additional Hint" v. 1.3 is loaded by WordPress automatically on each request
44 characters long description:
A plugin to add help/hint text in ACF field.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS1166115
PHP1247094
JavaScript17631
PO File18831

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected