84% creative-fa-and-bs-icons-shortcode

Code Review | Creative FA and BS Icons Shortcode

WordPress plugin Creative FA and BS Icons Shortcode scored 84% from 54 tests.

About plugin

  • Plugin page: creative-fa-and-b...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8
  • WordPress version: 6.3.1
  • First release: Jul 10, 2017
  • Latest release: Jul 10, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: mnaopu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 626 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by Creative FA and BS Icons Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.34 ▼1.66
Dashboard /wp-admin3.32 ▲0.0146.17 ▼8.20
Posts /wp-admin/edit.php3.37 ▲0.0147.91 ▼2.74
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.55 ▼17.20
Media Library /wp-admin/upload.php3.24 ▲0.0135.52 ▼3.44

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Creative FA and BS Icons Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.54 ▼0.851.63 ▼0.0951.02 ▲1.62
Dashboard /wp-admin2,223 ▲384.80 ▼1.05111.28 ▲4.4140.77 ▼6.74
Posts /wp-admin/edit.php2,106 ▲202.03 ▲0.0442.15 ▲2.9036.62 ▼0.70
Add New Post /wp-admin/post-new.php1,552 ▲1923.26 ▲0.03644.37 ▲7.0457.29 ▼4.17
Media Library /wp-admin/upload.php1,405 ▲174.17 ▲0.02126.08 ▲25.1753.80 ▲9.08

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 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/creative-fa-and-bs-icons-shortcode/creative-fa-and-bs-icons-shortcode.php:20

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (2.) image required
The official readme.txt is a good inspiration

creative-fa-and-bs-icons-shortcode/creative-fa-and-bs-icons-shortcode.php Passed 13 tests

This is the main PHP file of "Creative FA and BS Icons Shortcode" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
This plugin Allows you to add Font-Awesome and Bootstrap Icons Easily using shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,994 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,959
PHP1161231
CSS2082
JavaScript1052

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.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin