90% shortcode-for-font-awesome

Code Review | Shortcode for Font Awesome

WordPress plugin Shortcode for Font Awesome scored 90% from 54 tests.

About plugin

  • Plugin page: shortcode-for-fon...
  • Plugin version: 1.4.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2018
  • Latest release: Jan 20, 2023
  • Number of updates: 28
  • Update frequency: every 54.5 days
  • Top authors: smgwebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active / 4,387 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: ▲1.11ms] Passed 4 tests

This is a short check of server-side resources used by Shortcode for Font Awesome
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.61 ▼1.14
Dashboard /wp-admin3.31 ▲0.0152.10 ▼0.80
Posts /wp-admin/edit.php3.36 ▲0.0153.56 ▲4.41
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.83 ▲5.86
Media Library /wp-admin/upload.php3.24 ▲0.0139.22 ▲1.97

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Shortcode for Font Awesome
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲2513.27 ▼1.532.06 ▲0.1544.50 ▲1.08
Dashboard /wp-admin2,206 ▼05.83 ▲0.96102.18 ▼11.1539.67 ▼3.75
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0139.10 ▲1.0336.02 ▼0.09
Add New Post /wp-admin/post-new.php1,514 ▼1923.73 ▲0.67714.56 ▼10.8460.68 ▲8.02
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.0495.99 ▼18.3541.13 ▼7.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: shortcode, font-awesome

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

The principal PHP file in "Shortcode for Font Awesome" v. 1.4.5 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 242 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101625

PHP code Passed 2 tests

This is a short overview 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.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected