84% fa-shortcode

Code Review | Easy Shortcode for Font Awesome

WordPress plugin Easy Shortcode for Font Awesome scored84%from 54 tests.

About plugin

  • Plugin page: fa-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Jun 22, 2019
  • Latest release: Nov 19, 2019
  • Number of updates: 10
  • Update frequency: every 15.1 days
  • Top authors: marcosgugeler (60%)rezehnde (30%)rezendemarcos (30%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /496 total downloads

Benchmarks

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

This is a short check of server-side resources used by Easy Shortcode for Font Awesome
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.46 ▼2.99
Dashboard /wp-admin3.31 ▼0.0342.47 ▼19.74
Posts /wp-admin/edit.php3.36 ▲0.0143.51 ▼1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0196.37 ▼6.35
Media Library /wp-admin/upload.php3.23 ▲0.0136.26 ▲4.77

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Easy Shortcode for Font Awesome
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.32 ▼0.981.85 ▲0.3236.47 ▼0.25
Dashboard /wp-admin2,209 ▲175.03 ▲0.1199.25 ▼8.2637.43 ▼6.22
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0533.57 ▼1.6635.55 ▲3.70
Add New Post /wp-admin/post-new.php1,533 ▲1923.34 ▲5.62663.51 ▲20.1967.39 ▲17.78
Media Library /wp-admin/upload.php1,382 ▼34.21 ▲0.03102.05 ▲2.8546.63 ▲4.41

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • 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
Good news, no errors were detected

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fa-shortcode/fa-shortcode.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
No tags were found

fa-shortcode/fa-shortcode.php Passed 13 tests

The entry point to "Easy Shortcode for Font Awesome" version 1.0.0 is a PHP file that has certain tags in its header comment area
47 characters long description:
Adds a font awesome shortcode to your WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected16 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12816

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin