80% shortcodes-for-font-awesome

Code Review | SCFA (Shortcodes for Font Awesome)

WordPress plugin SCFA (Shortcodes for Font Awesome) scored80%from 54 tests.

About plugin

  • Plugin page: shortcodes-for-fo...
  • Plugin version: 1.4.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Nov 20, 2023
  • Number of updates: 16
  • Update frequency: every 73.7 days
  • Top authors: joho68 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,003 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.30ms] Passed 4 tests

This is a short check of server-side resources used by SCFA (Shortcodes for Font Awesome)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1238.71 ▼4.72
Dashboard /wp-admin3.45 ▲0.1450.93 ▼0.01
Posts /wp-admin/edit.php3.56 ▲0.2054.35 ▲6.67
Add New Post /wp-admin/post-new.php6.03 ▲0.1495.18 ▼3.14
Media Library /wp-admin/upload.php3.37 ▲0.1439.01 ▲7.02
SCFA [   ] /wp-admin/options-general.php?page=shortcodes-for-font-awesome3.3432.20

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for SCFA (Shortcodes for Font Awesome)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲5914.72 ▲0.371.70 ▼0.4140.79 ▼3.72
Dashboard /wp-admin2,209 ▲295.61 ▼0.0390.42 ▼8.4443.78 ▲0.87
Posts /wp-admin/edit.php2,114 ▲111.96 ▲0.0139.64 ▼0.2638.75 ▲2.13
Add New Post /wp-admin/post-new.php1,537 ▲1123.43 ▲0.38613.58 ▼50.4959.89 ▲9.39
Media Library /wp-admin/upload.php1,417 ▲234.19 ▲0.0096.40 ▲0.9944.04 ▲1.73
SCFA [   ] /wp-admin/options-general.php?page=shortcodes-for-font-awesome8842.0126.0734.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall successfully, leaving 39 files (1.30MB) in the plugin directory
    • (new file) README.txt
    • (new file) css/fontawesome/fontawesome.min.css
    • (new file) css/fontawesome/solid.min.css
    • (new file) css/fontawesome/regular.min.css
    • (new file) css/fontawesome/brands.min.css
    • (new file) css/fontawesome/LICENSE.txt
    • (new file) LICENSE.txt
    • (new file) css/fontawesome/index.php
    • (new file) css/fontawesome/all.min.css
    • (new file) css/fontawesome/scfa-admin.css
    • ...
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: webfont, font awesome, fontawesome, font, icon

shortcodes-for-font-awesome/scfa.php 92% from 13 tests

The entry point to "SCFA (Shortcodes for Font Awesome)" version 1.4.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shortcodes-for-font-awesome.php" instead of "scfa.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin835 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP334261610
PO File14247143
CSS1044842
JavaScript173040

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity109.00
▷ Minimum class complexity109.00
▷ Maximum class complexity109.00
Average method complexity6.40
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods1890.00%
▷ Protected methods210.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo/scfa_logo.png26.50KB15.37KB▼ 42.03%
img/webbplatsen_logo.png9.32KB5.62KB▼ 39.71%