83% gs-acf-icons

Code Review | GS ACF Icons

WordPress plugin GS ACF Icons scored83%from 54 tests.

About plugin

  • Plugin page: gs-acf-icons
  • Plugin version: 0.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2021
  • Latest release: Oct 20, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: andreasnrb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /884 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
Installer ran successfully

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

This is a short check of server-side resources used by GS ACF Icons
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.69 ▲1.77
Dashboard /wp-admin3.32 ▲0.0143.51 ▼4.87
Posts /wp-admin/edit.php3.37 ▲0.0144.78 ▼3.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.94 ▼1.59
Media Library /wp-admin/upload.php3.24 ▲0.0136.70 ▲3.04

Server storage [IO: ▲11.27MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
gs_acf_icons_version
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for GS ACF Icons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6814.47 ▲0.181.70 ▼0.4944.49 ▲2.51
Dashboard /wp-admin2,209 ▲185.91 ▲1.03104.63 ▲5.1440.42 ▼1.72
Posts /wp-admin/edit.php2,091 ▲22.01 ▲0.0137.09 ▼4.4036.62 ▼1.30
Add New Post /wp-admin/post-new.php1,536 ▲823.43 ▲4.93644.61 ▲16.4055.00 ▲0.62
Media Library /wp-admin/upload.php1,391 ▲34.28 ▲0.0994.84 ▼5.2942.57 ▼2.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • gs_acf_icons_version
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/gs-acf-icons/src/Fields/AcfIconField.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in gs-acf-icons/assets to your readme.txt
The official readme.txt is a good inspiration

gs-acf-icons/plugin.php 85% from 13 tests

Analyzing the main PHP file in "GS ACF Icons" version 0.1.3
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gs-acf-icons.php" instead of "plugin.php")
  • Domain Path: The domain path is invalid: folder "/lang" does not exist

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
No dangerous file extensions were detected38,769 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
SVG103342716,712
CSS183,9347012,654
JavaScript161,0063488,957
PHP571186446

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity31.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin