89% awesome-fontawesome-collection

Code Review | Awesome Fontawesome Collection

WordPress plugin Awesome Fontawesome Collection scored 89% from 54 tests.

About plugin

  • Plugin page: awesome-fontaweso...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Nov 19, 2019
  • Number of updates: 28
  • Update frequency: every 45.5 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active / 5,546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.26ms] Passed 4 tests

This is a short check of server-side resources used by Awesome Fontawesome Collection
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.85 ▼2.66
Dashboard /wp-admin3.32 ▲0.0244.74 ▼0.71
Posts /wp-admin/edit.php3.37 ▲0.0244.98 ▼5.29
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.08 ▼0.39
Media Library /wp-admin/upload.php3.24 ▲0.0235.19 ▲3.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
phoen_icon_with_text
can_compress_scripts
widget_theysaidso_widget
widget_icon_text_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Fontawesome Collection
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11913.38 ▼0.911.68 ▼0.4039.60 ▼8.98
Dashboard /wp-admin2,252 ▲615.18 ▼0.69106.33 ▲6.7581.37 ▲37.13
Posts /wp-admin/edit.php2,140 ▲512.36 ▲0.3439.28 ▲4.3939.39 ▲8.33
Add New Post /wp-admin/post-new.php1,552 ▲1017.78 ▼0.56719.03 ▲91.7336.49 ▼36.39
Media Library /wp-admin/upload.php1,426 ▲354.36 ▲0.1499.71 ▼3.4343.24 ▼0.58

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 8 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • phoen_icon_with_text
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_icon_text_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
The official readme.txt is a good inspiration

awesome-fontawesome-collection/Iconsett.php 92% from 13 tests

Analyzing the main PHP file in "Awesome Fontawesome Collection" version 1.4
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-fontawesome-collection.php" instead of "Iconsett.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin3,270 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS510471,121
JavaScript34601,018
SVG100655
PHP441030476

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/aa2.png1.34KB1.26KB▼ 5.77%