83% ss-font-awesome-icon

Code Review | SS Font Awesome Icon

WordPress plugin SS Font Awesome Icon scored83%from 54 tests.

About plugin

  • Plugin page: ss-font-awesome-icon
  • Plugin version: 4.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.5.0
  • WordPress version: 6.3.1
  • First release: Nov 6, 2014
  • Latest release: Aug 29, 2020
  • Number of updates: 29
  • Update frequency: every 73.3 days
  • Top authors: wsaiful (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /7,649 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.72ms] Passed 4 tests

Server-side resources used by SS Font Awesome Icon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0145.27 ▲1.45
Dashboard /wp-admin3.35 ▼0.0348.96 ▼16.27
Posts /wp-admin/edit.php3.40 ▲0.0159.64 ▲8.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0189.39 ▼12.50
Media Library /wp-admin/upload.php3.28 ▲0.0139.95 ▲0.44

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SS Font Awesome Icon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▲0.071.89 ▲0.0842.56 ▲2.02
Dashboard /wp-admin2,195 ▲185.54 ▼0.1295.41 ▲6.9540.88 ▼5.68
Posts /wp-admin/edit.php2,097 ▼62.04 ▲0.0736.53 ▼5.6533.46 ▼6.88
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▲0.16652.15 ▼36.4957.76 ▼0.22
Media Library /wp-admin/upload.php1,403 ▼04.30 ▲0.2098.04 ▼11.1545.59 ▼1.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/ss-font-awesome-icon/fa-icons.php:16
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-font-awesome-icon/fa-icons.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot.png) image not found
The official readme.txt is a good inspiration

ss-font-awesome-icon/fa-icons.php 85% from 13 tests

This is the main PHP file of "SS Font Awesome Icon" version 4.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 212 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("ss-font-awesome-icon.php" instead of "fa-icons.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected27 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101827
CSS1030

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
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%
Constants1
▷ Global constants1100.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
No PNG files were detected