84% fontawesomeio-shortcodes

Code Review | FontAwesome.io ShortCodes

WordPress plugin FontAwesome.io ShortCodes scored84%from 54 tests.

About plugin

  • Plugin page: fontawesomeio-sho...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2015
  • Latest release: Apr 29, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: AWeleczka (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /6,118 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by FontAwesome.io ShortCodes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.50 ▲2.64
Dashboard /wp-admin3.31 ▲0.0146.55 ▼8.44
Posts /wp-admin/edit.php3.36 ▲0.0153.28 ▼1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.89 ▼5.75
Media Library /wp-admin/upload.php3.24 ▲0.0138.51 ▲3.03

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for FontAwesome.io ShortCodes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.08 ▼0.271.90 ▲0.1341.54 ▼3.27
Dashboard /wp-admin2,192 ▲155.52 ▼0.1381.52 ▼7.9239.57 ▼3.94
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0039.37 ▲3.6338.51 ▲5.49
Add New Post /wp-admin/post-new.php1,526 ▼223.01 ▲0.03683.04 ▼4.6257.80 ▲9.20
Media Library /wp-admin/upload.php1,403 ▲64.26 ▲0.05103.49 ▲2.0345.09 ▲0.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fontawesomeio-shortcodes/aw_FontAwesomeShortCode.php:14

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: post, icon, fontawesome, page, shortcode...

fontawesomeio-shortcodes/aw_FontAwesomeShortCode.php 92% from 13 tests

The primary PHP file in "FontAwesome.io ShortCodes" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fontawesomeio-shortcodes.php" instead of "aw_FontAwesomeShortCode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16922

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin