99% acf-ionicon-field

Code Review | Add Ionicon Field for ACF

WordPress plugin Add Ionicon Field for ACF scored 99% from 54 tests.

About plugin

  • Plugin page: acf-ionicon-field
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 5.9.2
  • First release: Feb 4, 2021
  • Latest release: Feb 4, 2021
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: ssalavat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 231 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by Add Ionicon Field for ACF
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.74 ▲5.40
Dashboard /wp-admin3.42 ▲0.0132.33 ▼1.86
Posts /wp-admin/edit.php3.65 ▲0.0137.59 ▼1.80
Add New Post /wp-admin/post-new.php6.92 ▼0.0892.49 ▼1,172.80
Media Library /wp-admin/upload.php3.30 ▲0.0123.08 ▼2.64

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add Ionicon Field for ACF: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3115.81 ▼0.146.49 ▲0.022.38 ▼0.46
Dashboard /wp-admin2,892 ▲316.12 ▲0.07120.06 ▼12.79157.02 ▼8.16
Posts /wp-admin/edit.php2,691 ▲33.24 ▲0.0264.46 ▼1.20141.82 ▲2.97
Add New Post /wp-admin/post-new.php1,661 ▼9116.11 ▼4.80406.11 ▼57.16160.32 ▲2.64
Media Library /wp-admin/upload.php1,698 ▼35.44 ▼0.09147.81 ▲8.71189.86 ▲3.81

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 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 shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

acf-ionicon-field/acf-ionicon.php 92% from 13 tests

The main PHP file in "Add Ionicon Field for ACF" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("acf-ionicon-field.php" instead of "acf-ionicon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin321 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP393136233
JavaScript117565
Markdown19023

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity19.00
▷ Minimum class complexity3.00
▷ Maximum class complexity35.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
No PNG files were detected