84% easy-fontawesome

Code Review | Easy Fontawesome

WordPress plugin Easy Fontawesome scored84%from 54 tests.

About plugin

  • Plugin page: easy-fontawesome
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2016
  • Latest release: Jul 23, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: amg26 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Easy Fontawesome
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.67 ▼1.77
Dashboard /wp-admin3.31 ▼0.0349.99 ▼13.41
Posts /wp-admin/edit.php3.36 ▲0.0145.23 ▼2.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.43 ▼17.63
Media Library /wp-admin/upload.php3.23 ▲0.0135.51 ▲1.43

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Easy Fontawesome: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.20 ▼0.431.99 ▲0.2843.28 ▼1.11
Dashboard /wp-admin2,195 ▲215.63 ▲0.0295.23 ▲0.6141.52 ▲0.20
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0335.72 ▼3.4634.30 ▼3.36
Add New Post /wp-admin/post-new.php1,526 ▼1123.25 ▲4.86700.81 ▲47.6650.36 ▼17.30
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.07109.45 ▲5.8045.84 ▼3.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-fontawesome/easy-fontawesome.php
    • > /wp-content/plugins/easy-fontawesome/index.php

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 97% 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:
  • Donate link: Invalid url: "andrewmgunn.com/donate"
You can look at the official readme.txt

easy-fontawesome/easy-fontawesome.php Passed 13 tests

"Easy Fontawesome" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Add FontAwesome css icons to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin6,205 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
CSS20132,190
Sass1434341,656
LESS1434441,646
SVG100685
PHP2121628

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin