79% icons-font-loader

Code Review | Icons Font Loader

WordPress plugin Icons Font Loader scored79%from 54 tests.

About plugin

  • Plugin page: icons-font-loader
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Apr 4, 2021
  • Latest release: Nov 25, 2023
  • Number of updates: 36
  • Update frequency: every 26.9 days
  • Top authors: shehabulislam (52.78%)abuhayat (50%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /9,340 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Icons Font Loader
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.70 ▼4.85
Dashboard /wp-admin3.33 ▼0.0247.12 ▼9.15
Posts /wp-admin/edit.php3.44 ▲0.0847.23 ▲3.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.45 ▼8.97
Media Library /wp-admin/upload.php3.25 ▲0.0236.55 ▲7.04
Icons Font Loader /wp-admin/tools.php?page=icons-font-loader3.2232.88

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: 1 new table, 6 new options
New tables
wp_iconfonts
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Icons Font Loader
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲4714.21 ▼0.141.95 ▼0.1037.52 ▼7.86
Dashboard /wp-admin2,202 ▲285.60 ▲0.0296.01 ▲0.5740.67 ▲0.66
Posts /wp-admin/edit.php2,107 ▲41.94 ▲0.0039.11 ▼11.5536.91 ▼3.67
Add New Post /wp-admin/post-new.php1,529 ▲323.35 ▲0.49682.52 ▲91.3967.16 ▲18.03
Media Library /wp-admin/upload.php1,404 ▲134.27 ▲0.1096.18 ▼4.2440.39 ▼1.52
Icons Font Loader /wp-admin/tools.php?page=icons-font-loader8222.0226.7531.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_iconfonts
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

icons-font-loader/init.php 85% from 13 tests

The main PHP script in "Icons Font Loader" version 1.1.5 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("icons-font-loader.php" instead of "init.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected544 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP210482448
CSS19071
JavaScript10025

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.37
Average class complexity35.00
▷ Minimum class complexity34.00
▷ Maximum class complexity36.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
No PNG images were found in this plugin