84% wp-font-awesome

Code Review | WP Font Awesome

WordPress plugin WP Font Awesome scored 84% from 54 tests.

About plugin

  • Plugin page: wp-font-awesome
  • Plugin version: 1.7.9
  • PHP compatiblity: 5.5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2015
  • Latest release: Mar 6, 2023
  • Number of updates: 34
  • Update frequency: every 81.4 days
  • Top authors: zayedbaloch (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10,000+ active / 127,929 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼3.54ms] Passed 4 tests

Analyzing server-side resources used by WP Font Awesome
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.99 ▼2.94
Dashboard /wp-admin3.34 ▲0.0444.44 ▼0.10
Posts /wp-admin/edit.php3.39 ▲0.0446.17 ▲2.89
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.19 ▼10.68
Media Library /wp-admin/upload.php3.26 ▲0.0434.70 ▼0.42
WP Font Awesome /wp-admin/options-general.php?page=wpFontAwesome3.2330.40

Server storage [IO: ▲1.43MB] [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: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

WP Font Awesome: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.21 ▼1.161.69 ▼0.0736.86 ▼8.35
Dashboard /wp-admin2,215 ▲245.86 ▼0.0293.70 ▼11.4437.88 ▼3.18
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0239.29 ▲1.1435.39 ▲6.29
Add New Post /wp-admin/post-new.php1,519 ▲517.48 ▼0.24670.11 ▼7.8455.43 ▼8.63
Media Library /wp-admin/upload.php1,391 ▲64.27 ▲0.0692.14 ▼9.2540.31 ▼5.25
WP Font Awesome /wp-admin/options-general.php?page=wpFontAwesome8631.9921.6029.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-font-awesome/wp-font-awesome.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Shortcodes), #2 (Shortcodes result), #4 (Larger Icon), #5 (Menu), #6 (Widget), #7 (Superscript)
You can look at the official readme.txt

wp-font-awesome/wp-font-awesome.php Passed 13 tests

The primary PHP file in "WP Font Awesome" version 1.7.9 is used by WordPress to initiate all plugin functionality
62 characters long description:
This plugin allows the easily embed Font Awesome to your site.

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
There were no executable files found in this plugin2,568 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS50232,340
PHP14420127
JavaScript120101

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.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin