84% simple-font-awesome-icon

Code Review | Simple Font Awesome Icon

WordPress plugin Simple Font Awesome Icon scored84%from 54 tests.

About plugin

  • Plugin page: simple-font-aweso...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 5, 2017
  • Latest release: May 31, 2018
  • Number of updates: 15
  • Update frequency: every 22.4 days
  • Top authors: jomol (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /750 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.02MB] [CPU: ▲0.34ms] Passed 4 tests

An overview of server-side resources used by Simple Font Awesome Icon
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.11 ▼0.00
Dashboard /wp-admin3.32 ▲0.0247.32 ▲0.70
Posts /wp-admin/edit.php3.37 ▲0.0248.99 ▼1.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.13 ▲1.81
Media Library /wp-admin/upload.php3.24 ▲0.0235.87 ▲3.30

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Simple Font Awesome Icon
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.29 ▼1.271.52 ▼0.4542.45 ▲1.45
Dashboard /wp-admin2,217 ▲294.98 ▼0.86117.72 ▲12.2239.93 ▼2.74
Posts /wp-admin/edit.php2,103 ▲172.16 ▲0.1640.89 ▲4.5833.93 ▲1.29
Add New Post /wp-admin/post-new.php6,305 ▲4,78522.32 ▼1.09847.40 ▲152.0358.39 ▼4.57
Media Library /wp-admin/upload.php1,402 ▲144.37 ▲0.1996.67 ▼22.2040.25 ▼6.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-font-awesome-icon/simple-font-awesome-icon.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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 your attention:
  • Screenshots: Please add an image for screenshot #1 (The Font Awesome Icon Metabox in Post editor.)
  • Screenshots: Please describe screenshot #0 in simple-font-awesome-icon/assets to your readme.txt
The official readme.txt is a good inspiration

simple-font-awesome-icon/simple-font-awesome-icon.php Passed 13 tests

Analyzing the main PHP file in "Simple Font Awesome Icon" version 1.0.1
127 characters long description:
Simple Font Awesome Icon plugin will give you the option for adding font awesome icons as a custom field to your post or pages.

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
Everything looks great! No dangerous files found in this plugin8,621 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
YAML172405,845
SVG1002,671
PHP1141149
JavaScript27137
CSS20319

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions5
▷ Named functions5100.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