83% font-awesome-wp

Code Review | Font Awesome WP

WordPress plugin Font Awesome WP scored83%from 54 tests.

About plugin

  • Plugin page: font-awesome-wp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Jan 11, 2015
  • Number of updates: 13
  • Update frequency: every 7.9 days
  • Top authors: farjana55 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /14,918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Font Awesome WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.49 ▼3.02
Dashboard /wp-admin3.32 ▲0.0153.10 ▼0.12
Posts /wp-admin/edit.php3.37 ▲0.0150.95 ▼0.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.50 ▼7.47
Media Library /wp-admin/upload.php3.24 ▲0.0133.60 ▼3.61

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Font Awesome WP: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.25 ▼0.401.83 ▼0.3844.54 ▲0.25
Dashboard /wp-admin2,197 ▲175.59 ▼0.0794.19 ▲6.1340.99 ▼0.16
Posts /wp-admin/edit.php2,105 ▲21.99 ▼0.0540.72 ▲2.2437.29 ▲3.67
Add New Post /wp-admin/post-new.php1,533 ▲723.30 ▼0.47653.02 ▼39.7165.60 ▲8.17
Media Library /wp-admin/upload.php1,402 ▲24.20 ▲0.0698.09 ▼10.8743.38 ▼2.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/font-awesome-wp/font.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots require images: #1 (Icon View with out link.), #2 (Icon view with link.), #3 (Icon samples preview.You can get all icon from here http://fortawesome.github.io/Font-Awesome/icons/)
The official readme.txt might help

font-awesome-wp/font.php 85% from 13 tests

"Font Awesome WP" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 268 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("font-awesome-wp.php" instead of "font.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin2,218 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS20121,664
SVG100520
PHP1102234

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png136.84KB45.31KB▼ 66.89%
screenshot-1.png60.34KB19.49KB▼ 67.70%
screenshot-2.png74.23KB23.67KB▼ 68.11%