89% acf-ionicon-field

Code Review | Add Ionicon Field for ACF

WordPress plugin Add Ionicon Field for ACF scored89%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: 6.3.1
  • 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 /495 total downloads


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: ▼6.80ms] Passed 4 tests

Analyzing server-side resources used by Add Ionicon Field for ACF
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.36 ▲3.98
Dashboard /wp-admin3.32 ▼0.0345.08 ▼14.45
Posts /wp-admin/edit.php3.37 ▲0.0144.16 ▼2.07
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.77 ▼11.64
Media Library /wp-admin/upload.php3.24 ▲0.0132.53 ▲0.98

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Ionicon Field for ACF
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.85 ▲0.481.85 ▲0.0642.91 ▼0.34
Dashboard /wp-admin2,206 ▲185.90 ▼0.00106.29 ▲5.6239.41 ▲0.62
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0735.01 ▼6.4634.80 ▼1.28
Add New Post /wp-admin/post-new.php1,533 ▼023.02 ▼0.15679.28 ▲66.6952.79 ▲0.02
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.04105.69 ▼2.9747.59 ▼0.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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)
Even though everything seems fine, this is not 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
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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed 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 file in "Add Ionicon Field for ACF" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time 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 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin321 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

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.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
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected